ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1068. Sum

test 3 and answer
Posted by Aleqsandre Skhirtladze 14 Jan 2015 14:25
what is test #3; 3 or what?
don't you think that when n>0 answer is (n*(n+1))/2?
                     when n<0 answer is (-((n*(n-1))/2-1))?
                     when n=0 or n=1  answer is 1  ?



Edited by author 14.01.2015 14:52