QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#409822#8631. 疯狂THUwoshiyu70 0ms3720kbC++23316b2024-05-12 18:57:042024-05-12 18:57:05

Judging History

你现在查看的是最新测评结果

  • [2024-05-12 18:57:05]
  • 评测
  • 测评结果:70
  • 用时:0ms
  • 内存:3720kb
  • [2024-05-12 18:57:04]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define inf 2147483647
typedef long long ll;
const int N=1e5+10;
int main() {
	int y,m,d;
	cin>>y>>m>>d;
	int c=y%100;
	y/=100;
	int w=y+y/4+c/4-2*c+13*(m+1)/5+d-1;
	w=(w+7)%7;
	if(w==4) cout<<"Crazy THU!\n";
	else cout<<"Not crazy enough.\n";
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 0ms
memory: 3656kb

input:

2024 2 29

output:

Crazy THU!

result:

ok single line: 'Crazy THU!'

Test #2:

score: 10
Accepted
time: 0ms
memory: 3596kb

input:

2024 2 11

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #3:

score: 10
Accepted
time: 0ms
memory: 3656kb

input:

2024 2 8

output:

Crazy THU!

result:

ok single line: 'Crazy THU!'

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 3652kb

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: 3532kb

input:

2024 11 11

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 3532kb

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: 3720kb

input:

2097 1 26

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #8:

score: 10
Accepted
time: 0ms
memory: 3532kb

input:

9700 3 3

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #9:

score: 10
Accepted
time: 0ms
memory: 3536kb

input:

5897 2 5

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #10:

score: 0
Wrong Answer
time: 0ms
memory: 3652kb

input:

3906 12 6

output:

Not crazy enough.

result:

wrong answer 1st lines differ - expected: 'Crazy THU!', found: 'Not crazy enough.'