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)

I fanally can chat. Why does peg make you do this question in order to chat? its werid.

There have been issues in the past with spambots, as there isn't really any registration verification. Since anybody who can program should be able to solve A plus B, this acts as a sort of filter, that determines the users from the spambots

Anybody who can write a spam bot can also solve this...(and I really doubt there are any "creative" solutions to this)

This is a measure against automated bots that cast a wide net.

If somebody were to write a bot that specifically targeted us, then naturally this wouldn't work.

Mind you, this isn't an invitation to try and do just that...

This isn't even supposed to be a chat. It should really only be used for discussing whether the problem might have an issue, such as incorrect test data or an overly strict time limit.

We're going to make it so you'll have commenting privileges as soon as you score any points. The only reason it isn't yet is performance issues (read: implementer laziness).

run again

bruce why am i getting TLE?

aplusb, bbi5291's favourite problem. http://wcipeg.com/submissions/bbi5291,

I submit here to make sure the judge is still working after I make changes.

Brian I am your fan.Thanks for everything you are doing here.

Yaaaaay!! I did my first problem!

I solved my first problem :D

OMG I solved my first problem.

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.

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.