Codeforces Round 320 (Div. 1) [Bayan Thanks-Round]

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
578 Codeforces Round 320 (Div. 1) [Bayan Thanks-Round] FINISHED False 9000 294763463 Sept. 16, 2015, 3:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4793 ) A A Problem about Polyline PROGRAMMING geometry math 1700

B"There is a polyline going through points (0, xe2 x80 x890) xe2 x80 x89 xe2 x80 x93 xe2 x80 x89(x, xe2 x80 x89x) xe2 x80 x89 xe2 x80 x93 xe2 x80 x89(2x, xe2 x80 x890) xe2 x80 x89 xe2 x80 x93 xe2 x80 x89(3x, xe2 x80 x89x) xe2 x80 x89 xe2 x80 x93 xe2 x80 x89(4x, xe2 x80 x890) xe2 x80 x89 xe2 x80 x93 xe2 x80 x89... xe2 x80 x89- xe2 x80 x89(2kx, xe2 x80 x890) xe2 x80 x89 xe2 x80 x93 xe2 x80 x89(2kx xe2 x80 x89+ xe2 x80 x89x, xe2 x80 x89x) xe2 x80 x89 xe2 x80 x93 xe2 x80 x89.... We know that the polyline passes through the point (a, xe2 x80 x89b). Find minimum positive value x such that it is true or determine that there is no such x. Only one line containing two positive integers a and b (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Output the only line containing the answer. Your answer will be considered correct if its relative or absolute error doesn't exceed 10 xe2 x80 x89- xe2 x80 x899. If there is no such x then output xe2 x80 x89- xe2 x80 x891 as the answer. You can see following graphs for sample 1 and sample 3. "...

Tutorials

Codeforces Round #320 [Bayan Thanks-Round] Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
13080215 ruban A Sept. 18, 2015, 4:29 a.m. OK Delphi TESTS 31 15 0 1700
13075023 covalkov.maxim A Sept. 17, 2015, 6:53 p.m. OK Delphi TESTS 31 31 0 1700
13141360 vasekguryev94 A Sept. 22, 2015, 1:33 p.m. OK Delphi TESTS 31 31 102400 1700
13101075 AHTuTTuTyX A Sept. 19, 2015, 11:58 a.m. OK Delphi TESTS 31 31 102400 1700
14021592 dwp A Nov. 2, 2015, 11:27 a.m. OK FPC TESTS 31 15 0 1700
13801139 avalex A Oct. 23, 2015, 1:56 a.m. OK FPC TESTS 31 15 0 1700
13125571 cxms_sy A Sept. 21, 2015, 11:55 a.m. OK FPC TESTS 31 15 0 1700
13062366 xszxxc A Sept. 17, 2015, 7:24 a.m. OK FPC TESTS 31 15 0 1700
13054215 Valerich A Sept. 16, 2015, 7:07 p.m. OK FPC TESTS 31 15 0 1700
13050274 Kniaz A Sept. 16, 2015, 5:40 p.m. OK FPC TESTS 31 15 0 1700
13029805 Alex_2oo8 A Sept. 16, 2015, 3:29 p.m. OK FPC TESTS 31 15 102400 1700
13038277 s34vv1nd A Sept. 16, 2015, 4:14 p.m. OK FPC TESTS 31 31 0 1700
46707131 zjhqg2005 A Dec. 7, 2018, 7:53 a.m. OK FPC TESTS 31 31 0 1700
13495380 SilverDH A Oct. 8, 2015, 2:33 p.m. OK FPC TESTS 31 31 102400 1700
20941052 yudhik A Sept. 27, 2016, 8:58 a.m. OK GNU C TESTS 31 15 0 1700
14350916 pantho A Nov. 19, 2015, 8:03 p.m. OK GNU C TESTS 31 15 0 1700
13300548 MarsVsSnickers A Sept. 29, 2015, 3:29 p.m. OK GNU C TESTS 31 15 0 1700
13257822 zoe_ A Sept. 28, 2015, 5:45 a.m. OK GNU C TESTS 31 15 0 1700
13218049 FireFrank A Sept. 25, 2015, 11:56 a.m. OK GNU C TESTS 31 15 0 1700
13142006 zhzh980 A Sept. 22, 2015, 2:19 p.m. OK GNU C TESTS 31 15 0 1700
13134870 utkarsh_gaur A Sept. 22, 2015, 3:57 a.m. OK GNU C TESTS 31 15 0 1700
13128130 mfoisol2 A Sept. 21, 2015, 2:30 p.m. OK GNU C TESTS 31 15 0 1700
13115719 shpalasara A Sept. 20, 2015, 2:45 p.m. OK GNU C TESTS 31 15 0 1700
13037787 tjandra A Sept. 16, 2015, 4:11 p.m. OK GNU C TESTS 31 15 0 1700
32068268 vjudge1 A Nov. 5, 2017, 5:25 a.m. OK GNU C++ TESTS 31 15 0 1700
32277167 sanwar_hossen A Nov. 13, 2017, 6:16 a.m. OK GNU C++ TESTS 31 15 0 1700
31058317 Scut82 A Oct. 6, 2017, 7:39 a.m. OK GNU C++ TESTS 31 15 0 1700
29933584 patdemichele A Aug. 31, 2017, 2:19 a.m. OK GNU C++ TESTS 31 15 0 1700
27768476 valereblanc A June 14, 2017, 6:15 a.m. OK GNU C++ TESTS 31 15 0 1700
27485358 Scut82 A June 1, 2017, 1:17 p.m. OK GNU C++ TESTS 31 15 0 1700
27482230 Scut82 A June 1, 2017, 10:18 a.m. OK GNU C++ TESTS 31 15 0 1700
27482118 Scut82 A June 1, 2017, 10:10 a.m. OK GNU C++ TESTS 31 15 0 1700
22917824 fabianalonso333 A Dec. 13, 2016, 12:48 a.m. OK GNU C++ TESTS 31 15 0 1700
22069030 Kanosword A Nov. 6, 2016, 6:20 a.m. OK GNU C++ TESTS 31 15 0 1700
13338243 Leti A Oct. 2, 2015, 4:01 a.m. OK GNU C11 TESTS 31 15 0 1700
13397857 Leti A Oct. 4, 2015, 8:15 a.m. OK GNU C11 TESTS 31 15 0 1700
57163239 rainboy A July 16, 2019, 8:25 p.m. OK GNU C11 TESTS 31 15 0 1700
30868728 alooochaat1998 A Sept. 30, 2017, 2:09 p.m. OK GNU C++11 TESTS 31 15 0 1700
27425706 bryyy A May 29, 2017, 8:26 a.m. OK GNU C++11 TESTS 31 15 0 1700
27422615 iLoveIOI A May 29, 2017, 3:44 a.m. OK GNU C++11 TESTS 31 15 0 1700
27422596 Hikari9 A May 29, 2017, 3:41 a.m. OK GNU C++11 TESTS 31 15 0 1700
27236830 ckodser A May 20, 2017, 3:30 p.m. OK GNU C++11 TESTS 31 15 0 1700
27225691 rafa95359 A May 20, 2017, 12:15 a.m. OK GNU C++11 TESTS 31 15 0 1700
26993272 hetshah1998 A May 10, 2017, 9:43 a.m. OK GNU C++11 TESTS 31 15 0 1700
49811086 S_T_M_Y A Feb. 12, 2019, 1:05 a.m. OK GNU C++11 TESTS 31 15 0 1700
32114219 coder_04 A Nov. 7, 2017, 9:56 a.m. OK GNU C++11 TESTS 31 15 0 1700
31927030 herculan27 A Oct. 31, 2017, 4:14 p.m. OK GNU C++11 TESTS 31 15 0 1700
44432214 KeyID A Oct. 17, 2018, 8:13 a.m. OK GNU C++14 TESTS 31 15 0 1700
42675265 Amaryllis A Sept. 8, 2018, 1:16 p.m. OK GNU C++14 TESTS 31 15 0 1700
39173215 reej A June 11, 2018, 7:07 p.m. OK GNU C++14 TESTS 31 15 0 1700
38680037 ak3899 A May 27, 2018, 9:03 p.m. OK GNU C++14 TESTS 31 15 0 1700
32514892 dbtjtwz A Nov. 21, 2017, 3:26 a.m. OK GNU C++14 TESTS 31 15 0 1700
32328200 FallDream A Nov. 15, 2017, 9:51 a.m. OK GNU C++14 TESTS 31 15 0 1700
31929881 brimix__ A Oct. 31, 2017, 6:02 p.m. OK GNU C++14 TESTS 31 15 0 1700
54028105 kazuma A May 12, 2019, 2:04 p.m. OK GNU C++14 TESTS 31 15 0 1700
56467875 can3can A July 3, 2019, 9:41 a.m. OK GNU C++14 TESTS 31 15 0 1700
62411249 latte0119 A Oct. 12, 2019, 10:28 a.m. OK GNU C++14 TESTS 31 15 0 1700
58183361 kobortor A Aug. 2, 2019, 4:07 p.m. OK GNU C++17 TESTS 31 15 0 1700
47306973 Atreus A Dec. 20, 2018, 5:19 p.m. OK GNU C++17 TESTS 31 15 0 1700
39676818 psdudeman39 A June 26, 2018, 1:29 p.m. OK GNU C++17 TESTS 31 15 0 1700
69612353 vjudge3 A Jan. 27, 2020, 11:58 a.m. OK GNU C++17 TESTS 31 15 0 1700
64341429 Crazy_GOU A Nov. 6, 2019, 3:02 a.m. OK GNU C++17 TESTS 31 15 0 1700
63423026 QQ1353217816 A Oct. 26, 2019, 7:01 a.m. OK GNU C++17 TESTS 31 15 0 1700
42787834 HanaYukii A Sept. 12, 2018, 6:02 a.m. OK GNU C++17 TESTS 31 15 204800 1700
37538817 Akikaze A April 22, 2018, 6:21 p.m. OK GNU C++17 TESTS 31 15 3686400 1700
69624049 vjudge5 A Jan. 27, 2020, 3:17 p.m. OK GNU C++17 TESTS 31 30 0 1700
69827137 _skb_ A Jan. 30, 2020, 9:27 a.m. OK GNU C++17 TESTS 31 30 0 1700
13315833 lrhehe A Sept. 30, 2015, 2 p.m. OK Go TESTS 31 31 0 1700
13140248 sighingnow A Sept. 22, 2015, 12:11 p.m. OK Haskell TESTS 31 30 102400 1700
18499617 behzad.nouri A June 15, 2016, 2:28 p.m. OK Haskell TESTS 31 30 53452800 1700
13030231 davidarcila93 A Sept. 16, 2015, 3:31 p.m. OK Java 7 TESTS 31 62 0 1700
13102900 KNIGHT0X300 A Sept. 19, 2015, 2:15 p.m. OK Java 7 TESTS 31 77 0 1700
13033523 ika A Sept. 16, 2015, 3:46 p.m. OK Java 7 TESTS 31 77 0 1700
13031442 ctunoku A Sept. 16, 2015, 3:36 p.m. OK Java 7 TESTS 31 78 0 1700
13284863 dpk7jn A Sept. 28, 2015, 5:34 p.m. OK Java 7 TESTS 31 92 0 1700
13948792 DukeOfYork A Oct. 30, 2015, 8:36 a.m. OK Java 7 TESTS 31 93 0 1700
13075287 cvm A Sept. 17, 2015, 7:18 p.m. OK Java 7 TESTS 31 93 0 1700
13072735 binary_eagle A Sept. 17, 2015, 5:11 p.m. OK Java 7 TESTS 31 93 0 1700
13058671 nitegazer A Sept. 17, 2015, 2:02 a.m. OK Java 7 TESTS 31 93 0 1700
13056320 michael.gerasimenko A Sept. 16, 2015, 9:52 p.m. OK Java 7 TESTS 31 93 0 1700
27627107 unequitedscript A June 7, 2017, 7:03 a.m. OK Java 8 TESTS 31 109 0 1700
16068393 poikniok A Feb. 17, 2016, 9:29 a.m. OK Java 8 TESTS 31 109 0 1700
16068327 poikniok A Feb. 17, 2016, 9:21 a.m. OK Java 8 TESTS 31 109 0 1700
15345602 mkirsche A Jan. 14, 2016, 2:36 p.m. OK Java 8 TESTS 31 109 0 1700
13109336 diemoldau A Sept. 20, 2015, 3:12 a.m. OK Java 8 TESTS 31 109 0 1700
13107514 Nusratbek A Sept. 19, 2015, 8:37 p.m. OK Java 8 TESTS 31 109 0 1700
13086076 sweiss A Sept. 18, 2015, 12:28 p.m. OK Java 8 TESTS 31 109 0 1700
13073209 alibaba A Sept. 17, 2015, 5:38 p.m. OK Java 8 TESTS 31 109 0 1700
13072583 dhrumil140396 A Sept. 17, 2015, 5:01 p.m. OK Java 8 TESTS 31 109 0 1700
13063771 johnmclane A Sept. 17, 2015, 9:11 a.m. OK Java 8 TESTS 31 109 0 1700
13037242 camypaper A Sept. 16, 2015, 4:07 p.m. OK MS C# TESTS 31 46 102400 1700
13047221 og.kostya A Sept. 16, 2015, 5:18 p.m. OK MS C# TESTS 31 46 204800 1700
13070074 AnatolyTolstobrov A Sept. 17, 2015, 3:10 p.m. OK MS C# TESTS 31 46 307200 1700
13030164 azukun A Sept. 16, 2015, 3:30 p.m. OK MS C# TESTS 31 62 512000 1700
16713801 Scarvis A March 14, 2016, 12:44 p.m. OK MS C++ TESTS 31 15 0 1700
16671367 NevstruevDmitriy A March 12, 2016, 11:05 a.m. OK MS C++ TESTS 31 15 0 1700
16662146 BRAD_BIT A March 11, 2016, 10:16 p.m. OK MS C++ TESTS 31 15 0 1700
16661964 Red_Roses A March 11, 2016, 9:53 p.m. OK MS C++ TESTS 31 15 0 1700
15269338 OnionPringles A Jan. 9, 2016, 12:21 p.m. OK MS C++ TESTS 31 15 0 1700
14351790 xswqaz A Nov. 19, 2015, 9:23 p.m. OK MS C++ TESTS 31 15 0 1700
14336215 vjudge1 A Nov. 19, 2015, 3:30 a.m. OK MS C++ TESTS 31 15 0 1700
14336204 l11x0m7 A Nov. 19, 2015, 3:28 a.m. OK MS C++ TESTS 31 15 0 1700
13807591 jcq1234 A Oct. 23, 2015, 11:47 a.m. OK MS C++ TESTS 31 15 0 1700
13550125 QNobby A Oct. 11, 2015, 6:34 p.m. OK MS C++ TESTS 31 15 0 1700
62567896 CtrlAlt A Oct. 14, 2019, 1:41 p.m. OK MS C++ 2017 TESTS 31 31 0 1700
16622276 Butane A March 9, 2016, 6:25 p.m. OK PyPy 2 TESTS 31 62 0 1700
19061788 boombastic A July 13, 2016, 4:03 a.m. OK PyPy 2 TESTS 31 77 0 1700
23731346 masonsbro A Jan. 12, 2017, 5:50 a.m. OK PyPy 2 TESTS 31 77 22016000 1700
23731238 masonsbro A Jan. 12, 2017, 5:41 a.m. OK PyPy 2 TESTS 31 77 22016000 1700
66274700 lucasan A Dec. 4, 2019, 2:08 p.m. OK PyPy 2 TESTS 31 170 0 1700
66274050 vjudge5 A Dec. 4, 2019, 1:36 p.m. OK PyPy 2 TESTS 31 233 0 1700
68611499 smoke_bellew A Jan. 11, 2020, 3:52 p.m. OK PyPy 3 TESTS 31 140 0 1700
17252417 ximo A April 9, 2016, 12:42 p.m. OK PyPy 3 TESTS 31 295 39936000 1700
14354357 trunghieu11 A Nov. 20, 2015, 5:51 a.m. OK Python 2 TESTS 31 46 0 1700
13119737 nealzane A Sept. 20, 2015, 9:29 p.m. OK Python 2 TESTS 31 46 0 1700
13102379 grammer_jew A Sept. 19, 2015, 1:34 p.m. OK Python 2 TESTS 31 46 0 1700
13036902 Sergiu A Sept. 16, 2015, 4:05 p.m. OK Python 2 TESTS 31 46 0 1700
13035442 nwi A Sept. 16, 2015, 3:56 p.m. OK Python 2 TESTS 31 46 0 1700
13085432 mowayao A Sept. 18, 2015, 11:48 a.m. OK Python 2 TESTS 31 61 0 1700
13033116 jasperH A Sept. 16, 2015, 3:44 p.m. OK Python 2 TESTS 31 61 0 1700
14932413 xiaowuc1 A Dec. 23, 2015, 2:40 a.m. OK Python 2 TESTS 31 62 0 1700
13122346 olif A Sept. 21, 2015, 6:23 a.m. OK Python 2 TESTS 31 62 0 1700
13085489 mowayao A Sept. 18, 2015, 11:52 a.m. OK Python 2 TESTS 31 62 0 1700
13276118 Luminous A Sept. 28, 2015, 11:22 a.m. OK Python 3 TESTS 31 46 0 1700
13036721 grig A Sept. 16, 2015, 4:04 p.m. OK Python 3 TESTS 31 46 0 1700
13032435 rpy3cpp A Sept. 16, 2015, 3:41 p.m. OK Python 3 TESTS 31 46 0 1700
13356752 yudgin070707 A Oct. 3, 2015, 9:54 a.m. OK Python 3 TESTS 31 61 0 1700
13032099 Tailz A Sept. 16, 2015, 3:39 p.m. OK Python 3 TESTS 31 61 0 1700
15914604 not_bot_but_POT A Feb. 9, 2016, 1:48 p.m. OK Python 3 TESTS 31 62 0 1700
13258648 ztarasenko A Sept. 28, 2015, 7:44 a.m. OK Python 3 TESTS 31 62 0 1700
13256191 merolish A Sept. 28, 2015, 12:13 a.m. OK Python 3 TESTS 31 62 0 1700
13251268 vanvector A Sept. 27, 2015, 3:17 p.m. OK Python 3 TESTS 31 62 0 1700
13058370 newbeginBKB A Sept. 17, 2015, 1:37 a.m. OK Python 3 TESTS 31 62 0 1700
28457444 vjudge3 A July 12, 2017, 1:41 a.m. OK Ruby TESTS 31 78 6451200 1700

remove filters

Back to search problems