QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#731686 | #7062. Prince and Princess | Yurily# | WA | 1ms | 3724kb | C++20 | 244b | 2024-11-10 10:30:31 | 2024-11-10 10:30:31 |
Judging History
answer
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a==b+c||a==0){
cout<<"NO\n";
return 0;
}
else{
cout<<"YES\n";
cout<<2*min(a,b+c)+1<<"\n";
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3724kb
input:
2 0 0
output:
YES 1
result:
ok 2 lines
Test #2:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
1 1 0
output:
NO
result:
ok single line: 'NO'
Test #3:
score: -100
Wrong Answer
time: 1ms
memory: 3640kb
input:
89586 69086 24655
output:
YES 179173
result:
wrong answer 1st lines differ - expected: 'NO', found: 'YES'