QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#731686#7062. Prince and PrincessYurily#WA 1ms3724kbC++20244b2024-11-10 10:30:312024-11-10 10:30:31

Judging History

你现在查看的是最新测评结果

  • [2024-11-10 10:30:31]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3724kb
  • [2024-11-10 10:30:31]
  • 提交

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";
    }
}

Details

Tip: Click on the bar to expand more detailed information

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'