Sphere Online Judge

SPOJ Problem Set (tutorial)

3032. Adding two numbers

Problem code: ADUN

Your task is to read two numbers a and b (0 < a, b <2100000000) and to output their sum.


Input contains two lines, on the first line the number a and on the second line the number b.


Output the sum of the two numbers.




Added by:Pripoae Toni
Time limit:0.405s
Source limit:1024B
Memory limit:1536MB
Cluster: Cube (Intel Pentium G860 3GHz)
Languages:All except: ERL JS SCM chicken

hide comments
2015-01-31 15:50:36 Dushyant Singh
@ Chinmaya Kumar Patanaik - Because it's tutorial problem.
2014-12-15 06:47:55 Chinmaya Kumar Patanaik
Even though my solution got accepted, I can't see the problem added to the list of solved problem on my account.
2014-07-09 08:33:28 Sahil Dua
One liner in Python :)
2014-06-13 10:07:02 Steven Hans Limantoro
lol so easy
2013-09-20 04:09:44 Ouditchya Sinha
@alex : It should be %ld in scanf & not &ld. Please don't post your code here. Post it on the SPOJ FORUM from here on & someone will surely help you. Do remove your code after getting accepted.
2013-06-29 18:09:36 saurabh jain
one line in python :))
2013-04-23 09:45:09 Michael Kharitonov
(Tjandra Satria Gunawan)(曾毅昆): Try Malbolge.
2013-04-15 18:11:59 (Tjandra Satria Gunawan)(曾毅昆)
even for brainf**k language, I feel this problem is too easy, haha ;-)
2012-11-03 16:47:32 Dmitry Sedukhin
So easy, using BigInteger in java... Maybe , it'll be useful to add some other constraints to the task, including specific programming languages?

Last edit: 2012-11-03 16:48:51
2012-03-16 15:30:05 Gandaro
I don’t understand, why there are *that* easy problems on SPOJ… This one is really easy, even using ANSI C…
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.