Pagini recente » Diferente pentru preoni-2006/runda-2/solutii intre reviziile 18 si 15 | Profil MihaelaCismaru | Cod sursa (job #1496129) | Profil M@2Te4i | Cod sursa (job #1420876)
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.Scanner;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author razvan
*/
public class Main {
public static void main (String args[]) throws FileNotFoundException {
int a;
int b;
System.setIn(new FileInputStream("adunare.in"));
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
int c = a + b;
System.setOut(new PrintStream(new File("adunare.out")));
System.out.print(c);
}
}