A Plus B

Given two integers a and b, output the sum of a and b.
A and B, as well as A+B will be less than 10000 in absolute value.

All Submissions
Best Solutions


Point Value: 2
Time Limit: 2.00s
Memory Limit: 16M
Added: Sep 23, 2008

Problem Types: [Show]

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

<
1
2
>

Can we please have more questions like these.

We can do:
a*b
a**b
a-b
a/b
a%b
.....

Then let's all go write the Beaver contest

Adding problems like these will not help you to improve; this problem exists primarily as a way to ensure you know how submitting code to the judge works.

If you want some easy problems to look at, you are welcome to try solving the Bluebook problems.

Just to clarify, is this saying that a+b = always less than 10,000? or a and b be 10000 maximum.

A and B, as well as A+B will be less than 10000 in absolute value.

Just a note: do not prompt for input when you submit code to the Judge, and do not output extraneous information. (i.e., simply outputting the result is correct; outputting "The result is ..." is not.)

what am i getting wrong?

Sorry about the issue with Java, it's been fixed.

Why do some people have more than 2 points for this problem?

where do you see this?

people who are cleaning up problem statements get their points added to a plus b

If you submit code here, everyone can see your code =P. Some people seem to be submitting code to other problems here.

I'm fine with people seeing the strange stuff I submit here.

I wasn't referring to you =P. Some people submitted almost working code to a plus b 2 a couple times.

why would you visit this page on a regular basis anyways?

Jacob why did you submit this like 50 times?

The comp i was using didn't have C++, so i was running my programs on here :P