Ma trận kề sang danh sách kề, danh sách cạnh (vô hướng)

Nộp bài
Time limit: 1.0 / Memory limit: 256M

Point: 1

Tudor is sitting in math class, on his laptop. Clearly, he is not paying attention in this situation. However, he gets called on by his math teacher to do some problems. Since his math teacher did not expect much from Tudor, he only needs to do some simple addition problems. However, simple for you and I may not be simple for Tudor, so please help him!

Input Specification

The first line will contain an integer ~N~ (~1 \le N \le 100\,000~), the number of addition problems Tudor needs to do. The next ~N~ lines will each contain two space-separated integers whose absolute value is less than ~1\,000\,000\,000~, the two integers Tudor needs to add.

Output Specification

Output ~N~ lines of one integer each, the solutions to the addition problems in order.

Sample Input

2
1 1
-1 0

Sample Output

2
-1

[TEST] Chia lấy dư

Nộp bài
Time limit: 1.0 / Memory limit: 64M

Point: 1

Chia lấy dư

Đây là bài toán mẫu dùng để kiểm tra chức năng phân trang của Lattice Online Judge.

Yêu cầu

Thực hiện yêu cầu theo chủ đề: Chia lấy dư.

Dữ liệu vào

Dữ liệu đầu vào tương ứng với bài toán.

Dữ liệu ra

In kết quả theo yêu cầu.

Bài chỉ dùng để kiểm thử giao diện. Chưa có testcase.