Comments
On dolphinigleCodeforces Round #192, 13 years ago
0

You didn't initialize your visited array with falses

On EgorWorld Finals: Live, 13 years ago
+16

Whoever, who was switching the feeds, successfully pissed me off by showing contestants during the release.

The problem is in using of pow() with integers. Try the following code in custom test:

long long int a=10, t=1;
while(t<3) {
    long long int test=(long long int) (pow((long long int)10,t));
    cout<<test<<endl ;
    t++;
}