TESTINT - Test 1

Given two natural numbers (both not greater than 200), each number in the separate line, please print the sum of them.

Example

Input:
2
3

Output:
5

Added by:kuszi
Date:2012-08-22
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64

hide comments
2016-09-17 08:11:10 huy
You need to use IT applied on Trie, with Bitmask Dynamic Programming to solve the problems.
2016-09-16 17:11:56
store added number to third variable and use nextline
2016-09-15 05:08:34
how can i submit scheme lang,because i cant write something like scanf() in c..
2016-09-09 11:33:06
can anyone explain,what error does it contain in python 3.5
<snip>

Last edit: 2022-08-18 15:43:13
2016-08-30 22:28:10
Thank you akashpreet. I eliminated any cout i.e. "Input", "Output" and it finally passed. Also using goto statement for numbers outside the range. I did it in C++.
2016-08-29 02:55:40
Can someone tell me why this code isn't compiling?
it doesn't like the " in " before "nexIint();"
<snip>

Last edit: 2022-08-18 15:43:23
2016-08-28 18:55:29
Here is a Tip:
1)Don't use any print statements like "please enter the number" in your program.
2)Directly get the input and store it in a variable
3)For example if a program asks for an even number as a input then,
Don't do
print("enter even number")
even_number = scan()
what you have to do is just use scan statement
even_number = scan()
2016-08-12 23:28:17 Shashi Shailaj
Changed the code to this .. and errr utput shows the correct results .. sill no idea why spoj says its wrong
<snip>

Last edit: 2022-08-18 15:43:30
2016-08-12 16:44:39 Shashi Shailaj
I have submitted the below C code but it says its wrong answer.
Its compiling fine with Visual Studio 2015 compiler . Even the error page on the Spoj site shows exactly desired output , yet it says that its wrong answer.

http://www.spoj.com/error/17491395
<snip>

Last edit: 2022-08-18 15:41:32
2016-08-07 07:30:53
plz give ans thi que.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.