| Task: | Arvonta |
| Sender: | Salama |
| Submission time: | 2025-09-07 00:03:00 +0300 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | TIME LIMIT EXCEEDED | 0 |
| #2 | TIME LIMIT EXCEEDED | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | TIME LIMIT EXCEEDED | -- | 1, 2 | details |
| #2 | TIME LIMIT EXCEEDED | -- | 2 | details |
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))
