A Plus B

View as PDF

Submit solution


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 N (1 \le N \le 100\,000), the number of addition problems Xyene 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 Xyene 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

Comments


  • -3
    AmineHamoura
     commented on March 5, 2017

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


    • -2
      achrafprix
       commented on March 9, 2017

      hh


    • -2
      Iamhussam
       commented on March 5, 2017

      Download on your phone the sololearn's application : "learn python"


    • -2
      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)


  • -2
    ouakmarouane
     commented on March 3, 2017

    some help please


    • 0
      Roynaruto
       commented on March 7, 2017

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


  • -4
    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.


  • -4
    ammaoui
     commented on March 1, 2017

    hhhhhhgg


  • -2
    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 ??


    • 8
      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.


  • 2
    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.

    Error with Java submissions

    • 2
      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.


      • 0
        PiMachine
         commented on July 16, 2016

        thanks


    • 0
      Lsquared
       commented on July 16, 2016 edited

      :(


  • -4
    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.


    • 5
      Xyene
       commented on April 5, 2016

      The first submission you linked is about half a year old.

      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.


  • -5
    Kirito
     commented on March 14, 2016
    Limits

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


    • 2
      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.