sweetestsmiles says
16 years ago
sums the numbers between 205 and 204493... no problem right?
latest #15
Начик
16 years ago
where's the code? care to pastebin it?
Начик
16 years ago
anyway, unless I have a morning brainf*ck that should be 20908774861
sweetestsmiles says
16 years ago
=)
立即下載
tinker cat thinks
16 years ago
Начик
16 years ago
well, that's the formula but I guess you cannot use that if it's an assignment
tinker cat
16 years ago
actually you can. since you just add by 1, you can substitute the a1 as 205 and a(n-205) as 204493...
Начик
16 years ago
(unsure)
Начик
16 years ago
I meant an assignment as in "class assignment" - like: "do this exactly, no shortcuts"
tinker cat says
16 years ago
well, it's a shortcut, but you can argue that it's a more optimal solution-- unless your assignment is about loops.. =\
sweetestsmiles says
16 years ago
no, not assigment of course =)
sweetestsmiles says
16 years ago
1 step soln:
sweetestsmiles says
16 years ago
sum(205: 1: 204493)
sweetestsmiles says
16 years ago
(LOL)
back to top