并且所有含有超长变量名的代码加起来只有 44 分,他的 T1 代码看起来是比较正常的

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

#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
	int q;
	cin >> q;
	cin.ignore(); 
	for (int i = 0; i < q; i++) {
		string line;
		getline(cin, line);
		size_t pos = line.find(" or ");
		string A = line.substr(0, pos);
		string B = line.substr(pos + 4, line.length() - pos - 5);
		if (A == "eat" && B == "eat") {
			cout << "or" << endl;
		} else if (A == "eat") {
			cout << B << endl;
		} else if (B == "eat") {
			cout << A << endl;
		} else {
			cout << A << endl;
		}
	}
	return 0;
}
2024/12/15 09:48
1105993