jackylova_fan_fan_fan's blog

By jackylova_fan_fan_fan, history, 4 hours ago, In English

In problem 2028F - Alice's Adventures in Addition, when I hack other's code, the return verdict is "Unexpected verdict", can someone tells me why, thanks.

@applepi216

And this is my generator

#include<bits/stdc++.h>
using namespace std;
mt19937 rnd(233);
main()
{
	int t=1,n=2e5,m=1e4;
	cout<<t<<endl;
	cout<<n<<' '<<m<<endl;
	for(int i=1;i<=n;i++)
	{
		if(i==1||i==2)cout<<1;
		else if(i==n)cout<<int(1e4);
		else
		{
			if(rnd()%1000==0)cout<<0;
			else cout<<2;
		}
		cout<<" \n"[i==n];
	}
}
»
102 minutes ago, # |
  Vote: I like it +1 Vote: I do not like it

I think you might have accidentally hacked Codeforces' code instead of the other's code

  • »
    »
    101 minute(s) ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Do u mean that something wrong may be occurs on codeforces platform?

    • »
      »
      »
      62 minutes ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Codeforces goes booom

      • »
        »
        »
        »
        60 minutes ago, # ^ |
        Rev. 2   Vote: I like it 0 Vote: I do not like it

        But after that, I hack with a very small data but now it runs successfully

      • »
        »
        »
        »
        59 minutes ago, # ^ |
        Rev. 2   Vote: I like it 0 Vote: I do not like it

        I guess may be std got TLE?

      • »
        »
        »
        »
        2 minutes ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Had this also happen once, it can mean that one of the reference codes fails on your input.