Task: | Gerbil's run |
Sender: | ä |
Submission time: | 2024-11-16 16:51:18 +0200 |
Language: | C++ (C++17) |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.00 s | details |
#2 | ACCEPTED | 0.00 s | details |
#3 | ACCEPTED | 0.00 s | details |
#4 | ACCEPTED | 0.00 s | details |
#5 | ACCEPTED | 0.00 s | details |
#6 | ACCEPTED | 0.00 s | details |
#7 | ACCEPTED | 0.00 s | details |
#8 | ACCEPTED | 0.00 s | details |
#9 | ACCEPTED | 0.00 s | details |
#10 | ACCEPTED | 0.00 s | details |
#11 | ACCEPTED | 0.01 s | details |
#12 | ACCEPTED | 0.00 s | details |
#13 | ACCEPTED | 0.00 s | details |
#14 | ACCEPTED | 0.00 s | details |
#15 | ACCEPTED | 0.00 s | details |
#16 | ACCEPTED | 0.00 s | details |
#17 | ACCEPTED | 0.00 s | details |
#18 | ACCEPTED | 0.00 s | details |
#19 | ACCEPTED | 0.00 s | details |
#20 | ACCEPTED | 0.00 s | details |
#21 | ACCEPTED | 0.00 s | details |
#22 | ACCEPTED | 0.00 s | details |
#23 | ACCEPTED | 0.00 s | details |
#24 | ACCEPTED | 0.00 s | details |
#25 | ACCEPTED | 0.00 s | details |
#26 | ACCEPTED | 0.00 s | details |
#27 | ACCEPTED | 0.00 s | details |
#28 | ACCEPTED | 0.00 s | details |
#29 | ACCEPTED | 0.01 s | details |
#30 | ACCEPTED | 0.00 s | details |
#31 | ACCEPTED | 0.01 s | details |
#32 | ACCEPTED | 0.01 s | details |
#33 | ACCEPTED | 0.01 s | details |
#34 | ACCEPTED | 0.01 s | details |
#35 | ACCEPTED | 0.01 s | details |
#36 | ACCEPTED | 0.01 s | details |
#37 | ACCEPTED | 0.01 s | details |
#38 | ACCEPTED | 0.01 s | details |
#39 | ACCEPTED | 0.01 s | details |
#40 | ACCEPTED | 0.01 s | details |
#41 | ACCEPTED | 0.01 s | details |
#42 | ACCEPTED | 0.01 s | details |
#43 | ACCEPTED | 0.01 s | details |
#44 | ACCEPTED | 0.01 s | details |
#45 | ACCEPTED | 0.01 s | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:15:13: warning: unused variable 'qq' [-Wunused-variable] 15 | int64_t qq = q; | ^~
Code
#include <bits/stdc++.h> // g++ -std=c++17 a.cpp -o a using namespace std; double pi = 3.14159265358979323846264338327950288419716939937; int main() { int64_t r; cin >> r; double e = 2*pi*r/floor(pi * r) - 1; int64_t q = 100000; int64_t p= floor(q*e); cout << "0/1 " << 2 << "/" << 2 << endl; int64_t pp = p+q; int64_t qq = q; for(int i = 0; i < floor(pi * r)-1; ++i){ cout << pp << "/" << q << " " << pp+q << "/" << q << endl; pp+=q+p; } return 0; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 209439/100000 309439/100000 418878/100000 518878/100000 |
Test 2
Verdict: ACCEPTED
input |
---|
2 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 209439/100000 309439/100000 418878/100000 518878/100000 628317/100000 728317/100000 837756/100000 937756/100000 ... |
Test 3
Verdict: ACCEPTED
input |
---|
3 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 209439/100000 309439/100000 418878/100000 518878/100000 628317/100000 728317/100000 837756/100000 937756/100000 ... |
Test 4
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 209439/100000 309439/100000 418878/100000 518878/100000 628317/100000 728317/100000 837756/100000 937756/100000 ... |
Test 5
Verdict: ACCEPTED
input |
---|
5 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 209439/100000 309439/100000 418878/100000 518878/100000 628317/100000 728317/100000 837756/100000 937756/100000 ... |
Test 6
Verdict: ACCEPTED
input |
---|
6 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 209439/100000 309439/100000 418878/100000 518878/100000 628317/100000 728317/100000 837756/100000 937756/100000 ... |
Test 7
Verdict: ACCEPTED
input |
---|
7 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 209439/100000 309439/100000 418878/100000 518878/100000 628317/100000 728317/100000 837756/100000 937756/100000 ... |
Test 8
Verdict: ACCEPTED
input |
---|
8 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 201061/100000 301061/100000 402122/100000 502122/100000 603183/100000 703183/100000 804244/100000 904244/100000 ... |
Test 9
Verdict: ACCEPTED
input |
---|
9 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 201959/100000 301959/100000 403918/100000 503918/100000 605877/100000 705877/100000 807836/100000 907836/100000 ... |
Test 10
Verdict: ACCEPTED
input |
---|
10 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 202683/100000 302683/100000 405366/100000 505366/100000 608049/100000 708049/100000 810732/100000 910732/100000 ... |
Test 11
Verdict: ACCEPTED
input |
---|
11 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 203279/100000 303279/100000 406558/100000 506558/100000 609837/100000 709837/100000 813116/100000 913116/100000 ... |
Test 12
Verdict: ACCEPTED
input |
---|
12 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 203778/100000 303778/100000 407556/100000 507556/100000 611334/100000 711334/100000 815112/100000 915112/100000 ... |
Test 13
Verdict: ACCEPTED
input |
---|
13 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 204203/100000 304203/100000 408406/100000 508406/100000 612609/100000 712609/100000 816812/100000 916812/100000 ... |
Test 14
Verdict: ACCEPTED
input |
---|
14 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 204568/100000 304568/100000 409136/100000 509136/100000 613704/100000 713704/100000 818272/100000 918272/100000 ... |
Test 15
Verdict: ACCEPTED
input |
---|
15 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200527/100000 300527/100000 401054/100000 501054/100000 601581/100000 701581/100000 802108/100000 902108/100000 ... |
Test 16
Verdict: ACCEPTED
input |
---|
16 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 201061/100000 301061/100000 402122/100000 502122/100000 603183/100000 703183/100000 804244/100000 904244/100000 ... |
Test 17
Verdict: ACCEPTED
input |
---|
17 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 201536/100000 301536/100000 403072/100000 503072/100000 604608/100000 704608/100000 806144/100000 906144/100000 ... |
Test 18
Verdict: ACCEPTED
input |
---|
18 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 201959/100000 301959/100000 403918/100000 503918/100000 605877/100000 705877/100000 807836/100000 907836/100000 ... |
Test 19
Verdict: ACCEPTED
input |
---|
19 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 202339/100000 302339/100000 404678/100000 504678/100000 607017/100000 707017/100000 809356/100000 909356/100000 ... |
Test 20
Verdict: ACCEPTED
input |
---|
20 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 202683/100000 302683/100000 405366/100000 505366/100000 608049/100000 708049/100000 810732/100000 910732/100000 ... |
Test 21
Verdict: ACCEPTED
input |
---|
50 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200101/100000 300101/100000 400202/100000 500202/100000 600303/100000 700303/100000 800404/100000 900404/100000 ... |
Test 22
Verdict: ACCEPTED
input |
---|
98 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200570/100000 300570/100000 401140/100000 501140/100000 601710/100000 701710/100000 802280/100000 902280/100000 ... |
Test 23
Verdict: ACCEPTED
input |
---|
99 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200011/100000 300011/100000 400022/100000 500022/100000 600033/100000 700033/100000 800044/100000 900044/100000 ... |
Test 24
Verdict: ACCEPTED
input |
---|
100 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200101/100000 300101/100000 400202/100000 500202/100000 600303/100000 700303/100000 800404/100000 900404/100000 ... |
Test 25
Verdict: ACCEPTED
input |
---|
101 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200189/100000 300189/100000 400378/100000 500378/100000 600567/100000 700567/100000 800756/100000 900756/100000 ... |
Test 26
Verdict: ACCEPTED
input |
---|
102 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200276/100000 300276/100000 400552/100000 500552/100000 600828/100000 700828/100000 801104/100000 901104/100000 ... |
Test 27
Verdict: ACCEPTED
input |
---|
158 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200149/100000 300149/100000 400298/100000 500298/100000 600447/100000 700447/100000 800596/100000 900596/100000 ... |
Test 28
Verdict: ACCEPTED
input |
---|
159 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200205/100000 300205/100000 400410/100000 500410/100000 600615/100000 700615/100000 800820/100000 900820/100000 ... |
Test 29
Verdict: ACCEPTED
input |
---|
160 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200260/100000 300260/100000 400520/100000 500520/100000 600780/100000 700780/100000 801040/100000 901040/100000 ... |
Test 30
Verdict: ACCEPTED
input |
---|
161 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200315/100000 300315/100000 400630/100000 500630/100000 600945/100000 700945/100000 801260/100000 901260/100000 ... |
Test 31
Verdict: ACCEPTED
input |
---|
313 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200064/100000 300064/100000 400128/100000 500128/100000 600192/100000 700192/100000 800256/100000 900256/100000 ... |
Test 32
Verdict: ACCEPTED
input |
---|
314 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200093/100000 300093/100000 400186/100000 500186/100000 600279/100000 700279/100000 800372/100000 900372/100000 ... |
Test 33
Verdict: ACCEPTED
input |
---|
315 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200121/100000 300121/100000 400242/100000 500242/100000 600363/100000 700363/100000 800484/100000 900484/100000 ... |
Test 34
Verdict: ACCEPTED
input |
---|
316 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200149/100000 300149/100000 400298/100000 500298/100000 600447/100000 700447/100000 800596/100000 900596/100000 ... |
Test 35
Verdict: ACCEPTED
input |
---|
317 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200177/100000 300177/100000 400354/100000 500354/100000 600531/100000 700531/100000 800708/100000 900708/100000 ... |
Test 36
Verdict: ACCEPTED
input |
---|
318 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200005/100000 300005/100000 400010/100000 500010/100000 600015/100000 700015/100000 800020/100000 900020/100000 ... |
Test 37
Verdict: ACCEPTED
input |
---|
319 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200033/100000 300033/100000 400066/100000 500066/100000 600099/100000 700099/100000 800132/100000 900132/100000 ... |
Test 38
Verdict: ACCEPTED
input |
---|
320 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200061/100000 300061/100000 400122/100000 500122/100000 600183/100000 700183/100000 800244/100000 900244/100000 ... |
Test 39
Verdict: ACCEPTED
input |
---|
500 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200101/100000 300101/100000 400202/100000 500202/100000 600303/100000 700303/100000 800404/100000 900404/100000 ... |
Test 40
Verdict: ACCEPTED
input |
---|
990 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200011/100000 300011/100000 400022/100000 500022/100000 600033/100000 700033/100000 800044/100000 900044/100000 ... |
Test 41
Verdict: ACCEPTED
input |
---|
996 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200001/100000 300001/100000 400002/100000 500002/100000 600003/100000 700003/100000 800004/100000 900004/100000 ... |
Test 42
Verdict: ACCEPTED
input |
---|
997 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200010/100000 300010/100000 400020/100000 500020/100000 600030/100000 700030/100000 800040/100000 900040/100000 ... |
Test 43
Verdict: ACCEPTED
input |
---|
998 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200019/100000 300019/100000 400038/100000 500038/100000 600057/100000 700057/100000 800076/100000 900076/100000 ... |
Test 44
Verdict: ACCEPTED
input |
---|
999 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200028/100000 300028/100000 400056/100000 500056/100000 600084/100000 700084/100000 800112/100000 900112/100000 ... |
Test 45
Verdict: ACCEPTED
input |
---|
1000 |
correct output |
---|
0/1000000 1000000/1000000 2000000/1000000 3000000/100000... |
user output |
---|
0/1 2/2 200037/100000 300037/100000 400074/100000 500074/100000 600111/100000 700111/100000 800148/100000 900148/100000 ... |