Task: | Gerbil's run |
Sender: | Vaicode |
Submission time: | 2024-11-16 13:27:53 +0200 |
Language: | C++ (C++17) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | WRONG ANSWER | 0.00 s | details |
#3 | WRONG ANSWER | 0.01 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | WRONG ANSWER | 0.00 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | WRONG ANSWER | 0.00 s | details |
#12 | WRONG ANSWER | 0.00 s | details |
#13 | WRONG ANSWER | 0.01 s | details |
#14 | WRONG ANSWER | 0.00 s | details |
#15 | WRONG ANSWER | 0.00 s | details |
#16 | WRONG ANSWER | 0.00 s | details |
#17 | WRONG ANSWER | 0.00 s | details |
#18 | WRONG ANSWER | 0.00 s | details |
#19 | WRONG ANSWER | 0.00 s | details |
#20 | WRONG ANSWER | 0.00 s | details |
#21 | WRONG ANSWER | 0.00 s | details |
#22 | WRONG ANSWER | 0.00 s | details |
#23 | WRONG ANSWER | 0.00 s | details |
#24 | WRONG ANSWER | 0.00 s | details |
#25 | WRONG ANSWER | 0.00 s | details |
#26 | WRONG ANSWER | 0.00 s | details |
#27 | WRONG ANSWER | 0.00 s | details |
#28 | WRONG ANSWER | 0.00 s | details |
#29 | WRONG ANSWER | 0.00 s | details |
#30 | WRONG ANSWER | 0.00 s | details |
#31 | WRONG ANSWER | 0.00 s | details |
#32 | WRONG ANSWER | 0.00 s | details |
#33 | WRONG ANSWER | 0.00 s | details |
#34 | WRONG ANSWER | 0.01 s | details |
#35 | WRONG ANSWER | 0.00 s | details |
#36 | WRONG ANSWER | 0.01 s | details |
#37 | WRONG ANSWER | 0.01 s | details |
#38 | WRONG ANSWER | 0.01 s | details |
#39 | WRONG ANSWER | 0.01 s | details |
#40 | WRONG ANSWER | 0.01 s | details |
#41 | WRONG ANSWER | 0.01 s | details |
#42 | WRONG ANSWER | 0.01 s | details |
#43 | WRONG ANSWER | 0.01 s | details |
#44 | WRONG ANSWER | 0.01 s | details |
#45 | WRONG ANSWER | 0.01 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:26:16: warning: unused variable 'a' [-Wunused-variable] 26 | double a = (i+1)*y / (2*n) - i*y / (2*n); | ^
Code
#include<iostream> #include<vector> #include <cmath> using namespace std; int main() { double r; cin >> r; double x = 2 * M_PI * r; int z = floor(x) - 1; int y = z - 1; int n = 0; for(; n<10000000; ++n){ if (y >= 2*n && y <= 2* 2*n) break; } // 2 / 3 <= x = y / n <= 2 for(int i = 0; i<2*n; i+=2){ cout << i*y << "/" << 2*n << " "; cout << (i+1)*y << "/" << 2*n<< endl; double a = (i+1)*y / (2*n) - i*y / (2*n); // if(a > 2) cout << "QAQ " << a << endl; // if(a < 1) cout << "QAAQ" << a << endl; } cout << y << "/" << 1 << " "; cout << z << "/" << 1 << endl; return 0; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
1 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/2 4/2 4/1 5/1 |
Test 2
Verdict: WRONG ANSWER
input |
---|
2 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/6 10/6 20/6 30/6 40/6 50/6 10/1 11/1 |
Test 3
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/8 16/8 32/8 48/8 64/8 80/8 96/8 112/8 16/1 17/1 |
Test 4
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/12 23/12 46/12 69/12 92/12 115/12 138/12 161/12 184/12 207/12 ... |
Test 5
Verdict: WRONG ANSWER
input |
---|
5 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/16 29/16 58/16 87/16 116/16 145/16 174/16 203/16 232/16 261/16 ... |
Test 6
Verdict: WRONG ANSWER
input |
---|
6 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/18 35/18 70/18 105/18 140/18 175/18 210/18 245/18 280/18 315/18 ... |
Test 7
Verdict: WRONG ANSWER
input |
---|
7 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/22 41/22 82/22 123/22 164/22 205/22 246/22 287/22 328/22 369/22 ... |
Test 8
Verdict: WRONG ANSWER
input |
---|
8 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/24 48/24 96/24 144/24 192/24 240/24 288/24 336/24 384/24 432/24 ... |
Test 9
Verdict: WRONG ANSWER
input |
---|
9 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/28 54/28 108/28 162/28 216/28 270/28 324/28 378/28 432/28 486/28 ... |
Test 10
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/30 60/30 120/30 180/30 240/30 300/30 360/30 420/30 480/30 540/30 ... |
Test 11
Verdict: WRONG ANSWER
input |
---|
11 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/34 67/34 134/34 201/34 268/34 335/34 402/34 469/34 536/34 603/34 ... |
Test 12
Verdict: WRONG ANSWER
input |
---|
12 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/38 73/38 146/38 219/38 292/38 365/38 438/38 511/38 584/38 657/38 ... |
Test 13
Verdict: WRONG ANSWER
input |
---|
13 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/40 79/40 158/40 237/40 316/40 395/40 474/40 553/40 632/40 711/40 ... |
Test 14
Verdict: WRONG ANSWER
input |
---|
14 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/44 85/44 170/44 255/44 340/44 425/44 510/44 595/44 680/44 765/44 ... |
Test 15
Verdict: WRONG ANSWER
input |
---|
15 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/46 92/46 184/46 276/46 368/46 460/46 552/46 644/46 736/46 828/46 ... |
Test 16
Verdict: WRONG ANSWER
input |
---|
16 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/50 98/50 196/50 294/50 392/50 490/50 588/50 686/50 784/50 882/50 ... |
Test 17
Verdict: WRONG ANSWER
input |
---|
17 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/52 104/52 208/52 312/52 416/52 520/52 624/52 728/52 832/52 936/52 ... |
Test 18
Verdict: WRONG ANSWER
input |
---|
18 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/56 111/56 222/56 333/56 444/56 555/56 666/56 777/56 888/56 999/56 ... |
Test 19
Verdict: WRONG ANSWER
input |
---|
19 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/60 117/60 234/60 351/60 468/60 585/60 702/60 819/60 936/60 1053/60 ... |
Test 20
Verdict: WRONG ANSWER
input |
---|
20 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/62 123/62 246/62 369/62 492/62 615/62 738/62 861/62 984/62 1107/62 ... |
Test 21
Verdict: WRONG ANSWER
input |
---|
50 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/156 312/156 624/156 936/156 1248/156 1560/156 1872/156 2184/156 2496/156 2808/156 ... |
Test 22
Verdict: WRONG ANSWER
input |
---|
98 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/308 613/308 1226/308 1839/308 2452/308 3065/308 3678/308 4291/308 4904/308 5517/308 ... |
Test 23
Verdict: WRONG ANSWER
input |
---|
99 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/310 620/310 1240/310 1860/310 2480/310 3100/310 3720/310 4340/310 4960/310 5580/310 ... |
Test 24
Verdict: WRONG ANSWER
input |
---|
100 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/314 626/314 1252/314 1878/314 2504/314 3130/314 3756/314 4382/314 5008/314 5634/314 ... |
Test 25
Verdict: WRONG ANSWER
input |
---|
101 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/316 632/316 1264/316 1896/316 2528/316 3160/316 3792/316 4424/316 5056/316 5688/316 ... |
Test 26
Verdict: WRONG ANSWER
input |
---|
102 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/320 638/320 1276/320 1914/320 2552/320 3190/320 3828/320 4466/320 5104/320 5742/320 ... |
Test 27
Verdict: WRONG ANSWER
input |
---|
158 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/496 990/496 1980/496 2970/496 3960/496 4950/496 5940/496 6930/496 7920/496 8910/496 ... |
Test 28
Verdict: WRONG ANSWER
input |
---|
159 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/500 997/500 1994/500 2991/500 3988/500 4985/500 5982/500 6979/500 7976/500 8973/500 ... |
Test 29
Verdict: WRONG ANSWER
input |
---|
160 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/502 1003/502 2006/502 3009/502 4012/502 5015/502 6018/502 7021/502 8024/502 9027/502 ... |
Test 30
Verdict: WRONG ANSWER
input |
---|
161 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/506 1009/506 2018/506 3027/506 4036/506 5045/506 6054/506 7063/506 8072/506 9081/506 ... |
Test 31
Verdict: WRONG ANSWER
input |
---|
313 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/982 1964/982 3928/982 5892/982 7856/982 9820/982 11784/982 13748/982 15712/982 17676/982 ... |
Test 32
Verdict: WRONG ANSWER
input |
---|
314 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/986 1970/986 3940/986 5910/986 7880/986 9850/986 11820/986 13790/986 15760/986 17730/986 ... |
Test 33
Verdict: WRONG ANSWER
input |
---|
315 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/990 1977/990 3954/990 5931/990 7908/990 9885/990 11862/990 13839/990 15816/990 17793/990 ... |
Test 34
Verdict: WRONG ANSWER
input |
---|
316 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/992 1983/992 3966/992 5949/992 7932/992 9915/992 11898/992 13881/992 15864/992 17847/992 ... |
Test 35
Verdict: WRONG ANSWER
input |
---|
317 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/996 1989/996 3978/996 5967/996 7956/996 9945/996 11934/996 13923/996 15912/996 17901/996 ... |
Test 36
Verdict: WRONG ANSWER
input |
---|
318 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/998 1996/998 3992/998 5988/998 7984/998 9980/998 11976/998 13972/998 15968/998 17964/998 ... |
Test 37
Verdict: WRONG ANSWER
input |
---|
319 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1002 2002/1002 4004/1002 6006/1002 8008/1002 10010/1002 12012/1002 14014/1002 16016/1002 18018/1002 ... |
Test 38
Verdict: WRONG ANSWER
input |
---|
320 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1004 2008/1004 4016/1004 6024/1004 8032/1004 10040/1004 12048/1004 14056/1004 16064/1004 18072/1004 ... |
Test 39
Verdict: WRONG ANSWER
input |
---|
500 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1570 3139/1570 6278/1570 9417/1570 12556/1570 15695/1570 18834/1570 21973/1570 25112/1570 28251/1570 ... |
Test 40
Verdict: WRONG ANSWER
input |
---|
990 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/3110 6218/3110 12436/3110 18654/3110 24872/3110 31090/3110 37308/3110 43526/3110 49744/3110 55962/3110 ... |
Test 41
Verdict: WRONG ANSWER
input |
---|
996 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/3128 6256/3128 12512/3128 18768/3128 25024/3128 31280/3128 37536/3128 43792/3128 50048/3128 56304/3128 ... |
Test 42
Verdict: WRONG ANSWER
input |
---|
997 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/3132 6262/3132 12524/3132 18786/3132 25048/3132 31310/3132 37572/3132 43834/3132 50096/3132 56358/3132 ... |
Test 43
Verdict: WRONG ANSWER
input |
---|
998 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/3134 6268/3134 12536/3134 18804/3134 25072/3134 31340/3134 37608/3134 43876/3134 50144/3134 56412/3134 ... |
Test 44
Verdict: WRONG ANSWER
input |
---|
999 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/3138 6274/3138 12548/3138 18822/3138 25096/3138 31370/3138 37644/3138 43918/3138 50192/3138 56466/3138 ... |
Test 45
Verdict: WRONG ANSWER
input |
---|
1000 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/3142 6281/3142 12562/3142 18843/3142 25124/3142 31405/3142 37686/3142 43967/3142 50248/3142 56529/3142 ... |