QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#166818#6607. Rise of ShadowsLFCode#WA 0ms1628kbC++14353b2023-09-06 18:50:102023-09-06 18:50:11

Judging History

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

  • [2023-09-06 18:50:11]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:1628kb
  • [2023-09-06 18:50:10]
  • 提交

answer

#include<cstdio>
#define int long long
int H,M,A;
int read(){
	char ch=getchar();int nn=0,ssss=1;
	while(ch<'0'||ch>'9'){if(ch=='-')ssss*=-1;ch=getchar();}
	while(ch>='0'&&ch<='9'){nn=nn*10+(ch-'0');ch=getchar();}
	return nn*ssss;
}
signed main(){
	int H=read();int M=read();int A=read();
	if(A==0)printf("2");
	else printf("%lld",A*2+1);
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 1532kb

input:

5 5 4

output:

9

result:

ok 1 number(s): "9"

Test #2:

score: 0
Accepted
time: 0ms
memory: 1624kb

input:

3 5 1

output:

3

result:

ok 1 number(s): "3"

Test #3:

score: -100
Wrong Answer
time: 0ms
memory: 1628kb

input:

5 5 0

output:

2

result:

wrong answer 1st numbers differ - expected: '1', found: '2'