Cod sursa(job #1431102)
| Utilizator | Data | 9 mai 2015 00:06:58 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.48 kb |
package aplusbinfoarena;
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 sc = new Scanner(new FileInputStream("aduanre.in"));
int a = sc.nextInt();
int b = sc.nextInt();
PrintWriter write = new PrintWriter("adunare.out");
write.write(a + b);
write.close();
sc.close();
}
}
