Codeforces Round 388 (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
749 Codeforces Round 388 (Div. 2) FINISHED False 7200 255360323 Dec. 19, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8535 ) B Parallelogram is Back PROGRAMMING brute force constructive algorithms geometry 1300

B"Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer points on the Cartesian plane, that defined the set of vertices of some non-degenerate (positive area) parallelogram. Points not necessary were given in the order of clockwise or counterclockwise traversal. Alex had very nice test for this problem, but is somehow happened that the last line of the input was lost and now he has only three out of four points of the original parallelogram. He remembers that test was so good that he asks you to restore it given only these three points. The input consists of three lines, each containing a pair of integer coordinates xi and yi ( xe2 x80 x89- xe2 x80 x891000 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi, xe2 x80 x89yi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). It's guaranteed that these three points do not lie on the same line and no two of them coincide. First print integer k -- the number of ways to add one new integer point such that the obtained set defines some parallelogram of positive area. There is no requirement for the points to be arranged in any special order (like traversal), they just define the set of vertices. Then print k lines, each containing a pair of integer -- possible coordinates of the fourth point. If you need clarification of what parallelogram is, please check Wikipedia page: https://en.wikipedia.org/wiki/Parallelogram "...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
26537248 andrey.limasov B April 21, 2017, 12:29 p.m. OK Delphi TESTS 39 15 2560000 1300
23311948 s0mething B Dec. 25, 2016, 2:38 p.m. OK Delphi TESTS 39 30 2560000 1300
23322319 MrLolthe1st B Dec. 25, 2016, 7:16 p.m. OK Delphi TESTS 39 31 2560000 1300
30230871 TUGAAAA B Sept. 9, 2017, 5:15 p.m. OK FPC TESTS 39 15 0 1300
23810185 romanfixture1404 B Jan. 14, 2017, 4:14 p.m. OK FPC TESTS 39 15 1638400 1300
26697257 nikih.10 B April 27, 2017, 6:50 a.m. OK FPC TESTS 39 15 1638400 1300
23241778 vladislav.buzun B Dec. 23, 2016, 6:53 a.m. OK FPC TESTS 39 15 1638400 1300
23201492 Tommyr7 B Dec. 21, 2016, 2:28 p.m. OK FPC TESTS 39 15 1638400 1300
23193869 Voak B Dec. 21, 2016, 8:10 a.m. OK FPC TESTS 39 15 1638400 1300
23246457 bzh B Dec. 23, 2016, 11:53 a.m. OK FPC TESTS 39 15 1638400 1300
23276035 dashka143 B Dec. 24, 2016, 4:52 p.m. OK FPC TESTS 39 15 1638400 1300
23334520 vjudge2 B Dec. 26, 2016, 7:14 a.m. OK FPC TESTS 39 15 1638400 1300
23354728 sergell B Dec. 27, 2016, 7:54 a.m. OK FPC TESTS 39 15 1638400 1300
32424304 reyad B Nov. 18, 2017, 8:12 a.m. OK GNU C TESTS 39 15 0 1300
27822798 NoSoul B June 16, 2017, 10:39 a.m. OK GNU C TESTS 39 15 0 1300
27520390 Rizro B June 2, 2017, 9:42 a.m. OK GNU C TESTS 39 15 0 1300
27476730 eku B June 1, 2017, 3:16 a.m. OK GNU C TESTS 39 15 0 1300
35600236 Sakib7614 B Feb. 23, 2018, 2:54 p.m. OK GNU C TESTS 39 15 1843200 1300
34604769 vjudge5 B Jan. 27, 2018, 12:08 p.m. OK GNU C TESTS 39 15 1843200 1300
34596444 vjudge2 B Jan. 27, 2018, 6:36 a.m. OK GNU C TESTS 39 15 1843200 1300
25632631 vjudge1 B March 19, 2017, 1:31 a.m. OK GNU C TESTS 39 15 1843200 1300
24469904 xiaojiansama B Feb. 6, 2017, 2:11 p.m. OK GNU C TESTS 39 15 1843200 1300
24419107 hsniper B Feb. 3, 2017, 7:37 p.m. OK GNU C TESTS 39 15 1843200 1300
30956865 CTPLY B Oct. 3, 2017, 3:26 a.m. OK GNU C++ TESTS 39 15 0 1300
39544348 Scut82 B June 23, 2018, 2:57 p.m. OK GNU C++ TESTS 39 15 0 1300
38475064 vjudge1 B May 21, 2018, 6:02 a.m. OK GNU C++ TESTS 39 15 0 1300
32557007 vjudge5 B Nov. 22, 2017, 4:43 p.m. OK GNU C++ TESTS 39 15 0 1300
32380523 vjudge3 B Nov. 17, 2017, 2:01 p.m. OK GNU C++ TESTS 39 15 0 1300
32215934 vjudge5 B Nov. 11, 2017, 9:52 a.m. OK GNU C++ TESTS 39 15 0 1300
32158873 vjudge4 B Nov. 9, 2017, 1:23 p.m. OK GNU C++ TESTS 39 15 0 1300
32073564 henudhw B Nov. 5, 2017, 10:37 a.m. OK GNU C++ TESTS 39 15 0 1300
32073535 vjudge3 B Nov. 5, 2017, 10:35 a.m. OK GNU C++ TESTS 39 15 0 1300
31919679 vjudge5 B Oct. 31, 2017, 11:43 a.m. OK GNU C++ TESTS 39 15 0 1300
57850507 akash19jain B July 27, 2019, 12:56 p.m. OK GNU C11 TESTS 39 15 0 1300
26903841 vjudge3 B May 6, 2017, 2:46 p.m. OK GNU C11 TESTS 39 15 0 1300
30316124 SeventeenIsOdd B Sept. 13, 2017, 8:23 p.m. OK GNU C11 TESTS 39 15 102400 1300
23202502 iPranto B Dec. 21, 2016, 3:18 p.m. OK GNU C11 TESTS 39 15 1843200 1300
23198711 nayem_097 B Dec. 21, 2016, 12:19 p.m. OK GNU C11 TESTS 39 15 1843200 1300
23922664 muditsurana B Jan. 18, 2017, 1:12 p.m. OK GNU C11 TESTS 39 15 1843200 1300
23393174 vjudge5 B Dec. 29, 2016, 8:37 a.m. OK GNU C11 TESTS 39 15 1843200 1300
23379545 vjudge2 B Dec. 28, 2016, 2:08 p.m. OK GNU C11 TESTS 39 15 1843200 1300
23379506 vjudge5 B Dec. 28, 2016, 2:06 p.m. OK GNU C11 TESTS 39 15 1843200 1300
23220123 priyansh.dalsania B Dec. 22, 2016, 8:26 a.m. OK GNU C11 TESTS 39 15 1843200 1300
48442989 vjudge3 B Jan. 16, 2019, 5:39 a.m. OK GNU C++11 TESTS 39 15 0 1300
31924640 vjudge2 B Oct. 31, 2017, 2:40 p.m. OK GNU C++11 TESTS 39 15 0 1300
39328936 vjudge4 B June 17, 2018, 8:04 a.m. OK GNU C++11 TESTS 39 15 0 1300
39695809 Shaklar B June 27, 2018, 8:35 a.m. OK GNU C++11 TESTS 39 15 0 1300
31905171 wakax365 B Oct. 30, 2017, 8:27 p.m. OK GNU C++11 TESTS 39 15 0 1300
31321397 raghavwadhwa1996 B Oct. 14, 2017, 6:52 p.m. OK GNU C++11 TESTS 39 15 0 1300
31089196 hardik_iitr lienordni pranavanurag B Oct. 6, 2017, 5:48 p.m. OK GNU C++11 TESTS 39 15 0 1300
30944078 nakamura B Oct. 2, 2017, 1:35 p.m. OK GNU C++11 TESTS 39 15 0 1300
30897517 cbe B Oct. 1, 2017, 3:38 a.m. OK GNU C++11 TESTS 39 15 0 1300
30824200 BENYAM1N B Sept. 29, 2017, 9:03 a.m. OK GNU C++11 TESTS 39 15 0 1300
64678147 Scut82 B Nov. 11, 2019, 8:54 a.m. OK GNU C++14 TESTS 39 15 0 1300
57810528 M_Mohsen B July 26, 2019, 5:05 p.m. OK GNU C++14 TESTS 39 15 0 1300
55495844 daihan B June 12, 2019, 12:31 p.m. OK GNU C++14 TESTS 39 15 0 1300
55234399 ngvan1612 B June 7, 2019, 7:35 a.m. OK GNU C++14 TESTS 39 15 0 1300
40751515 TheCerberus B July 25, 2018, 6:07 p.m. OK GNU C++14 TESTS 39 15 0 1300
39511579 Lakshya_98 B June 22, 2018, 9:29 a.m. OK GNU C++14 TESTS 39 15 0 1300
39464713 arpitgarg7 B June 21, 2018, 2:19 p.m. OK GNU C++14 TESTS 39 15 0 1300
39436687 a.secret B June 20, 2018, 1:09 p.m. OK GNU C++14 TESTS 39 15 0 1300
39239215 addi7 B June 14, 2018, 10 a.m. OK GNU C++14 TESTS 39 15 0 1300
38991123 codefresher B June 6, 2018, 10:17 a.m. OK GNU C++14 TESTS 39 15 0 1300
52988586 darkLuminance B April 18, 2019, 8:14 p.m. OK GNU C++17 TESTS 39 15 0 1300
39524119 Miha3010 B June 22, 2018, 5:46 p.m. OK GNU C++17 TESTS 39 15 0 1300
46408658 UWPLP B Nov. 30, 2018, 3:56 p.m. OK GNU C++17 TESTS 39 15 0 1300
61917225 11eleven B Oct. 5, 2019, 12:24 p.m. OK GNU C++17 TESTS 39 15 0 1300
38635928 Vladikus004 B May 26, 2018, 2:17 p.m. OK GNU C++17 TESTS 39 15 0 1300
38694922 prakharmath B May 28, 2018, 1:06 p.m. OK GNU C++17 TESTS 39 15 0 1300
42339140 kempusss B Sept. 1, 2018, 3:56 p.m. OK GNU C++17 TESTS 39 15 204800 1300
48454789 vjudge1 B Jan. 16, 2019, 12:14 p.m. OK GNU C++17 TESTS 39 15 204800 1300
59654631 bassel_alshawareb B Aug. 29, 2019, 9:47 a.m. OK GNU C++17 TESTS 39 15 204800 1300
48314569 vjudge5 B Jan. 13, 2019, 5:41 a.m. OK GNU C++17 TESTS 39 15 307200 1300
27005589 yuliang B May 11, 2017, 3:26 a.m. OK Go TESTS 39 15 18022400 1300
23803405 goC B Jan. 14, 2017, 10:15 a.m. OK Go TESTS 39 15 23142400 1300
23518144 mishagam B Jan. 3, 2017, 2:24 p.m. OK Go TESTS 39 30 23040000 1300
23831035 Malbera B Jan. 15, 2017, 4:58 a.m. OK Go TESTS 39 31 4915200 1300
24098727 kissgergely B Jan. 24, 2017, 7:22 p.m. OK Haskell TESTS 39 15 44851200 1300
24100661 kissgergely B Jan. 24, 2017, 9:36 p.m. OK Haskell TESTS 39 15 44953600 1300
23176889 fetetriste B Dec. 20, 2016, 12:49 p.m. OK Haskell TESTS 39 31 44953600 1300
53263538 SpargelTarzan B April 24, 2019, 10:30 p.m. OK Java 8 TESTS 39 109 0 1300
30217444 JayVeer B Sept. 9, 2017, 4:54 a.m. OK Java 8 TESTS 39 109 0 1300
27480997 aabdelzaher B June 1, 2017, 8:55 a.m. OK Java 8 TESTS 39 109 0 1300
27282534 Bibhuti B May 22, 2017, 11:16 a.m. OK Java 8 TESTS 39 109 0 1300
27258990 filmwalams B May 21, 2017, 5:13 a.m. OK Java 8 TESTS 39 109 0 1300
27061334 poikniok B May 12, 2017, 7:42 p.m. OK Java 8 TESTS 39 109 0 1300
25884155 _EmbEr B March 28, 2017, 9:51 p.m. OK Java 8 TESTS 39 109 20172800 1300
23774261 esbybb B Jan. 13, 2017, 2:01 a.m. OK Java 8 TESTS 39 109 20275200 1300
26306714 martin3 B April 11, 2017, 7:39 p.m. OK Java 8 TESTS 39 109 20480000 1300
26041225 ypa B April 1, 2017, 3:07 a.m. OK Java 8 TESTS 39 109 20480000 1300
23176543 dabbler B Dec. 20, 2016, 12:11 p.m. OK JavaScript TESTS 39 30 6963200 1300
30637734 AmirKarimi7 B Sept. 23, 2017, 10:09 a.m. OK JavaScript TESTS 39 31 1126400 1300
23250131 Eclipso B Dec. 23, 2016, 2:55 p.m. OK JavaScript TESTS 39 31 7065600 1300
61603082 david_varela B Oct. 1, 2019, 11:46 a.m. OK Kotlin TESTS 39 155 1228800 1300
23908531 max.rindon B Jan. 17, 2017, 6:24 p.m. OK Kotlin TESTS 39 249 22528000 1300
37013802 vjudge4 B April 6, 2018, 6:16 a.m. OK Mono C# TESTS 39 46 7884800 1300
29640606 TRR B Aug. 21, 2017, 9:57 a.m. OK Mono C# TESTS 39 62 0 1300
44420739 nemars B Oct. 16, 2018, 10:24 p.m. OK Mono C# TESTS 39 62 3584000 1300
44420775 nemars B Oct. 16, 2018, 10:26 p.m. OK Mono C# TESTS 39 62 3584000 1300
68313839 hibatibati B Jan. 6, 2020, 12:25 p.m. OK Mono C# TESTS 39 62 3584000 1300
23368262 secret6a B Dec. 27, 2016, 11 p.m. OK Mono C# TESTS 39 62 9113600 1300
23830187 krazyduck B Jan. 15, 2017, 3:13 a.m. OK Mono C# TESTS 39 77 11468800 1300
57074643 NEvOl B July 15, 2019, 4:28 a.m. OK Mono C# TESTS 39 93 3686400 1300
30261484 pingponggame B Sept. 11, 2017, 8:25 a.m. OK MS C# TESTS 39 46 204800 1300
23672304 serrg B Jan. 9, 2017, 11:55 p.m. OK MS C# TESTS 39 46 9011200 1300
23166722 bossfang7878 B Dec. 19, 2016, 11:40 p.m. OK MS C# TESTS 39 46 9113600 1300
23159139 og.kostya B Dec. 19, 2016, 6:16 p.m. OK MS C# TESTS 39 46 9113600 1300
30738459 JuanCarlosGI B Sept. 26, 2017, 2:23 a.m. OK MS C# TESTS 39 61 2457600 1300
23163309 artsin666 B Dec. 19, 2016, 7:25 p.m. OK MS C# TESTS 39 61 8908800 1300
23183402 m1_k3 B Dec. 20, 2016, 6:52 p.m. OK MS C# TESTS 39 61 9113600 1300
23166728 CraigCarr B Dec. 19, 2016, 11:40 p.m. OK MS C# TESTS 39 77 9523200 1300
23270780 DigitalArtistKz B Dec. 24, 2016, 11:51 a.m. OK MS C# TESTS 39 77 11366400 1300
24290305 Chubcheg B Jan. 31, 2017, 12:56 p.m. OK MS C# TESTS 39 77 11571200 1300
26875582 tbthiep B May 5, 2017, 7:55 a.m. OK MS C++ TESTS 39 15 0 1300
26885478 KOH B May 5, 2017, 4:52 p.m. OK MS C++ TESTS 39 15 102400 1300
27898641 Kniaz B June 19, 2017, 7:45 a.m. OK MS C++ TESTS 39 15 102400 1300
29826574 vjudge4 B Aug. 27, 2017, 12:36 p.m. OK MS C++ TESTS 39 15 102400 1300
30327585 Egoist_ B Sept. 14, 2017, 12:11 p.m. OK MS C++ TESTS 39 15 102400 1300
28550333 ze177482 B July 14, 2017, 2:09 p.m. OK MS C++ TESTS 39 15 1945600 1300
34706494 vjudge2 B Jan. 30, 2018, 11:28 a.m. OK MS C++ TESTS 39 15 2048000 1300
34534275 vjudge4 B Jan. 25, 2018, 3:16 a.m. OK MS C++ TESTS 39 15 2048000 1300
34534252 vjudge4 B Jan. 25, 2018, 3:14 a.m. OK MS C++ TESTS 39 15 2048000 1300
34621094 vjudge5 B Jan. 28, 2018, 1:55 a.m. OK MS C++ TESTS 39 15 2048000 1300
63082700 CtrlAlt B Oct. 21, 2019, 3:37 p.m. OK MS C++ 2017 TESTS 39 31 0 1300
67989444 youx B Dec. 31, 2019, 3:09 a.m. OK MS C++ 2017 TESTS 39 31 0 1300
69801880 DEV10 B Jan. 29, 2020, 11:02 p.m. OK MS C++ 2017 TESTS 39 31 307200 1300
56705694 natalia18 B July 8, 2019, 10:59 a.m. OK MS C++ 2017 TESTS 39 358 0 1300
56695804 Natali1 B July 8, 2019, 6:56 a.m. OK MS C++ 2017 TESTS 39 373 0 1300
23163888 Mahakarma B Dec. 19, 2016, 7:46 p.m. OK Perl TESTS 39 31 2150400 1300
23197145 s_p B Dec. 21, 2016, 11:04 a.m. OK Perl TESTS 39 31 2150400 1300
23183514 mayakin B Dec. 20, 2016, 6:59 p.m. OK PHP TESTS 39 31 6041600 1300
23167931 abc_1988_1106 B Dec. 20, 2016, 2:24 a.m. OK PyPy 2 TESTS 39 62 22016000 1300
33510352 Yash_ B Dec. 22, 2017, 2:18 p.m. OK PyPy 2 TESTS 39 77 21196800 1300
25212999 Unlenin B March 4, 2017, 12:57 p.m. OK PyPy 2 TESTS 39 77 22016000 1300
23217159 Butane B Dec. 22, 2016, 4:33 a.m. OK PyPy 2 TESTS 39 77 22016000 1300
23167542 thepotatoranch B Dec. 20, 2016, 1:35 a.m. OK PyPy 2 TESTS 39 77 22016000 1300
23228629 lagarwal B Dec. 22, 2016, 3:37 p.m. OK PyPy 2 TESTS 39 78 22016000 1300
23656109 Eeyore B Jan. 8, 2017, 7:51 p.m. OK PyPy 2 TESTS 39 93 22016000 1300
23217975 dsharma080 B Dec. 22, 2016, 5:46 a.m. OK PyPy 2 TESTS 39 109 22016000 1300
23168410 nealzane B Dec. 20, 2016, 3:16 a.m. OK PyPy 2 TESTS 39 109 22016000 1300
23183734 masonsbro B Dec. 20, 2016, 7:11 p.m. OK PyPy 2 TESTS 39 124 22016000 1300
23285409 Vosatorp B Dec. 25, 2016, 6:07 a.m. OK PyPy 3 TESTS 39 109 23347200 1300
47443118 xumouyi B Dec. 24, 2018, 3:49 a.m. OK PyPy 3 TESTS 39 124 0 1300
23184692 cugel B Dec. 20, 2016, 8:07 p.m. OK PyPy 3 TESTS 39 124 23142400 1300
23684199 clarinet758 B Jan. 10, 2017, 4:05 p.m. OK PyPy 3 TESTS 39 124 23347200 1300
54277373 SarveshDubey B May 17, 2019, 11:48 a.m. OK PyPy 3 TESTS 39 139 0 1300
64372498 manish.17 B Nov. 6, 2019, 2:47 p.m. OK PyPy 3 TESTS 39 140 0 1300
41314940 petiteteaparty B Aug. 7, 2018, 6:51 p.m. OK PyPy 3 TESTS 39 140 0 1300
59667730 philipkonokhov B Aug. 29, 2019, 2:48 p.m. OK PyPy 3 TESTS 39 155 0 1300
23306450 reacheight B Dec. 25, 2016, 11:41 a.m. OK PyPy 3 TESTS 39 155 23347200 1300
24356440 yigitozen B Feb. 2, 2017, 12:05 a.m. OK PyPy 3 TESTS 39 170 23142400 1300
23339760 Leti B Dec. 26, 2016, 12:17 p.m. OK Python 2 TESTS 39 46 4608000 1300
23192537 codeisinmyblood B Dec. 21, 2016, 6:47 a.m. OK Python 2 TESTS 39 46 4608000 1300
23188879 ranjeet123 B Dec. 21, 2016, midnight OK Python 2 TESTS 39 46 4608000 1300
23167734 gahou B Dec. 20, 2016, 2:04 a.m. OK Python 2 TESTS 39 46 4710400 1300
23166294 inKerra B Dec. 19, 2016, 10:47 p.m. OK Python 2 TESTS 39 46 4710400 1300
23356309 CmNng B Dec. 27, 2016, 9:40 a.m. OK Python 2 TESTS 39 61 4608000 1300
23286775 sanchit.agrawal B Dec. 25, 2016, 7:44 a.m. OK Python 2 TESTS 39 61 4608000 1300
23191457 WhatTheFua B Dec. 21, 2016, 5:15 a.m. OK Python 2 TESTS 39 61 4608000 1300
23162680 v_geta B Dec. 19, 2016, 7:07 p.m. OK Python 2 TESTS 39 61 4608000 1300
23172453 cristiano_ashim B Dec. 20, 2016, 8:12 a.m. OK Python 2 TESTS 39 61 4710400 1300
32537322 vitia32 B Nov. 21, 2017, 10:56 p.m. OK Python 3 TESTS 39 62 0 1300
32363863 hanavarrete B Nov. 16, 2017, 7:20 p.m. OK Python 3 TESTS 39 62 0 1300
30735895 EduardoHi B Sept. 25, 2017, 10:09 p.m. OK Python 3 TESTS 39 62 0 1300
30735355 davila.jose23 B Sept. 25, 2017, 9:24 p.m. OK Python 3 TESTS 39 62 0 1300
29953962 .Matias. B Aug. 31, 2017, 3:35 p.m. OK Python 3 TESTS 39 62 0 1300
27687945 PAPICHbogdoti2 B June 9, 2017, 11:29 a.m. OK Python 3 TESTS 39 62 0 1300
27238051 sushantgupta4 B May 20, 2017, 5:11 p.m. OK Python 3 TESTS 39 62 204800 1300
30735448 julio177 B Sept. 25, 2017, 9:30 p.m. OK Python 3 TESTS 39 62 307200 1300
29274336 Abdelrahman_Radwan B Aug. 7, 2017, 11:36 p.m. OK Python 3 TESTS 39 62 4608000 1300
24033456 PEDY4000 B Jan. 22, 2017, 3:46 p.m. OK Python 3 TESTS 39 62 4608000 1300
23261093 JhonTorres B Dec. 24, 2016, 12:32 a.m. OK Ruby TESTS 39 62 6451200 1300
23197030 jiangzhijie B Dec. 21, 2016, 10:58 a.m. OK Rust TESTS 39 15 1638400 1300

remove filters

Back to search problems