Cod sursa(job #1245349)

Utilizator tester_31tester tester_31 Data 18 octombrie 2014 23:43:04
Problema A+B Scor 0
Compilator java Status done
Runda Arhiva de probleme Marime 0.51 kb
import java.util.*;
import java.io.*;

public class adunare {

    public static void main(String[] args) {
        try{
            Scanner sc = new Scanner(new File("adunare.in"));
            PrintWriter pw = new PrintWriter(new File("adunare.out"));
            long a = sc.nextInt();
            long b = sc.nextInt();
            long suma = a + b;
            
            pw.print(suma);
            sc.close();
            pw.close();
        }catch(FileNotFoundException e){ }
    }
    
}