T554176
  • 板块灌水区
  • 楼主luoguplay
  • 当前回复1
  • 已保存回复1
  • 发布时间2025/1/9 11:40
  • 上次更新2025/1/9 12:19:57
查看原帖
T554176
1624284
luoguplay楼主2025/1/9 11:40

1.输入以下代码(有惊喜)

#include<bits/stdc++.h>
using namespace std;

void MLE(long long x) {int n,m,a[2508][2509][6],Ma,j,i;new char[10000000000]; long long y = sizeof a; MLE(x);}

int main() {
//	freopen(".in", "r", stdin);
//	freopen(".out", "w", stdout);
	int t; scanf("%d", &t);
	if(t == 1) printf("1");
	if(t == 2) printf("2");
	if(t == 3) printf("%d", 1 / 0);
	if(t == 4) {int TLE; while(1) TLE++;}
	if(t == 5) {MLE(1ll);}
	if(t == 6) while(1) printf("11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111");
    if(t==7)cout<<1/0+2/0+8/0;
	return 0;
}
#include<bits/stdc++.h>
using namespace std;

void MLE(long long x) {int n,m,a[2508][2509][6],Ma,j,i;new char[10000000000]; long long y = sizeof a; MLE(x);}

int main() {
//	freopen(".in", "r", stdin);
//	freopen(".out", "w", stdout);
	int t; scanf("%d", &t);
	if(t == 1) printf("1");
	if(t == 2) printf("2");
	if(t == 3) printf("%d", 1 / 0);
	if(t == 4) {int TLE; while(1) TLE++;}
	if(t == 5) {MLE(1ll);}
	if(t == 6) while(1) printf("11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111");
    if(t==7)cout<<1/0+2/0+8/0;
	return 0;
}

2.输入以下代码(全AC)

#include<bits/stdc++.h>
using namespace std;

void MLE(long long x) {int n,m,a[2508][2509][6],Ma,j,i;new char[10000000000]; long long y = sizeof a; MLE(x);}

int main() {
//	freopen(".in", "r", stdin);
//	freopen(".out", "w", stdout);
	int t; scanf("%d", &t);
	if(t == 1) printf("1");
	if(t == 2) printf("1");
	if(t == 3) printf("1");
	if(t == 4) cout<<1;
	if(t == 5) cout<<1;
	if(t == 6) cout<<1;
    if(t==7)cout<<1;
	return 0;
}
2025/1/9 11:40
加载中...