Codeforces Round 171 (Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
279 Codeforces Round 171 (Div. 2) FINISHED False 7200 375287397 March 4, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5646 ) A Point on Spiral PROGRAMMING brute force geometry implementation 1400

B'Valera the horse lives on a plane. The Cartesian coordinate system is defined on this plane. Also an infinite spiral is painted on the plane. The spiral consists of segments: [(0, xe2 x80 x890), xe2 x80 x89(1, xe2 x80 x890)], [(1, xe2 x80 x890), xe2 x80 x89(1, xe2 x80 x891)], [(1, xe2 x80 x891), xe2 x80 x89( xe2 x80 x89- xe2 x80 x891, xe2 x80 x891)], [( xe2 x80 x89- xe2 x80 x891, xe2 x80 x891), xe2 x80 x89( xe2 x80 x89- xe2 x80 x891, xe2 x80 x89 xe2 x80 x89- xe2 x80 x891)], [( xe2 x80 x89- xe2 x80 x891, xe2 x80 x89 xe2 x80 x89- xe2 x80 x891), xe2 x80 x89(2, xe2 x80 x89 xe2 x80 x89- xe2 x80 x891)], [(2, xe2 x80 x89 xe2 x80 x89- xe2 x80 x891), xe2 x80 x89(2, xe2 x80 x892)] and so on. Thus, this infinite spiral passes through each integer point of the plane. Valera the horse lives on the plane at coordinates (0, xe2 x80 x890). He wants to walk along the spiral to point (x, xe2 x80 x89y). Valera the horse has four legs, so he finds turning very difficult. Count how many times he will have to turn if he goes along a spiral from point (0, xe2 x80 x890) to point (x, xe2 x80 x89y). The first line contains two space-separated integers x and y (|x|, xe2 x80 x89|y| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). Print a single integer, showing how many times Valera has to turn.'...

Tutorials

Codeforces Round #171 (Div. 2) Разбор Задач

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
22941590 ice_tea A Dec. 14, 2016, 4:47 a.m. OK FPC TESTS 32 30 0 1400
40813534 TShT A July 26, 2018, 6:59 p.m. OK FPC TESTS 32 62 0 1400
20462043 rainboy A Sept. 8, 2016, 4:06 p.m. OK GNU C TESTS 32 30 0 1400
20462975 rainboy A Sept. 8, 2016, 5:05 p.m. OK GNU C TESTS 32 30 0 1400
21507839 WagdySamih63 A Oct. 16, 2016, 10:11 p.m. OK GNU C TESTS 32 30 1843200 1400
25957789 JoeBlow A March 30, 2017, 4 p.m. OK GNU C TESTS 32 30 1843200 1400
25219063 CaptainFuck A March 4, 2017, 3:34 p.m. OK GNU C TESTS 32 30 1945600 1400
36771298 devanshgaurav A March 31, 2018, 10:50 a.m. OK GNU C TESTS 32 60 3276800 1400
27892043 Scut82 A June 18, 2017, 10:32 p.m. OK GNU C++ TESTS 32 30 0 1400
27875754 RedStar_13 A June 18, 2017, 3:42 a.m. OK GNU C++ TESTS 32 30 0 1400
31311277 vjudge5 A Oct. 14, 2017, 12:50 p.m. OK GNU C++ TESTS 32 30 0 1400
27825660 Oporajita A June 16, 2017, 1:07 p.m. OK GNU C++ TESTS 32 30 0 1400
27389573 Doszhan007 A May 27, 2017, 1:21 p.m. OK GNU C++ TESTS 32 30 0 1400
31311093 vjudge3 A Oct. 14, 2017, 12:45 p.m. OK GNU C++ TESTS 32 30 0 1400
29827911 cwhao A Aug. 27, 2017, 1:53 p.m. OK GNU C++ TESTS 32 30 0 1400
27312716 vjudge2 A May 24, 2017, 2:16 a.m. OK GNU C++ TESTS 32 30 0 1400
27327885 Tezzy A May 25, 2017, 1:54 a.m. OK GNU C++ TESTS 32 30 0 1400
31310896 vjudge3 A Oct. 14, 2017, 12:39 p.m. OK GNU C++ TESTS 32 30 0 1400
19190680 rishabh33agarwal A July 17, 2016, 1:20 p.m. OK GNU C11 TESTS 32 30 0 1400
29356339 incenger A Aug. 11, 2017, 3:16 p.m. OK GNU C11 TESTS 32 30 1945600 1400
36679151 NMouad21 A March 27, 2018, 8:46 p.m. OK GNU C11 TESTS 32 60 3584000 1400
63688584 kaiboy A Oct. 29, 2019, 12:38 a.m. OK GNU C11 TESTS 32 62 0 1400
46952966 MarcoReusKross A Dec. 12, 2018, 10:58 p.m. OK GNU C11 TESTS 32 62 0 1400
43621786 nishantwrp A Sept. 30, 2018, 7:40 p.m. OK GNU C11 TESTS 32 62 0 1400
43621503 nishantwrp A Sept. 30, 2018, 7:31 p.m. OK GNU C11 TESTS 32 62 0 1400
63681263 kaiboy A Oct. 28, 2019, 8:05 p.m. OK GNU C11 TESTS 32 62 0 1400
43682071 Muditbhardwaj A Oct. 2, 2018, 10:45 a.m. OK GNU C11 TESTS 32 62 307200 1400
43938182 demoralizer A Oct. 7, 2018, 10:03 a.m. OK GNU C11 TESTS 32 62 307200 1400
27363754 PetitAPetit A May 26, 2017, 8:55 p.m. OK GNU C++11 TESTS 32 30 0 1400
30338223 QuwsarOhi A Sept. 14, 2017, 8:33 p.m. OK GNU C++11 TESTS 32 30 0 1400
30756075 Red_Phoenix A Sept. 26, 2017, 3:59 p.m. OK GNU C++11 TESTS 32 30 0 1400
30921717 khaled.meme A Oct. 1, 2017, 8:17 p.m. OK GNU C++11 TESTS 32 30 0 1400
31281994 bnuvjudge A Oct. 13, 2017, 6:09 p.m. OK GNU C++11 TESTS 32 30 0 1400
31325724 vjudge3 A Oct. 15, 2017, 12:17 a.m. OK GNU C++11 TESTS 32 30 0 1400
31826719 masson1 A Oct. 28, 2017, 6:46 a.m. OK GNU C++11 TESTS 32 30 0 1400
38406826 AhmedElsherbiny A May 18, 2018, 5:07 p.m. OK GNU C++11 TESTS 32 30 0 1400
46046337 Abdelrahman_Mohammed A Nov. 22, 2018, 2:31 a.m. OK GNU C++11 TESTS 32 30 0 1400
46061947 Obada_sadaqa A Nov. 22, 2018, 1:47 p.m. OK GNU C++11 TESTS 32 30 0 1400
50134989 harshrajani460 A Feb. 18, 2019, 6:30 p.m. OK GNU C++14 TESTS 32 30 0 1400
69251442 Jackcodes A Jan. 21, 2020, 2:24 p.m. OK GNU C++14 TESTS 32 30 0 1400
60256400 Harirai A Sept. 8, 2019, 9:35 a.m. OK GNU C++14 TESTS 32 30 0 1400
57827874 brainy_fool A July 27, 2019, 4:29 a.m. OK GNU C++14 TESTS 32 30 0 1400
53970787 elabensaad A May 10, 2019, 8:52 p.m. OK GNU C++14 TESTS 32 30 0 1400
51589301 shristid A March 20, 2019, 5:51 p.m. OK GNU C++14 TESTS 32 30 0 1400
49771509 vjudge3 A Feb. 11, 2019, 1:49 p.m. OK GNU C++14 TESTS 32 30 0 1400
47687766 tortoise1 A Dec. 29, 2018, 3:45 p.m. OK GNU C++14 TESTS 32 30 0 1400
43608773 iankury A Sept. 30, 2018, 1:24 p.m. OK GNU C++14 TESTS 32 30 0 1400
42246281 i_love_abacabadabacaba A Aug. 29, 2018, 3:29 p.m. OK GNU C++14 TESTS 32 30 0 1400
47272679 Maaddy A Dec. 19, 2018, 5:29 p.m. OK GNU C++17 TESTS 32 30 0 1400
50305276 nur_riyad A Feb. 22, 2019, 5:44 a.m. OK GNU C++17 TESTS 32 30 0 1400
53090860 vjudge5 A April 21, 2019, 11:10 a.m. OK GNU C++17 TESTS 32 30 0 1400
55080700 chongryong A June 4, 2019, 10:36 a.m. OK GNU C++17 TESTS 32 30 0 1400
55714002 MalikS A June 18, 2019, 11:45 a.m. OK GNU C++17 TESTS 32 30 0 1400
61273299 le_JenD28 A Sept. 25, 2019, 2:40 p.m. OK GNU C++17 TESTS 32 30 0 1400
63910889 SA1807 A Oct. 31, 2019, 8:14 a.m. OK GNU C++17 TESTS 32 30 0 1400
65547919 Noshin_1703086 A Nov. 22, 2019, 5:45 p.m. OK GNU C++17 TESTS 32 30 0 1400
66423030 godofwar4004acm A Dec. 6, 2019, 7:48 p.m. OK GNU C++17 TESTS 32 30 0 1400
69616562 ChandVachhani_ A Jan. 27, 2020, 1:15 p.m. OK GNU C++17 TESTS 32 30 0 1400
33801471 sighingnow A Dec. 30, 2017, 5:36 a.m. OK Haskell TESTS 32 60 44851200 1400
56393215 Avi_2506 A July 1, 2019, 1:27 p.m. OK Java 8 TESTS 32 218 0 1400
27527757 zodiacleo A June 2, 2017, 4:10 p.m. OK Java 8 TESTS 32 218 0 1400
49645164 satya26 A Feb. 9, 2019, 3:34 a.m. OK Java 8 TESTS 32 218 0 1400
47377479 Akshita_Maheshwari A Dec. 22, 2018, 6:21 p.m. OK Java 8 TESTS 32 218 0 1400
44779202 deepak4669 A Oct. 24, 2018, 3:41 p.m. OK Java 8 TESTS 32 218 0 1400
55710903 namanj401 A June 18, 2019, 10:14 a.m. OK Java 8 TESTS 32 218 0 1400
25777425 OmarRadwan A March 24, 2017, 3:40 p.m. OK Java 8 TESTS 32 218 20172800 1400
25137855 Carson A March 2, 2017, 12:06 a.m. OK Java 8 TESTS 32 218 20172800 1400
25137711 Ahmad A March 1, 2017, 11:48 p.m. OK Java 8 TESTS 32 218 20377600 1400
29285633 Ahmed.Shawky A Aug. 8, 2017, 1:04 p.m. OK Java 8 TESTS 32 218 20480000 1400
62642416 teru A Oct. 15, 2019, 6:32 p.m. OK Mono C# TESTS 32 154 3584000 1400
62643691 teru A Oct. 15, 2019, 6:53 p.m. OK Mono C# TESTS 32 156 3584000 1400
20372129 Kos-Boss A Sept. 3, 2016, 11:26 p.m. OK MS C# TESTS 32 122 2355200 1400
22908908 T-D-K A Dec. 12, 2016, 4:59 p.m. OK MS C# TESTS 32 124 102400 1400
20371972 Kos-Boss A Sept. 3, 2016, 11:05 p.m. OK MS C# TESTS 32 186 2355200 1400
20349909 Islam_Atef A Sept. 2, 2016, 11:34 p.m. OK MS C++ TESTS 32 30 0 1400
19373400 Ca-tharsis A July 23, 2016, 11:56 p.m. OK MS C++ TESTS 32 30 0 1400
19249723 luca-fahim A July 19, 2016, 2:35 p.m. OK MS C++ TESTS 32 30 0 1400
20406693 Ahmed-Adel-77 A Sept. 5, 2016, 7:55 p.m. OK MS C++ TESTS 32 30 0 1400
20348929 Islam_Atef A Sept. 2, 2016, 9:23 p.m. OK MS C++ TESTS 32 30 0 1400
31826626 vjudge2 A Oct. 28, 2017, 6:41 a.m. OK MS C++ TESTS 32 30 102400 1400
31216661 lord_potato A Oct. 11, 2017, 12:53 p.m. OK MS C++ TESTS 32 30 204800 1400
31828159 vjudge5 A Oct. 28, 2017, 7:53 a.m. OK MS C++ TESTS 32 30 204800 1400
19539021 LoDThe A July 31, 2016, 1:29 p.m. OK MS C++ TESTS 32 30 409600 1400
35921549 vjudge5 A March 4, 2018, 12:22 p.m. OK MS C++ TESTS 32 30 2048000 1400
68454745 darkus-_- A Jan. 9, 2020, 3:44 p.m. OK MS C++ 2017 TESTS 32 62 0 1400
56728359 bourosh A July 8, 2019, 9:49 p.m. OK MS C++ 2017 TESTS 32 62 0 1400
68492674 KATAYPEPE A Jan. 10, 2020, 12:17 p.m. OK MS C++ 2017 TESTS 32 62 307200 1400
58173472 vjudge2 A Aug. 2, 2019, 12:13 p.m. OK MS C++ 2017 TESTS 32 92 0 1400
44936645 TopGun__ A Oct. 27, 2018, 5:47 a.m. OK PyPy 2 TESTS 32 310 0 1400
24355017 Trunks A Feb. 1, 2017, 9:13 p.m. OK PyPy 2 TESTS 32 1622 160153600 1400
37352291 mattiasm83 A April 15, 2018, 11:51 a.m. OK PyPy 3 TESTS 32 186 21401600 1400
60307394 KA_Rma A Sept. 9, 2019, 2:25 p.m. OK PyPy 3 TESTS 32 248 0 1400
51210767 Muhammed_Bahaa A March 12, 2019, 7:47 a.m. OK PyPy 3 TESTS 32 280 0 1400
38558935 akshitagarwal11 A May 23, 2018, 10:45 a.m. OK PyPy 3 TESTS 32 280 1126400 1400
68736034 thukrake_mera_pyaar A Jan. 13, 2020, 8:14 p.m. OK PyPy 3 TESTS 32 310 0 1400
65549776 enraged A Nov. 22, 2019, 6:24 p.m. OK PyPy 3 TESTS 32 310 0 1400
64361822 AvinashKartik A Nov. 6, 2019, 11:56 a.m. OK PyPy 3 TESTS 32 372 512000 1400
56185626 kgmkr00001 A June 28, 2019, 4:31 a.m. OK PyPy 3 TESTS 32 592 15052800 1400
23585852 BlueHazard_rony A Jan. 6, 2017, 1:05 p.m. OK Python 2 TESTS 32 122 4608000 1400
33811916 reyad A Dec. 30, 2017, 2:53 p.m. OK Python 2 TESTS 32 124 4608000 1400
35847580 ______k______ A March 2, 2018, 4:45 p.m. OK Python 2 TESTS 32 154 4608000 1400
35847570 ______h______ A March 2, 2018, 4:45 p.m. OK Python 2 TESTS 32 154 4608000 1400
35847200 ______i______ A March 2, 2018, 4:40 p.m. OK Python 2 TESTS 32 154 4608000 1400
35842803 ______M______ A March 2, 2018, 3 p.m. OK Python 2 TESTS 32 154 4608000 1400
35856295 _____k_____ A March 2, 2018, 8:17 p.m. OK Python 2 TESTS 32 154 4608000 1400
35856404 _____i_____ A March 2, 2018, 8:20 p.m. OK Python 2 TESTS 32 154 4608000 1400
35856846 ______n______ A March 2, 2018, 8:28 p.m. OK Python 2 TESTS 32 154 4608000 1400
35857101 ______u______ A March 2, 2018, 8:34 p.m. OK Python 2 TESTS 32 154 4608000 1400
29098676 vode A Aug. 1, 2017, 11:56 a.m. OK Python 3 TESTS 32 122 4608000 1400
20388602 knight-erraunt A Sept. 4, 2016, 7:31 p.m. OK Python 3 TESTS 32 124 0 1400
20828307 karthickpdy A Sept. 23, 2016, 12:31 a.m. OK Python 3 TESTS 32 124 0 1400
32695558 nonis A Nov. 26, 2017, 9:13 p.m. OK Python 3 TESTS 32 124 5632000 1400
33100497 DRW A Dec. 11, 2017, 11:40 a.m. OK Python 3 TESTS 32 124 5632000 1400
27107939 thelastprime A May 14, 2017, 2:08 p.m. OK Python 3 TESTS 32 154 2662400 1400
38813950 20python3coder A May 31, 2018, 9:22 p.m. OK Python 3 TESTS 32 156 7065600 1400
39219666 akshay_07cf A June 13, 2018, 2:48 p.m. OK Python 3 TESTS 32 186 0 1400
21132781 Amores A Oct. 3, 2016, 9:29 a.m. OK Python 3 TESTS 32 186 0 1400
63196147 LintuStorm A Oct. 22, 2019, 6:40 p.m. OK Python 3 TESTS 32 218 0 1400

remove filters

Back to search problems