Cod sursa(job #2390208)
| Utilizator | Data | 27 martie 2019 20:40:06 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.53 kb |
package com.company;
import java.io.File;
import java.io.FileInputStream;
import java.io.PrintStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Throwable{
Scanner sc = new Scanner(new FileInputStream("input.txt"));
PrintStream printer = new PrintStream("output.txt");
int a = Integer.parseInt(sc.next());
int b = Integer.parseInt(sc.next());
printer.println(a+b);
}
}
