Sphere Online Judge

Because of maintenance, it is currently impossible to submit any solutions. The maintenance will end around 3:00 am GMT (4:00 am SPOJ time).

This message will disappear once the maintenance is finished.

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:1s
Source limit:1024B
Memory limit:256MB
Cluster: Pyramid (Intel Pentium III 733 MHz)
Languages:All except: ERL JS

hide comments
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…
2011-08-31 04:47:04 vj
Hi, im new to this, ive written the solution to the problem in turbo c but when i submit it doesnt work and giving compilation error, could someone take a look at the code and tell me whats wrong? thanks

[code removed.]

[Re by XilinX]: See note 1 at the bottom of this page.

Last edit: 2011-08-31 09:00:53
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.