QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#232048#7062. Prince and PrincessRonbogo#WA 0ms3628kbC++20214b2023-10-29 19:46:532023-10-29 19:46:53

Judging History

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

  • [2024-03-10 21:15:22]
  • hack成功,自动添加数据
  • (/hack/570)
  • [2024-03-10 21:10:56]
  • hack成功,自动添加数据
  • (/hack/569)
  • [2023-10-29 19:46:53]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3628kb
  • [2023-10-29 19:46:53]
  • 提交

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'