QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#233092 | #2523. Commemorative Dice | BUET_Twilight# | AC ✓ | 1ms | 3552kb | C++23 | 449b | 2023-10-31 13:08:57 | 2023-10-31 13:08:57 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
int n = 6;
int ara[n];
int bara[n];
for(int i=0;i<n;i++) cin>>ara[i];
for(int i=0;i<n;i++) cin>>bara[i];
int total = 0;
int win = 0;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
total++;
if(ara[i]>bara[j]) win++;
}
}
int gcd = __gcd(win,total);
cout<<win/gcd<<"/"<<total/gcd<<endl;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3260kb
input:
1 1 16 1 1 1 1 1 1 1 1 16
output:
5/36
result:
ok single line: '5/36'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
6 3 3 3 3 3 3 3 3 3 3 6
output:
5/36
result:
ok single line: '5/36'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3348kb
input:
2 2 2 2 11 2 3 7 2 5 2 2
output:
1/6
result:
ok single line: '1/6'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
1 1 2 1 15 1 5 3 2 5 2 4
output:
1/6
result:
ok single line: '1/6'
Test #5:
score: 0
Accepted
time: 1ms
memory: 3376kb
input:
1 1 1 15 2 1 6 2 2 6 1 4
output:
7/36
result:
ok single line: '7/36'
Test #6:
score: 0
Accepted
time: 1ms
memory: 3388kb
input:
1 1 15 1 2 1 4 3 8 2 3 1
output:
7/36
result:
ok single line: '7/36'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
1 14 2 1 2 1 3 4 7 3 3 1
output:
2/9
result:
ok single line: '2/9'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3348kb
input:
3 2 2 3 2 9 2 3 4 3 6 3
output:
2/9
result:
ok single line: '2/9'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3304kb
input:
2 1 2 1 2 13 2 1 9 3 3 3
output:
1/4
result:
ok single line: '1/4'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
3 4 3 4 3 4 1 1 1 1 8 9
output:
2/3
result:
ok single line: '2/3'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3348kb
input:
2 4 1 2 11 1 4 3 2 3 4 5
output:
1/4
result:
ok single line: '1/4'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
3 4 2 2 9 1 4 3 2 4 3 5
output:
5/18
result:
ok single line: '5/18'
Test #13:
score: 0
Accepted
time: 1ms
memory: 3348kb
input:
1 1 10 1 1 7 1 3 1 10 2 4
output:
5/18
result:
ok single line: '5/18'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3344kb
input:
4 3 9 1 1 3 4 3 5 3 5 1
output:
11/36
result:
ok single line: '11/36'
Test #15:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
2 6 3 3 3 4 2 4 3 4 4 4
output:
11/36
result:
ok single line: '11/36'
Test #16:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
1 1 5 1 11 2 1 8 1 3 2 6
output:
1/3
result:
ok single line: '1/3'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3392kb
input:
1 1 3 4 1 11 8 2 5 4 1 1
output:
1/3
result:
ok single line: '1/3'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3260kb
input:
1 2 11 3 1 3 1 2 4 2 5 7
output:
13/36
result:
ok single line: '13/36'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3376kb
input:
4 1 4 1 9 2 4 6 6 2 1 2
output:
13/36
result:
ok single line: '13/36'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3388kb
input:
1 1 1 7 4 7 3 8 2 1 2 5
output:
7/18
result:
ok single line: '7/18'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3260kb
input:
1 2 3 4 5 6 3 4 3 4 3 4
output:
5/12
result:
ok single line: '5/12'
Test #22:
score: 0
Accepted
time: 1ms
memory: 3328kb
input:
1 5 1 1 7 6 1 8 1 4 5 2
output:
7/18
result:
ok single line: '7/18'
Test #23:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
3 5 2 1 3 7 7 4 2 1 3 4
output:
5/12
result:
ok single line: '5/12'
Test #24:
score: 0
Accepted
time: 1ms
memory: 3344kb
input:
4 1 2 7 6 1 6 3 1 3 4 4
output:
5/12
result:
ok single line: '5/12'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
5 3 1 1 5 6 2 5 5 3 2 4
output:
4/9
result:
ok single line: '4/9'
Test #26:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
4 4 5 1 5 2 7 3 2 2 2 5
output:
4/9
result:
ok single line: '4/9'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3312kb
input:
2 5 7 3 1 3 4 2 1 2 8 4
output:
17/36
result:
ok single line: '17/36'
Test #28:
score: 0
Accepted
time: 0ms
memory: 3348kb
input:
3 4 1 7 3 3 2 4 1 4 9 1
output:
17/36
result:
ok single line: '17/36'
Test #29:
score: 0
Accepted
time: 1ms
memory: 3348kb
input:
3 4 3 3 2 6 2 5 2 5 5 2
output:
1/2
result:
ok single line: '1/2'
Test #30:
score: 0
Accepted
time: 0ms
memory: 3348kb
input:
1 1 5 6 6 2 2 1 1 3 1 13
output:
1/2
result:
ok single line: '1/2'
Test #31:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
3 2 3 5 4 4 3 3 9 1 4 1
output:
19/36
result:
ok single line: '19/36'
Test #32:
score: 0
Accepted
time: 0ms
memory: 3344kb
input:
1 2 3 4 5 6 8 7 2 2 1 1
output:
1/2
result:
ok single line: '1/2'
Test #33:
score: 0
Accepted
time: 1ms
memory: 3544kb
input:
6 3 2 5 1 4 3 3 1 10 2 2
output:
19/36
result:
ok single line: '19/36'
Test #34:
score: 0
Accepted
time: 1ms
memory: 3344kb
input:
2 1 3 8 5 2 1 2 1 3 1 13
output:
5/9
result:
ok single line: '5/9'
Test #35:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
4 2 2 7 3 3 1 4 1 1 9 5
output:
5/9
result:
ok single line: '5/9'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
4 2 2 1 7 5 1 3 3 1 12 1
output:
7/12
result:
ok single line: '7/12'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
1 4 4 4 6 2 1 1 13 1 4 1
output:
7/12
result:
ok single line: '7/12'
Test #38:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
2 2 3 5 8 1 1 1 1 4 13 1
output:
11/18
result:
ok single line: '11/18'
Test #39:
score: 0
Accepted
time: 0ms
memory: 3260kb
input:
5 7 3 3 1 2 1 13 1 2 2 2
output:
11/18
result:
ok single line: '11/18'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3360kb
input:
4 1 4 2 3 7 1 2 14 1 1 2
output:
23/36
result:
ok single line: '23/36'
Test #41:
score: 0
Accepted
time: 1ms
memory: 3344kb
input:
1 3 3 4 5 5 1 2 2 3 2 11
output:
23/36
result:
ok single line: '23/36'
Test #42:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
3 3 6 3 4 2 3 2 1 12 2 1
output:
2/3
result:
ok single line: '2/3'
Test #43:
score: 0
Accepted
time: 0ms
memory: 3256kb
input:
3 4 3 3 6 2 1 2 1 2 3 12
output:
2/3
result:
ok single line: '2/3'
Test #44:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
1 3 6 5 3 3 2 13 2 1 1 2
output:
25/36
result:
ok single line: '25/36'
Test #45:
score: 0
Accepted
time: 1ms
memory: 3344kb
input:
5 3 3 1 5 4 1 14 2 1 2 1
output:
25/36
result:
ok single line: '25/36'
Test #46:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
2 4 4 3 4 4 1 2 2 1 12 3
output:
13/18
result:
ok single line: '13/18'
Test #47:
score: 0
Accepted
time: 0ms
memory: 3332kb
input:
4 5 4 2 4 2 13 3 2 1 1 1
output:
13/18
result:
ok single line: '13/18'
Test #48:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
6 5 2 2 2 4 1 1 3 14 1 1
output:
3/4
result:
ok single line: '3/4'
Test #49:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
4 2 3 6 3 3 1 2 2 13 1 2
output:
3/4
result:
ok single line: '3/4'
Test #50:
score: 0
Accepted
time: 1ms
memory: 3344kb
input:
3 4 4 4 2 4 1 1 2 14 2 1
output:
7/9
result:
ok single line: '7/9'
Test #51:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
6 2 2 3 5 3 15 2 1 1 1 1
output:
7/9
result:
ok single line: '7/9'
Test #52:
score: 0
Accepted
time: 1ms
memory: 3344kb
input:
3 6 3 4 2 3 1 15 1 2 1 1
output:
29/36
result:
ok single line: '29/36'
Test #53:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
3 3 3 6 4 2 15 1 1 2 1 1
output:
29/36
result:
ok single line: '29/36'
Test #54:
score: 0
Accepted
time: 1ms
memory: 3256kb
input:
6 2 2 4 2 5 1 1 1 1 1 16
output:
5/6
result:
ok single line: '5/6'
Test #55:
score: 0
Accepted
time: 1ms
memory: 3384kb
input:
5 4 2 5 3 2 1 1 16 1 1 1
output:
5/6
result:
ok single line: '5/6'