QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#711222 | #5673. Cornhole | dbaumg | AC ✓ | 0ms | 3716kb | C++20 | 488b | 2024-11-05 03:46:36 | 2024-11-05 03:46:37 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
ll h1, b1, h2, b2;
cin >> h1 >> b1 >> h2 >> b2;
ll k1 = 3 * h1 + b1;
ll k2 = 3 * h2 + b2;
ll m = min(k1, k2);
k1 -= m;
k2 -= m;
if (k1 == 0 && k2 == 0)
cout << "NO SCORE";
else if (k1 > 0)
cout << 1 << " " << k1;
else
cout << 2 << " " << k2;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3636kb
input:
2 1 0 4
output:
1 3
result:
ok single line: '1 3'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
1 1 0 4
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
2 2 3 0
output:
2 1
result:
ok single line: '2 1'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
0 0 0 0
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
0 0 0 1
output:
2 1
result:
ok single line: '2 1'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
0 1 0 1
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
1 0 1 0
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
1 1 1 0
output:
1 1
result:
ok single line: '1 1'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1 1 1 1
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
4 0 0 0
output:
1 12
result:
ok single line: '1 12'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
4 0 0 4
output:
1 8
result:
ok single line: '1 8'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
3 0 0 3
output:
1 6
result:
ok single line: '1 6'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
0 4 4 0
output:
2 8
result:
ok single line: '2 8'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
3 1 1 3
output:
1 4
result:
ok single line: '1 4'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
0 4 2 1
output:
2 3
result:
ok single line: '2 3'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
2 2 2 0
output:
1 2
result:
ok single line: '1 2'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2 0 2 2
output:
2 2
result:
ok single line: '2 2'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
4 0 3 1
output:
1 2
result:
ok single line: '1 2'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
2 0 1 2
output:
1 1
result:
ok single line: '1 1'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
1 2 2 0
output:
2 1
result:
ok single line: '2 1'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
2 2 3 1
output:
2 2
result:
ok single line: '2 2'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
3 0 2 2
output:
1 1
result:
ok single line: '1 1'