hack
查看原帖
hack
848868
Kuroba_kaito楼主2024/12/9 09:10

约等于才不是直等于呢,为了不误导后人写抽象代码被hack掉,所以...

题解 hack数据返回 3950

题解 hack数据返回 2885

题解 hack数据跑了4~4.2s

题解 hack数据跑了3~4.4s

题解 hack数据跑了4~4.5s

题解 hack数据跑了3~3.2s

还有的没有hack完。

这是我们伟大的hack机

#include<bits/stdc++.h>
using namespace std;
char f[1501];
int main(){
	freopen("hack.out","w",stdout);
	int n=1e4,m=1500;
	cout<<n<<endl;
	for(int i=1;i<=m;++i)
		f[i]='a';
	while(n--){
		for(int i=1;i<=m;++i)
			cout<<f[i];
		for(int i=m;i>=1;--i)
			if(f[i]!='z'){
				f[i]=f[i]+1;
				break;
			}else 
				f[i]='a';
		cout<<endl;
	}
}

要不出一道正经的hash模板题,要不撤下题解

2024/12/9 09:10
加载中...