Cod sursa(job #1431295)
Utilizator | Data | 9 mai 2015 10:09:46 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
import java.io.*;
import java.util.Scanner;
public class Main
{
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());
}
}