Submission details
Task:Arvonta
Sender:Salama
Submission time:2025-09-07 00:03:00 +0300
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
Test results
testverdicttimegroup
#1--1, 2details
#2--2details

Code

from itertools import product
t = int(input())
for _ in range(t):
    n = int(input())
    l = list(product(range(n),repeat=n))
    x = 0
    for i in l:
        x += 0 in i
    print(x/len(l))

Test details

Test 1

Group: 1, 2

Verdict:

input
10
1
2
3
4
...

correct output
1.0
0.75
0.7037037037
0.68359375
0.67232
...

user output
(empty)

Test 2

Group: 2

Verdict:

input
1000
1
2
3
4
...

correct output
1.0
0.75
0.7037037037
0.68359375
0.67232
...

user output
(empty)