QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#448414 | #8631. 疯狂THU | only3 | 60 | 0ms | 3716kb | C++14 | 860b | 2024-06-19 16:33:40 | 2024-06-19 16:33:40 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
int y, m, d;
cin >> y >> m >> d;
int c = y / 100;
int cnt = (m + 14 - 2) % 14;
int ans = y / 100 + (((y / 100) - 1) / 4) + ((c - 1) / 4) - 2 * c + (13 * (cnt + 1) - 1) / 5 + d - 1;
if (ans >= 0)
{
if (ans % 7 == 4)
{
cout << "Crazy THU!" << endl;
}
else
{
cout << "Not crazy enough." << endl;
}
}
else
{
while (ans > 0)
{
ans += 7;
}
if (ans % 7 == 4)
{
cout << "Crazy THU!" << endl;
}
else
{
cout << "Not crazy enough." << endl;
}
}
return 0;
}
詳細信息
Test #1:
score: 10
Accepted
time: 0ms
memory: 3584kb
input:
2024 2 29
output:
Crazy THU!
result:
ok single line: 'Crazy THU!'
Test #2:
score: 10
Accepted
time: 0ms
memory: 3632kb
input:
2024 2 11
output:
Not crazy enough.
result:
ok single line: 'Not crazy enough.'
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3636kb
input:
2024 2 8
output:
Not crazy enough.
result:
wrong answer 1st lines differ - expected: 'Crazy THU!', found: 'Not crazy enough.'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 3700kb
input:
2024 9 12
output:
Not crazy enough.
result:
wrong answer 1st lines differ - expected: 'Crazy THU!', found: 'Not crazy enough.'
Test #5:
score: 10
Accepted
time: 0ms
memory: 3632kb
input:
2024 11 11
output:
Not crazy enough.
result:
ok single line: 'Not crazy enough.'
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 3716kb
input:
2003 10 9
output:
Not crazy enough.
result:
wrong answer 1st lines differ - expected: 'Crazy THU!', found: 'Not crazy enough.'
Test #7:
score: 10
Accepted
time: 0ms
memory: 3576kb
input:
2097 1 26
output:
Not crazy enough.
result:
ok single line: 'Not crazy enough.'
Test #8:
score: 10
Accepted
time: 0ms
memory: 3708kb
input:
9700 3 3
output:
Not crazy enough.
result:
ok single line: 'Not crazy enough.'
Test #9:
score: 10
Accepted
time: 0ms
memory: 3704kb
input:
5897 2 5
output:
Not crazy enough.
result:
ok single line: 'Not crazy enough.'
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 3636kb
input:
3906 12 6
output:
Not crazy enough.
result:
wrong answer 1st lines differ - expected: 'Crazy THU!', found: 'Not crazy enough.'