ENG
RUS
Timus 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
1206
. Sum of Digits of the Sum of Numbers
sim40
WHY WA on TEST 5 ?!?!? C++
[1] // Problem
1206. Sum of Digits of the Sum of Numbers
28 Mar 2008 18:57
#include<iostream>
using namespace std;
unsigned long long n=36;
int k;
int main()
{
cin>>k;
while(k>1)
{
n*=55;
k--;
}
cout<<n<<endl;
}
ENick(TNU)
Re: WHY WA on TEST 5 ?!?!? C++
// Problem
1206. Sum of Digits of the Sum of Numbers
26 Apr 2008 22:45
Use long arifmetic.
© 2000–2026
Timus Online Judge Team
. All rights reserved.