QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#166818 | #6607. Rise of Shadows | LFCode# | WA | 0ms | 1628kb | C++14 | 353b | 2023-09-06 18:50:10 | 2023-09-06 18:50:11 |
Judging History
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'