QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#177317 | #5673. Cornhole | skkyk | AC ✓ | 1ms | 3584kb | C++14 | 296b | 2023-09-12 20:34:32 | 2023-09-12 20:34:32 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main() {
int a1,b1;int a2,b2;
cin>>a1>>b1>>a2>>b2;
int sum1 = a1 * 3 + b1;
int sum2 = a2 * 3 + b2;
if(sum1 > sum2) {
cout<<1<<' ' <<sum1-sum2;
}else if(sum1 < sum2){
cout<<2<<' '<<sum2-sum1;
}else cout<<"NO SCORE";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3368kb
input:
2 1 0 4
output:
1 3
result:
ok single line: '1 3'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
1 1 0 4
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
2 2 3 0
output:
2 1
result:
ok single line: '2 1'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
0 0 0 0
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
0 0 0 1
output:
2 1
result:
ok single line: '2 1'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
0 1 0 1
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
1 0 1 0
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
1 1 1 0
output:
1 1
result:
ok single line: '1 1'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
1 1 1 1
output:
NO SCORE
result:
ok single line: 'NO SCORE'
Test #10:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
4 0 0 0
output:
1 12
result:
ok single line: '1 12'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3408kb
input:
4 0 0 4
output:
1 8
result:
ok single line: '1 8'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
3 0 0 3
output:
1 6
result:
ok single line: '1 6'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3408kb
input:
0 4 4 0
output:
2 8
result:
ok single line: '2 8'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
3 1 1 3
output:
1 4
result:
ok single line: '1 4'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
0 4 2 1
output:
2 3
result:
ok single line: '2 3'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3412kb
input:
2 2 2 0
output:
1 2
result:
ok single line: '1 2'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
2 0 2 2
output:
2 2
result:
ok single line: '2 2'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
4 0 3 1
output:
1 2
result:
ok single line: '1 2'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3524kb
input:
2 0 1 2
output:
1 1
result:
ok single line: '1 1'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3364kb
input:
1 2 2 0
output:
2 1
result:
ok single line: '2 1'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3424kb
input:
2 2 3 1
output:
2 2
result:
ok single line: '2 2'
Test #22:
score: 0
Accepted
time: 0ms
memory: 3308kb
input:
3 0 2 2
output:
1 1
result:
ok single line: '1 1'