Shafaet's blog

By Shafaet, 11 years ago, In English

I was trying to solve this problem: http://codeforces.me/contest/226/problem/B

I am getting the strange error "wrong answer Participant output contains extra tokens".

But i am printing exactly q integers.

rep(st,q)
    {       
       i64 k;
       cin>>k;
       if(k==1) out.pb(k1);
       else out.pb(solve(k));
    }
    if(SZ(out)!=q) q/=0;
    rep(i,SZ(out))cout<<out[i]<<" ";
    puts("");

Here is the full code: http://codeforces.me/contest/226/submission/4082188

Can anyone tell me whats wrong?

  • Vote: I like it
  • +4
  • Vote: I do not like it

»
11 years ago, # |
  Vote: I like it +4 Vote: I do not like it

I guess there are some bug in the judge. I've submitted some previously AC code's of this problem to test and they are giving same verdict. Admins please check it.