QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#232050 | #7062. Prince and Princess | Ronbogo# | WA | 0ms | 3692kb | C++20 | 254b | 2023-10-29 19:48:59 | 2023-10-29 19:48:59 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if (b>=a){
cout<<"NO";return 0;
}
cout<<"YES"<<'\n';
if (b==0&&c==0){cout<<1;return 0;
}
if (b==a+1)cout<<a+b+c+a;
else cout<<b+b+c+2;
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3620kb
input:
2 0 0
output:
YES 1
result:
ok 2 lines
Test #2:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
1 1 0
output:
NO
result:
ok single line: 'NO'
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3692kb
input:
89586 69086 24655
output:
YES 162829
result:
wrong answer 1st lines differ - expected: 'NO', found: 'YES'