Cod sursa(job #1430142)
Utilizator | Data | 7 mai 2015 22:08:08 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | java | Status | done |
Runda | teme_upb | Marime | 0.5 kb |
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class AplusB {
public static void main(String[] args) throws IOException {
Scanner reader = new Scanner(new FileInputStream("adunare.in"));
long a = reader.nextLong();
long b = reader.nextLong();
long sum = a + b;
PrintWriter writer = new PrintWriter("adunare.out");
writer.println(sum);
writer.close();
reader.close();
}
}