Cod sursa(job #1431285)
Utilizator | Data | 9 mai 2015 10:06:56 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
import java.io.*;
import java.util.Scanner;
public class Andrei
{
public static void main(String[] args) throws IOException
{
Scanner s = new Scanner(new FileInputStream("adunare.in"));
int a, b;
a = s.nextInt();
b = s.nextInt();
FileOutputStream out = new FileOutputStream("adunare.out");
out.write((a+b).getBytes());
}
}