Cod sursa(job #1703772)
| Utilizator | Data | 17 mai 2016 17:04:11 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.46 kb |
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(new File("adunare.in"));
int a = sc.nextInt();
int b = sc.nextInt();
BufferedWriter bw = new BufferedWriter(new FileWriter(new File("adunare.out")));
bw.write((a+b)+"\n");
bw.close();
}
}
