如何搞出TLE
原题链接:34147.XTL闪击波兰2025-01-15 13:54:21
发布于:云南
请看VCR:
#include<bits/stdc++.h>
using namespace std;
void dfs(int n){
if(n == 2) return ;
dfs(n);
}
int main(){
dfs(1);
cout << 36;
return 0;
}
全部评论 2
啊?不是RE???
2025-01-15 来自 广东
1不是啊,无限递归在把内存弄爆前就运行超时了
2025-01-15 来自 云南
0
#include<bits/stdc++.h> using namespace std; int main(){ while(1) cout<<' '; return 0; }
2025-01-20 来自 广东
0
有帮助,赞一个