QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#232048 | #7062. Prince and Princess | Ronbogo# | WA | 0ms | 3628kb | C++20 | 214b | 2023-10-29 19:46:53 | 2023-10-29 19:46:53 |
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==a+1)cout<<a+b+c+a;
else cout<<b+b+c+2;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3628kb
input:
2 0 0
output:
YES 2
result:
wrong answer 2nd lines differ - expected: '1', found: '2'