Cod sursa(job #2061240)
| Utilizator | Data | 9 noiembrie 2017 00:11:09 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.52 kb |
package infoarena;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(new FileInputStream("adunare.in"));
FileOutputStream fos = new FileOutputStream("adunare.out");
int a = sc.nextInt();
int b = sc.nextInt();
fos.write(a+b);
sc.close();
fos.close();
}
}
