QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#232085#7062. Prince and PrincessRonbogo#AC ✓1ms3548kbC++20250b2023-10-29 20:39:432023-10-29 20:39:44

Judging History

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

  • [2024-03-10 21:15:22]
  • hack成功,自动添加数据
  • (/hack/570)
  • [2024-03-10 21:10:56]
  • hack成功,自动添加数据
  • (/hack/569)
  • [2023-10-29 20:39:44]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3548kb
  • [2023-10-29 20:39:43]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main(){
	long long a,b,c;
	cin>>a>>b>>c;
	if (b+c>=a){
		cout<<"NO";
                return 0;
	}
	cout<<"YES"<<'\n';
if(a == 1) {
cout << 0 ;
return 0;
}
	cout<<(b+c)*2+1;
	return 0;
}

这程序好像有点Bug,我给组数据试试?

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3320kb

input:

2 0 0

output:

YES
1

result:

ok 2 lines

Test #2:

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

input:

1 1 0

output:

NO

result:

ok single line: 'NO'

Test #3:

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

input:

89586 69086 24655

output:

NO

result:

ok single line: 'NO'

Test #4:

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

input:

158180 57864 93937

output:

YES
303603

result:

ok 2 lines

Test #5:

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

input:

51497 19791 57294

output:

NO

result:

ok single line: 'NO'

Test #6:

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

input:

37924 72502 88364

output:

NO

result:

ok single line: 'NO'

Test #7:

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

input:

38506 50719 9243

output:

NO

result:

ok single line: 'NO'

Test #8:

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

input:

44623 66300 29302

output:

NO

result:

ok single line: 'NO'

Test #9:

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

input:

164851 97868 94938

output:

NO

result:

ok single line: 'NO'

Test #10:

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

input:

163100 62397 99567

output:

YES
323929

result:

ok 2 lines

Test #11:

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

input:

180210 69137 35332

output:

YES
208939

result:

ok 2 lines

Test #12:

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

input:

108374 4656 91320

output:

YES
191953

result:

ok 2 lines

Test #13:

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

input:

1 0 0

output:

YES
0

result:

ok 2 lines

Test #14:

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

input:

10 0 0

output:

YES
1

result:

ok 2 lines