Cod sursa(job #1247496)
| Utilizator | Data | 22 octombrie 2014 21:28:11 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.5 kb |
import java.io.File;
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("adunare.in"));
PrintWriter pw = new PrintWriter(new File("adunare.out"));
int a , b , s;
a = sc.nextInt();
b = sc.nextInt();
s = a + b;
pw.println(s);
pw.close();
sc.close();
}
}
