QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#640284#7062. Prince and PrincessLoxilante#WA 0ms3728kbC++14754b2024-10-14 10:33:362024-10-14 10:33:37

Judging History

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

  • [2024-10-14 10:33:37]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3728kb
  • [2024-10-14 10:33:36]
  • 提交

answer

#define F_C
#include <bits/stdc++.h>
#define rep(i, l, r) for(int i = l; i < r; i++)
#define hrp(i, l, r) for(int i = l; i <= r; i++)
#define rev(i, r, l) for(int i = r; i >= l; i--)
#define int ll
using namespace std;
typedef long long ll;
template<typename tn = int> tn next(void) { tn k; cin>>k; return k; }
#ifndef LOCAL
#define D(...) 0
#endif
signed main(void)
{
    #ifdef LOCAL
//	freopen("C:\\Users\\Loxil\\Desktop\\IN.txt", "r", stdin);
//	freopen("C:\\Users\\Loxil\\Desktop\\OUT.txt", "w", stdout);
    #endif
    
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int a, b, c;
    cin>>a>>b>>c;
    if (a > b+c) cout<<"YES"<<endl<<2*(b+c)+1<<endl;
    else cout<<"NO"<<endl;
    
    return 0;
}
/*

 */

詳細信息

Test #1:

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

input:

2 0 0

output:

YES
1

result:

ok 2 lines

Test #2:

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

input:

1 1 0

output:

NO

result:

ok single line: 'NO'

Test #3:

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

input:

89586 69086 24655

output:

NO

result:

ok single line: 'NO'

Test #4:

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

input:

158180 57864 93937

output:

YES
303603

result:

ok 2 lines

Test #5:

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

input:

51497 19791 57294

output:

NO

result:

ok single line: 'NO'

Test #6:

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

input:

37924 72502 88364

output:

NO

result:

ok single line: 'NO'

Test #7:

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

input:

38506 50719 9243

output:

NO

result:

ok single line: 'NO'

Test #8:

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

input:

44623 66300 29302

output:

NO

result:

ok single line: 'NO'

Test #9:

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

input:

164851 97868 94938

output:

NO

result:

ok single line: 'NO'

Test #10:

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

input:

163100 62397 99567

output:

YES
323929

result:

ok 2 lines

Test #11:

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

input:

180210 69137 35332

output:

YES
208939

result:

ok 2 lines

Test #12:

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

input:

108374 4656 91320

output:

YES
191953

result:

ok 2 lines

Test #13:

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

input:

1 0 0

output:

YES
1

result:

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