Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Wmic.'s blog

By Wmic., history, 2 months ago, In English

by using this generator

#include<bits/stdc++.h>
using namespace std;
int t=16129,n=31;
// int t=5,n=100000
int w1=30360,w2=994593600;
// int w1=994593600,w2=994593600
vector<int> d;
void divi(int n)
{
	for(int i=1;i*i<=n;i++)
	{
		if(n%i==0)
		{
			d.emplace_back(i);
			if(i*i!=n) d.emplace_back(n/i);
		}
	}
}
int main()
{
	// freopen("test.in","w",stdout);
	cout<<t<<"\n";
	divi(w2);
	int p=0;
	while(t--)
	{
		cout<<n<<"\n";
		// w1=d[p];
		// p=(p+1)%d.size();
		for(int i=1;i<=n;i++)
		{
			if(i!=1) cout<<w1;
			else cout<<w2;
			if(i!=n) cout<<" ";
		}
		cout<<"\n";
		for(int i=1;i<=n;i++)
		{
			if(i!=1) cout<<w1;
			else cout<<w2;
			if(i!=n) cout<<" ";
		}
		cout<<"\n";
	}
}

the code in Tutorial will be TLE(it runs 6s)

And why using hacks by this generator i get "Unexpected verdict"?

Full text and comments »

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

By Wmic., history, 14 months ago, In English

"Can't read or parse problem descriptor".

I try to open any problems in problemset and contest,but i can't do it :(.

Full text and comments »

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

By Wmic., history, 20 months ago, In English

I notice that codeforces has no tag called random.

Usually,we don't use random in the contest because of the hack tests,but in practice,random can passed some problems (they have no test to hack random).

In some problems which have partial score, random can get high score and sometimes can get accepted.If someone use random in this situation,he may get high rank with easy code.

Some problems' solution is random,like random hash(maybe codeforces don't have these problems ?)

Many problems in contests can use random but we don't try like 197655937.We always think a right algorithm and it may cost many times.

I think random is a strange algorithm, how to use it?

(My English is pool :(

Full text and comments »

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

By Wmic., history, 2 years ago, In English

I hope all of Chinese oiers (include me) will have good grades in CSP! CSP RP++!

Full text and comments »

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