Mai intai trebuie sa te autentifici.
Cod sursa(job #1430979)
Utilizator | Data | 8 mai 2015 22:34:32 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | java | Status | done |
Runda | teme_upb | Marime | 0.67 kb |
/*
* 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.
*/
import java.util.*;
import java.io.*;
/**
*
* @author Diana Ion
*/
public class Main{
public static void main(String args[]) throws IOException{
Scanner sc = new Scanner(new FileInputStream("adunare.in"));
int a, b;
a = sc.nextInt();
b = sc.nextInt();
int sum = a + b;
sc.close();
PrintWriter w = new PrintWriter("adunare.out");
w.print(sum);
w.println();
w.close();
}
}