QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83099#3413. Card Trickxiaowuc1AC ✓4ms3756kbC++172.0kb2023-03-01 05:51:102023-03-01 05:51:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3728kb

input:

1 10
2
1 10
3
1 10
4
1 10
5
1 10
6
1 10
7
1 10
8
1 10
9
1 10
10
1 10
J
1 10
Q
1 10
K
1 10
A

output:

0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703

result:

ok 13 numbers

Test #2:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

100 10
A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
100 10
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...

output:

0.999999748730
0.999997159804
0.100000000000
0.100000000000
0.100000000000
0.100000000000
0.100000000000
0.100000000000
0.107692307692
0.115384615385
0.123668639053
0.132544378698
0.142057350933
0.152253072371
0.163180560905
0.174892335703
0.174892335703
0.174892335703
0.174892335703
0.174892335703
...

result:

ok 30 numbers

Test #3:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

100 10
A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
100 10
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10...

output:

0.999999748730
0.999980108579
0.999997159804
0.999999496503

result:

ok 4 numbers

Test #4:

score: 0
Accepted
time: 2ms
memory: 3732kb

input:

44 4
Q 10 10 4 K 10 7 10 5 K 10 3 Q 4 10 10 8 10 10 J 10 9 10 9 Q 4 6 10 10 2 A 10 K 3 5 10 3 10 Q 10 3 10 10 10
97 6
10 10 10 3 Q 10 5 10 Q J 5 9 A A 10 10 K 5 10 J A K 10 3 10 7 10 J 10 10 A 10 2 10 Q 10 10 10 10 10 10 10 J 10 10 J 9 10 10 10 2 5 5 9 J 5 10 10 10 10 7 6 10 6 A 2 7 10 7 J 10 K 10 4...

output:

0.995962646916
0.999993954413
0.999848612625
0.999844914309
0.999955982984
0.998396182275
0.999749222331
0.999889704864
0.992585526272
0.998537340306
0.999951546353
0.993866350807
0.999870791104

result:

ok 13 numbers

Test #5:

score: 0
Accepted
time: 4ms
memory: 3636kb

input:

16 6
9 10 6 10 8 8 6 Q 10 6 10 10 K 7 10 10
11 3
10 10 10 10 10 10 10 10 10 6 10
20 8
K Q 5 10 5 6 10 10 10 5 J 2 3 10 8 10 9 10 10 10
4 9
K 4 6 10
13 8
10 10 10 10 9 2 10 10 4 6 J 10 10
18 6
9 2 4 J 6 Q 3 10 9 10 8 A A 5 Q 10 5 8
1 2
9
10 3
10 10 A 10 10 10 10 9 10 7
3 6
10 10 6
16 1
2 10 10 5 9 9 ...

output:

0.875923576853
0.707915756425
0.924457340283
0.423515145362
0.799492177276
0.916096648012
0.100000000000
0.684343271576
0.301716069465
0.881504253419
0.894562550449
0.731920056723
0.515203046007
0.785576395002
0.922827752459
0.842803302993
0.285529218165
0.402385519257
0.705650534503
0.174892335703
...

result:

ok 226 numbers

Test #6:

score: 0
Accepted
time: 2ms
memory: 3520kb

input:

5 2
2 3 5 3 Q
1 1
A
1 2
A
1 10
A
6 1
2 2 2 2 2 2
7 1
2 2 2 2 2 2 2
3 10
10 J K

output:

0.487137775702
0.100000000000
0.100000000000
0.174892335703
0.583071321032
0.627922961112
0.334656582760

result:

ok 7 numbers