Task: | Arvonta |
Sender: | jubidubi |
Submission time: | 2025-09-06 18:24:36 +0300 |
Language: | C++ (C++11) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 37 |
#2 | ACCEPTED | 63 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.00 s | 1, 2 | details |
#2 | ACCEPTED | 0.01 s | 2 | details |
Code
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int qqq; cin >> qqq; while (qqq--) { long double n; cin >> n; cout << fixed << setprecision(10) << 1 - pow((n - 1) / n, n) << endl; } }
Test details
Test 1
Group: 1, 2
Verdict: ACCEPTED
input |
---|
10 1 2 3 4 ... |
correct output |
---|
1.0 0.75 0.7037037037 0.68359375 0.67232 ... |
user output |
---|
1.0000000000 0.7500000000 0.7037037037 0.6835937500 0.6723200000 ... Truncated |
Test 2
Group: 2
Verdict: ACCEPTED
input |
---|
1000 1 2 3 4 ... |
correct output |
---|
1.0 0.75 0.7037037037 0.68359375 0.67232 ... |
user output |
---|
1.0000000000 0.7500000000 0.7037037037 0.6835937500 0.6723200000 ... Truncated |