Блог пользователя Shafaet

Автор Shafaet, 11 лет назад, По-английски

I was trying to solve this problem: http://codeforces.com/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.com/contest/226/submission/4082188

Can anyone tell me whats wrong?

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
11 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

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.