QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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);
}
詳細信息
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'