Pagini recente » Cod sursa (job #2836471) | Cod sursa (job #701932) | Cod sursa (job #2101249) | Cod sursa (job #966586) | Cod sursa (job #1431057)
//package adunare;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.PriorityQueue;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner reader = new Scanner (new FileInputStream("adunare.in"));
int a = reader.nextInt();
int b = reader.nextInt();
reader.close();
int sum = a + b;
ArrayList<Integer> v = new ArrayList<Integer>();
v.add(12);
v.add(12);
HashSet<Integer> hs = new HashSet<Integer>();
hs.add(1);
hs.add(2);
HashMap<Integer,Integer> map = new HashMap<Integer, Integer>();
map.put(1, 2);
map.put(1, 3);
PriorityQueue<Integer> pq = new PriorityQueue<Integer>();
pq.add(2);
pq.add(3);
pq.add(5);
PrintWriter writer = new PrintWriter ("adunare.out");
writer.write(sum + "\n");
writer.close();
}
}