Task: | Epic set |
Sender: | Game of Nolife |
Submission time: | 2017-05-27 11:27:00 +0300 |
Language: | C++ |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.06 s | details |
#2 | ACCEPTED | 0.05 s | details |
#3 | ACCEPTED | 0.05 s | details |
#4 | ACCEPTED | 0.05 s | details |
#5 | WRONG ANSWER | 0.05 s | details |
#6 | WRONG ANSWER | 0.05 s | details |
#7 | ACCEPTED | 0.06 s | details |
#8 | ACCEPTED | 0.06 s | details |
#9 | ACCEPTED | 0.05 s | details |
#10 | ACCEPTED | 0.04 s | details |
#11 | ACCEPTED | 0.07 s | details |
#12 | ACCEPTED | 0.06 s | details |
#13 | ACCEPTED | 0.04 s | details |
#14 | ACCEPTED | 0.05 s | details |
#15 | ACCEPTED | 0.05 s | details |
#16 | ACCEPTED | 0.04 s | details |
#17 | ACCEPTED | 0.06 s | details |
#18 | ACCEPTED | 0.05 s | details |
#19 | ACCEPTED | 0.05 s | details |
#20 | ACCEPTED | 0.03 s | details |
#21 | ACCEPTED | 0.05 s | details |
#22 | ACCEPTED | 0.03 s | details |
#23 | WRONG ANSWER | 0.04 s | details |
#24 | WRONG ANSWER | 0.05 s | details |
#25 | WRONG ANSWER | 0.04 s | details |
#26 | WRONG ANSWER | 0.07 s | details |
#27 | WRONG ANSWER | 0.06 s | details |
#28 | WRONG ANSWER | 0.07 s | details |
#29 | ACCEPTED | 0.04 s | details |
#30 | ACCEPTED | 0.04 s | details |
#31 | ACCEPTED | 0.04 s | details |
#32 | ACCEPTED | 0.06 s | details |
#33 | ACCEPTED | 0.06 s | details |
#34 | ACCEPTED | 0.04 s | details |
#35 | ACCEPTED | 0.04 s | details |
#36 | ACCEPTED | 0.06 s | details |
#37 | ACCEPTED | 0.05 s | details |
#38 | ACCEPTED | 0.04 s | details |
#39 | ACCEPTED | 0.04 s | details |
#40 | ACCEPTED | 0.03 s | details |
#41 | ACCEPTED | 0.04 s | details |
#42 | ACCEPTED | 0.04 s | details |
#43 | ACCEPTED | 0.04 s | details |
#44 | ACCEPTED | 0.06 s | details |
#45 | ACCEPTED | 0.05 s | details |
Code
#include <bits/stdc++.h> #define F first #define S second #define X real() #define Y imag() using namespace std; typedef long long ll; typedef long double ld; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); ld a, b; cin >> a >> b; cout << setprecision(15) << (log(a + 1) - log(a))/log(b) << "\n"; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 2 |
correct output |
---|
1 |
user output |
---|
1 |
Test 2
Verdict: ACCEPTED
input |
---|
1 3 |
correct output |
---|
0.630929754 |
user output |
---|
0.630929753571457 |
Test 3
Verdict: ACCEPTED
input |
---|
2 3 |
correct output |
---|
0.369070246 |
user output |
---|
0.369070246428543 |
Test 4
Verdict: ACCEPTED
input |
---|
1 4 |
correct output |
---|
0.5 |
user output |
---|
0.5 |
Test 5
Verdict: WRONG ANSWER
input |
---|
2 4 |
correct output |
---|
0.5 |
user output |
---|
0.292481250360578 |
Test 6
Verdict: WRONG ANSWER
input |
---|
3 4 |
correct output |
---|
0 |
user output |
---|
0.207518749639422 |
Test 7
Verdict: ACCEPTED
input |
---|
1 5 |
correct output |
---|
0.430676558 |
user output |
---|
0.430676558073393 |
Test 8
Verdict: ACCEPTED
input |
---|
2 5 |
correct output |
---|
0.251929636 |
user output |
---|
0.251929636412592 |
Test 9
Verdict: ACCEPTED
input |
---|
3 5 |
correct output |
---|
0.178746922 |
user output |
---|
0.178746921660801 |
Test 10
Verdict: ACCEPTED
input |
---|
4 5 |
correct output |
---|
0.138646884 |
user output |
---|
0.138646883853214 |
Test 11
Verdict: ACCEPTED
input |
---|
1 6 |
correct output |
---|
0.386852807 |
user output |
---|
0.386852807234542 |
Test 12
Verdict: ACCEPTED
input |
---|
2 6 |
correct output |
---|
0.226294386 |
user output |
---|
0.226294385530917 |
Test 13
Verdict: ACCEPTED
input |
---|
3 6 |
correct output |
---|
0.160558422 |
user output |
---|
0.160558421703625 |
Test 14
Verdict: ACCEPTED
input |
---|
4 6 |
correct output |
---|
0.124538787 |
user output |
---|
0.124538787234844 |
Test 15
Verdict: ACCEPTED
input |
---|
5 6 |
correct output |
---|
0.101755598 |
user output |
---|
0.101755598296073 |
Test 16
Verdict: ACCEPTED
input |
---|
1 7 |
correct output |
---|
0.356207187 |
user output |
---|
0.356207187108022 |
Test 17
Verdict: ACCEPTED
input |
---|
2 7 |
correct output |
---|
0.208367847 |
user output |
---|
0.208367846945557 |
Test 18
Verdict: ACCEPTED
input |
---|
3 7 |
correct output |
---|
0.147839340 |
user output |
---|
0.147839340162465 |
Test 19
Verdict: ACCEPTED
input |
---|
4 7 |
correct output |
---|
0.114673101 |
user output |
---|
0.114673101130872 |
Test 20
Verdict: ACCEPTED
input |
---|
5 7 |
correct output |
---|
0.093694746 |
user output |
---|
0.0936947458146856 |
Test 21
Verdict: ACCEPTED
input |
---|
6 7 |
correct output |
---|
0.079217779 |
user output |
---|
0.0792177788383982 |
Test 22
Verdict: ACCEPTED
input |
---|
1 8 |
correct output |
---|
0.333333333 |
user output |
---|
0.333333333333333 |
Test 23
Verdict: WRONG ANSWER
input |
---|
2 8 |
correct output |
---|
0.333333333 |
user output |
---|
0.194987500240385 |
Test 24
Verdict: WRONG ANSWER
input |
---|
3 8 |
correct output |
---|
0 |
user output |
---|
0.138345833092948 |
Test 25
Verdict: WRONG ANSWER
input |
---|
4 8 |
correct output |
---|
0.333333333 |
user output |
---|
0.107309364962454 |
Test 26
Verdict: WRONG ANSWER
input |
---|
5 8 |
correct output |
---|
0 |
user output |
---|
0.0876781352779313 |
Test 27
Verdict: WRONG ANSWER
input |
---|
6 8 |
correct output |
---|
0 |
user output |
---|
0.0741308071121493 |
Test 28
Verdict: WRONG ANSWER
input |
---|
7 8 |
correct output |
---|
0 |
user output |
---|
0.0642150259807986 |
Test 29
Verdict: ACCEPTED
input |
---|
1 9 |
correct output |
---|
0.315464877 |
user output |
---|
0.315464876785729 |
Test 30
Verdict: ACCEPTED
input |
---|
2 9 |
correct output |
---|
0.184535123 |
user output |
---|
0.184535123214271 |
Test 31
Verdict: ACCEPTED
input |
---|
3 9 |
correct output |
---|
0.130929754 |
user output |
---|
0.130929753571457 |
Test 32
Verdict: ACCEPTED
input |
---|
4 9 |
correct output |
---|
0.101557007 |
user output |
---|
0.101557006787506 |
Test 33
Verdict: ACCEPTED
input |
---|
5 9 |
correct output |
---|
0.082978116 |
user output |
---|
0.0829781164267651 |
Test 34
Verdict: ACCEPTED
input |
---|
6 9 |
correct output |
---|
0.070156998 |
user output |
---|
0.0701569977949824 |
Test 35
Verdict: ACCEPTED
input |
---|
7 9 |
correct output |
---|
0.060772756 |
user output |
---|
0.060772755776475 |
Test 36
Verdict: ACCEPTED
input |
---|
8 9 |
correct output |
---|
0.053605370 |
user output |
---|
0.0536053696428138 |
Test 37
Verdict: ACCEPTED
input |
---|
1 10 |
correct output |
---|
0.301029996 |
user output |
---|
0.301029995663981 |
Test 38
Verdict: ACCEPTED
input |
---|
2 10 |
correct output |
---|
0.176091259 |
user output |
---|
0.176091259055681 |
Test 39
Verdict: ACCEPTED
input |
---|
3 10 |
correct output |
---|
0.124938737 |
user output |
---|
0.1249387366083 |
Test 40
Verdict: ACCEPTED
input |
---|
4 10 |
correct output |
---|
0.096910013 |
user output |
---|
0.0969100130080564 |
Test 41
Verdict: ACCEPTED
input |
---|
5 10 |
correct output |
---|
0.079181246 |
user output |
---|
0.0791812460476248 |
Test 42
Verdict: ACCEPTED
input |
---|
6 10 |
correct output |
---|
0.066946790 |
user output |
---|
0.0669467896306132 |
Test 43
Verdict: ACCEPTED
input |
---|
7 10 |
correct output |
---|
0.057991947 |
user output |
---|
0.0579919469776868 |
Test 44
Verdict: ACCEPTED
input |
---|
8 10 |
correct output |
---|
0.051152522 |
user output |
---|
0.0511525224473813 |
Test 45
Verdict: ACCEPTED
input |
---|
9 10 |
correct output |
---|
0.045757491 |
user output |
---|
0.0457574905606751 |