## A Plus B

View as PDF

Points:3 (partial)
Time limit:5.0s
Memory limit:256M

Problem type

Xyene 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 Xyene, he only needs to do some simple addition problems. However, simple for you and I may not be simple for Xyene, so please help him!

#### Input Specification

The first line will contain an integer (), the number of addition problems Xyene needs to do. The next lines will each contain two space-separated integers whose absolute value is less than , the two integers Xyene needs to add.

#### Output Specification

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

#### Sample Input

2
1 1
-1 0

#### Sample Output

2
-1

• AmineHamoura
commented on March 5, 2017

Plz some help i m using python 3 and i have olympiads next week

• achrafprix
commented on March 9, 2017

hh

• Iamhussam
commented on March 5, 2017

• nabil_boudraa38
commented on March 5, 2017

ok amine me too i have olompiad next week just like you (i mean i'm from morocco too)

• ouakmarouane
commented on March 3, 2017

• Roynaruto
commented on March 7, 2017

User inputs a number which will indicate how many pairs will be inputted. Then add those two numbers.

• ammaoui
commented on March 1, 2017

There is not much demand for this feature (that I know of anyway), and this is the first time I have seen it being discussed. For most people, copy and paste is much faster than browsing for a file or finding it and drag-and-drop it. Obviously, if there is sufficient demand, it may be added eventually.

• ammaoui
commented on March 1, 2017

hhhhhhgg

• Kirito
commented on March 1, 2017
• XGptw
commented on July 17, 2016
how to submit my code as a file ?

how can i submit my code as a file to this problem . Or is copy pasting the code is the only option that we can do ??

• quantum
commented on July 21, 2016

There is not much demand for this feature (that I know of anyway), and this is the first time I have seen it being discussed. For most people, copy and paste is much faster than browsing for a file or finding it and drag-and-drop it. Obviously, if there is sufficient demand, it may be added eventually.

• PiMachine
commented on July 16, 2016
Java is stuck

This is a general question (not sure where else to post this) but I submitted some Java solutions. They have been queued for over an hour. I am unable to abort them, meaning that I am blocked from submitting ("You have submitted too many submissions"). According to all submissions, it appears I am not the only one, but it only happens with Java. Please fix.

• quantum
commented on July 16, 2016 edited

Certain external problem setters have managed to hang the judge Lemuria and neglected to inform us of their irresponsible behaviour.

In case it wasn't clear, the issue is fixed.

• PiMachine
commented on July 16, 2016

thanks

• Lsquared
commented on July 16, 2016 edited

:(

• Itachi
commented on April 5, 2016
Inconsistant Speed

This vs this. I copy-pasted it, because I thought my code was really slow. However, if you look at the time required for the last test case, the first one takes 0.5 seconds, while the second one takes 2 seconds. While it doesn't matter for this question, I believe that it will make a big difference on other questions with more input.

• Xyene
commented on April 5, 2016

If you resubmit the same solution a couple times, they'll tend to fall in the ballpark of 2 second regardless of which judge grades it.

For the record, this problem has 1mb of input data for the last case, significantly more than most problems have in total.

• Kirito
commented on March 14, 2016
Limits

Time limit 20 seconds + memory limit 256M = LOL.

• Xyene
commented on March 14, 2016

Once upon a time, our judges were much slower, and 20s were necessary to pass the last case in Python.