QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#736014#7062. Prince and PrincessTytytonyWA 1ms3636kbC++23271b2024-11-11 23:34:212024-11-11 23:34:22

Judging History

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

  • [2024-11-11 23:34:22]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3636kb
  • [2024-11-11 23:34:21]
  • 提交

answer

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;

int a,b,c; 

int main(){
	cin>>a>>b>>c;
	if(a-b<=c){
		cout<<"NO\n";
		return 0;
	}
	cout<<"YES\n";
	cout<<2*min(a+c,b+c)+1;
	return 0;

}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3588kb

input:

2 0 0

output:

YES
1

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 3516kb

input:

1 1 0

output:

NO

result:

ok single line: 'NO'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

89586 69086 24655

output:

NO

result:

ok single line: 'NO'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3572kb

input:

158180 57864 93937

output:

YES
303603

result:

ok 2 lines

Test #5:

score: 0
Accepted
time: 0ms
memory: 3516kb

input:

51497 19791 57294

output:

NO

result:

ok single line: 'NO'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

37924 72502 88364

output:

NO

result:

ok single line: 'NO'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3468kb

input:

38506 50719 9243

output:

NO

result:

ok single line: 'NO'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

44623 66300 29302

output:

NO

result:

ok single line: 'NO'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

164851 97868 94938

output:

NO

result:

ok single line: 'NO'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

163100 62397 99567

output:

YES
323929

result:

ok 2 lines

Test #11:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

180210 69137 35332

output:

YES
208939

result:

ok 2 lines

Test #12:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

108374 4656 91320

output:

YES
191953

result:

ok 2 lines

Test #13:

score: -100
Wrong Answer
time: 0ms
memory: 3516kb

input:

1 0 0

output:

YES
1

result:

wrong answer 2nd lines differ - expected: '0', found: '1'