QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#209005 | #5673. Cornhole | legendarysas | AC ✓ | 15ms | 9144kb | Python3 | 357b | 2023-10-10 01:20:03 | 2023-10-10 01:20:04 |
Judging History
answer
import sys
input = sys.stdin.readline
if __name__ == "__main__":
A = input().split()
B = input().split()
scoreA = 3 * int(A[0]) + int(A[1])
scoreB = 3 * int(B[0]) + int(B[1])
if scoreA > scoreB:
print("1", scoreA - scoreB)
elif scoreB > scoreA:
print("2", scoreB - scoreA)
else:
print("NO SCORE")
詳細信息
Test #1:
score: 100
Accepted
time: 15ms
memory: 8956kb
input:
2 1 0 4
output:
1 3
result:
ok single line: '1 3'
Test #2:
score: 0
Accepted
time: 10ms
memory: 9020kb
input:
1 1 0 4
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #3:
score: 0
Accepted
time: 10ms
memory: 8956kb
input:
2 2 3 0
output:
2 1
result:
ok single line: '2 1'
Test #4:
score: 0
Accepted
time: 12ms
memory: 8992kb
input:
0 0 0 0
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #5:
score: 0
Accepted
time: 14ms
memory: 8992kb
input:
0 0 0 1
output:
2 1
result:
ok single line: '2 1'
Test #6:
score: 0
Accepted
time: 14ms
memory: 8956kb
input:
0 1 0 1
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #7:
score: 0
Accepted
time: 13ms
memory: 9024kb
input:
1 0 1 0
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #8:
score: 0
Accepted
time: 9ms
memory: 8984kb
input:
1 1 1 0
output:
1 1
result:
ok single line: '1 1'
Test #9:
score: 0
Accepted
time: 14ms
memory: 9028kb
input:
1 1 1 1
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #10:
score: 0
Accepted
time: 14ms
memory: 9024kb
input:
4 0 0 0
output:
1 12
result:
ok single line: '1 12'
Test #11:
score: 0
Accepted
time: 8ms
memory: 9024kb
input:
4 0 0 4
output:
1 8
result:
ok single line: '1 8'
Test #12:
score: 0
Accepted
time: 9ms
memory: 8932kb
input:
3 0 0 3
output:
1 6
result:
ok single line: '1 6'
Test #13:
score: 0
Accepted
time: 8ms
memory: 8960kb
input:
0 4 4 0
output:
2 8
result:
ok single line: '2 8'
Test #14:
score: 0
Accepted
time: 9ms
memory: 9092kb
input:
3 1 1 3
output:
1 4
result:
ok single line: '1 4'
Test #15:
score: 0
Accepted
time: 6ms
memory: 8952kb
input:
0 4 2 1
output:
2 3
result:
ok single line: '2 3'
Test #16:
score: 0
Accepted
time: 9ms
memory: 9020kb
input:
2 2 2 0
output:
1 2
result:
ok single line: '1 2'
Test #17:
score: 0
Accepted
time: 14ms
memory: 9088kb
input:
2 0 2 2
output:
2 2
result:
ok single line: '2 2'
Test #18:
score: 0
Accepted
time: 8ms
memory: 9012kb
input:
4 0 3 1
output:
1 2
result:
ok single line: '1 2'
Test #19:
score: 0
Accepted
time: 10ms
memory: 9080kb
input:
2 0 1 2
output:
1 1
result:
ok single line: '1 1'
Test #20:
score: 0
Accepted
time: 9ms
memory: 9144kb
input:
1 2 2 0
output:
2 1
result:
ok single line: '2 1'
Test #21:
score: 0
Accepted
time: 13ms
memory: 9024kb
input:
2 2 3 1
output:
2 2
result:
ok single line: '2 2'
Test #22:
score: 0
Accepted
time: 9ms
memory: 8988kb
input:
3 0 2 2
output:
1 1
result:
ok single line: '1 1'