关于直接模拟 n^2 过百万而又写出了 hack 数据生成器这件事
查看原帖
关于直接模拟 n^2 过百万而又写出了 hack 数据生成器这件事
203623
critnos楼主2020/8/9 11:07

RT

https://www.luogu.com.cn/record/36661881

hack:

#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("9.in","w",stdout);
	int t=30000,i;
	cout<<t<<endl; 
	for(i=1;i<t;i++)
		printf("M %d %d\n",i,i+1);
	printf("C %d %d",1,30000);
}
2020/8/9 11:07
加载中...