Cod sursa(job #2052624)
| Utilizator | Data | 30 octombrie 2017 20:32:17 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.5 kb |
package ab;
import java.io.*;
public class Main {
public static void main(String ...args)
{
try
{
BufferedReader in=new BufferedReader(new FileReader(new File("adunare.in")));
PrintStream out=new PrintStream(new FileOutputStream("adunare.out"));
int a,b;
String s,parts[];
s=in.readLine();
a=Integer.parseInt(s);
s=in.readLine();
b=Integer.parseInt(s);
out.print(a+b+"\n");
in.close();
out.close();
}
catch(IOException e)
{
System.out.println("kekus");
}
}
}
