题解AC
2024-10-23 20:34:39
发布于:北京
放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视放透视
打比赛时这道题答案写了很多遍,但就是不对,后来用了讯飞星火,还是不对,
于是第二天(比赛结束倒数的二天)我去小码王上课,问了老师,老师说会发给
我题解,结果比赛结束前一天我在半夜才收到题解,那天晚上世界上唯一没睡好
的人就我和我的老师......(别笑,那天我1:30才睡)
以下是我的老师发我的代码
#include <iostream>
using namespace std;
long long t, n, l;
string s;
int c[105];
int main() {
cin >> t;
while (t--) {
cin >> s;
int l = s.size();
for (int i = 0; i < l; i++) {
c[i] = s[i] - '0';
}
int f = 0;
if (c[0] % 4 == 0 || c[l - 1] % 4 == 0)
f = 1;
for (int i = 0; i < l - 1; i++) {
if ((c[i] * 10 + c[i + 1]) % 4 == 0) {
f = 1;
break;
}
}
for (int i = 0; i < l - 1; i++) {
if ((c[i] * 10 + c[l - 1]) % 4 == 0) {
f = 1;
break;
}
}
if (f)
cout << "Superman" << endl;
else
cout << "Human" << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个