QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#409824#8631. 疯狂THUwoshiyu40 1ms3644kbC++23340b2024-05-12 18:59:042024-05-12 18:59:04

Judging History

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

  • [2024-05-12 18:59:04]
  • 评测
  • 测评结果:40
  • 用时:1ms
  • 内存:3644kb
  • [2024-05-12 18:59: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;
	if(m==1||m==2) m+=12;
	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: 0
Wrong Answer
time: 0ms
memory: 3576kb

input:

2024 2 29

output:

Not crazy enough.

result:

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

Test #2:

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

input:

2024 2 11

output:

Crazy THU!

result:

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

Test #3:

score: 0
Wrong Answer
time: 1ms
memory: 3644kb

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

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

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

input:

2097 1 26

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #8:

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

input:

9700 3 3

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #9:

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

input:

5897 2 5

output:

Not crazy enough.

result:

ok single line: 'Not crazy enough.'

Test #10:

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

input:

3906 12 6

output:

Not crazy enough.

result:

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