跳到正文

生活·游记

[CSP-S 2024] 迷惑行为大赏

Naszt约 5 分钟
原文
文章信息与版本

文章信息

发布
2024年11月5日
收录
2025年12月12日
更新
2026年11月18日
篇幅
约 5 分钟
获赞
3

版本

  1. v1当前

前言

我没得什么分析文件的工具,三年前自己用 C++ 写了一个 186 行的,很难用,如果有什么建议我会采纳的。

粗言秽语

[0]

[3]

fuck

代码
GD-Senior\answers\GD-S01369\color\color.cpp第44行
GD-Senior\answers\GD-S01544\detect\detect.cpp第108行
GD-Senior\answers\GD-S02925\detect\detect.cpp第36行
C++
	return 0;
}
//I fuck CCF
C++
		
//		cout << "FUCKYOU \n";
		for(int i = 1;i <= n;i++)
C++
						ff = true;
						//cout << "FUCK\n";
						break;

[4]

damn

代码
GD-Senior\answers\GD-S00937\detect\detect.cpp第23行
GD-Senior\answers\GD-S00937\detect\detect.cpp第35行
GD-Senior\answers\GD-S00937\detect\detect.cpp第47行
GD-Senior\answers\GD-S00937\detect\detect.cpp第47行
C++
		int damn = 0;
		for (int i = 0;i < N;i++){
			bool flag = false;
			for (int j = lower_bound(m,m+M,d[i])-m;j < M;j++){
//				int sped = sqrt(pow(v[i],2)+2.0*a[i]*(m[j]-d[i]));
//				if (i == 3 && j == 2){
//					cout << i << " " << j << endl;
//					cout << sped << endl;
//				}
				if (pow(v[i],2)+2.0*a[i]*(m[j]-d[i]) > V*V){
					jisuan[i][j]=true;
					if (!flag){
						damn++;
					}
					flag = true;
				}
			}
		}
//		for (int i = 0;i < N;i++){
//			for (int j = 0;j < M;j++){
//				cout << jisuan[i][j] << ' ';
//			}
//			cout << endl;
//		}
		cout << damn << ' ' << M-damn << endl;
	}
	return 0;
} 

[12]

shit

代码
GD-Senior\answers\GD-S03127\duel\duel.cpp第2行
GD-Senior\answers\GD-S03127\duel\duel.cpp第4行
GD-Senior\answers\GD-S03127\detect\detect.cpp第2行
GD-Senior\answers\GD-S03127\detect\detect.cpp第4行
GD-Senior\answers\GD-S03127\color\color.cpp第2行
GD-Senior\answers\GD-S03127\color\color.cpp第4行
GD-Senior\answers\GD-S03127\arena\arena.cpp第2行
GD-Senior\answers\GD-S03127\arena\arena.cpp第4行
GD-Senior\answers\GD-S03165\color\color.cpp第60行
GD-Senior\answers\GD-S03494\duel\duel.cpp第17行
GD-Senior\answers\GD-S03494\duel\duel.cpp第25行
GD-Senior\answers\GD-S03494\duel\duel.cpp第30行

GD-S03127 识别错了,果然还是 雪之下雪乃 的问题(

C++
#define Yukinoshita namespace
#define Yukino std
using Yukinoshita Yukino;

GD-S03165 也识别错了,“真是太棒了”。

C++
//	system("FC color1.out color1.ans");
	freopen("color.in","r",stdin);//只有两个样例,zhenshitaibangle
	freopen("color.out","w",stdout);

GD-S03494 还识别错了,为什么不使用 is_hit 啊?

C++
		if(atk[i])continue;
		bool ishit = false;
		for(int j = 0;j < n;j++){
原文