QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#231591 | #7062. Prince and Princess | ucup-team1001# | AC ✓ | 15ms | 9200kb | Python3 | 278b | 2023-10-29 14:31:42 | 2023-10-29 14:31:42 |
Judging History
answer
a, b, c = map(int, input().split())
if b == 0 and c == 0:
if a == 1:
print("YES")
print(0)
else:
print("YES")
print(1)
else:
if b + c < a:
print("YES")
print(2* (b + c)+1)
else:
print("NO")
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 7ms
memory: 9200kb
input:
2 0 0
output:
YES 1
result:
ok 2 lines
Test #2:
score: 0
Accepted
time: 14ms
memory: 9092kb
input:
1 1 0
output:
NO
result:
ok single line: 'NO'
Test #3:
score: 0
Accepted
time: 15ms
memory: 9084kb
input:
89586 69086 24655
output:
NO
result:
ok single line: 'NO'
Test #4:
score: 0
Accepted
time: 13ms
memory: 9028kb
input:
158180 57864 93937
output:
YES 303603
result:
ok 2 lines
Test #5:
score: 0
Accepted
time: 15ms
memory: 9064kb
input:
51497 19791 57294
output:
NO
result:
ok single line: 'NO'
Test #6:
score: 0
Accepted
time: 14ms
memory: 9160kb
input:
37924 72502 88364
output:
NO
result:
ok single line: 'NO'
Test #7:
score: 0
Accepted
time: 8ms
memory: 9068kb
input:
38506 50719 9243
output:
NO
result:
ok single line: 'NO'
Test #8:
score: 0
Accepted
time: 14ms
memory: 9168kb
input:
44623 66300 29302
output:
NO
result:
ok single line: 'NO'
Test #9:
score: 0
Accepted
time: 10ms
memory: 9108kb
input:
164851 97868 94938
output:
NO
result:
ok single line: 'NO'
Test #10:
score: 0
Accepted
time: 14ms
memory: 9028kb
input:
163100 62397 99567
output:
YES 323929
result:
ok 2 lines
Test #11:
score: 0
Accepted
time: 9ms
memory: 9060kb
input:
180210 69137 35332
output:
YES 208939
result:
ok 2 lines
Test #12:
score: 0
Accepted
time: 10ms
memory: 9064kb
input:
108374 4656 91320
output:
YES 191953
result:
ok 2 lines
Test #13:
score: 0
Accepted
time: 12ms
memory: 9156kb
input:
1 0 0
output:
YES 0
result:
ok 2 lines
Test #14:
score: 0
Accepted
time: 14ms
memory: 9096kb
input:
10 0 0
output:
YES 1
result:
ok 2 lines