Cod sursa(job #1432565)
| Utilizator | Data | 9 mai 2015 12:26:46 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | java | Status | done |
| Runda | teme_upb | Marime | 0.46 kb |
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
Scanner s = new Scanner(new FileInputStream("adunare.in"));
PrintWriter writter = new PrintWriter("adunare.out");
Integer sum = s.nextInt() + s.nextInt();
writter.write(sum.toString());
s.close();
writter.close();
}
}
