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
3
>

i want to do more problems

it wasnt that bad

3


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

Wow. That's a bit cool.

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.

These problems are WAY too easy.


Really? Mind, I solved it first try.

No offence meant.


Some submissions have memory usage below the minimum assembly program(sys_exit();), this shouldn't be possible. Also, can we please rejudge this problem? As it currently stands it's literally impossible to compete with the earlier submissions for memory usage.

These are relics of a time where runtime and memory usage could not be measured as accurately, though this generally only occurred when the program ran for very short periods of time.

Very frankly, there's little purpose in competing for memory usage on problems like these, where there's almost zero room for memory optimisation. It is my personal opinion (and not necessarily the position of the Judge in general) that it would be a waste of resources to rejudge these submissions.

For this problem, everyone can easily get 0.000s, the only thing that is actually "competable" is the memory usage. This problem can also encourage participants to learn assembly.

Go solve aplusb2 in assembly if you care. That's a real challenge. Don't waste your time with this problem.

Somehow got 100/100 and an RE

If you return a nonzero value, then your code will RE. As long as you produce the correct output, however, you'll still earn the points.