MemSQL Start[c]UP 2.0 - Round 1

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
452 MemSQL Start[c]UP 2.0 - Round 1 FINISHED False 9000 330699563 July 27, 2014, 5 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2020 ) B 4-point polyline PROGRAMMING brute force constructive algorithms geometry trees 1800

B"You are given a rectangular grid of lattice points from (0, xe2 x80 x890) to (n, xe2 x80 x89m) inclusive. You have to choose exactly 4 different points to build a polyline possibly with self-intersections and self-touching. This polyline should be as long as possible. A polyline defined by points p1, xe2 x80 x89p2, xe2 x80 x89p3, xe2 x80 x89p4 consists of the line segments p1 xe2 x80 x89p2, xe2 x80 x89p2 xe2 x80 x89p3, xe2 x80 x89p3 xe2 x80 x89p4, and its length is the sum of the lengths of the individual line segments. The only line of the input contains two integers n and m (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). It is guaranteed that grid contains at least 4 different points. Print 4 lines with two integers per line separated by space -- coordinates of points p1, xe2 x80 x89p2, xe2 x80 x89p3, xe2 x80 x89p4 in order which represent the longest possible polyline. Judge program compares your answer and jury's answer with 10 xe2 x80 x89- xe2 x80 x896 precision."...

Tutorials

MemSQL Start[c]UP 2.0 Round 1 and 2 Editorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7261722 Gassa B July 27, 2014, 5:24 p.m. OK D TESTS 68 234 1024000 1800
7362544 ruban B Aug. 6, 2014, 5:12 p.m. OK Delphi TESTS 68 15 0 1800
7267706 Pashchenko B July 27, 2014, 6:39 p.m. OK Delphi TESTS 68 15 102400 1800
7263852 Misha100896 B July 27, 2014, 5:44 p.m. OK Delphi TESTS 68 15 102400 1800
7268206 VKundas B July 27, 2014, 6:48 p.m. OK FPC TESTS 68 15 0 1800
7267331 Smilodon_am B July 27, 2014, 6:32 p.m. OK FPC TESTS 68 15 0 1800
7276326 greatsaiyanman B July 28, 2014, 9:41 a.m. OK FPC TESTS 68 15 0 1800
7516138 ZYF1024 B Aug. 20, 2014, 12:55 p.m. OK FPC TESTS 68 15 0 1800
7330543 vkozlovs B Aug. 2, 2014, 5:06 p.m. OK FPC TESTS 68 15 0 1800
7292582 flashking B July 30, 2014, 12:08 p.m. OK FPC TESTS 68 15 0 1800
7278500 GiannisAntetokounmpo B July 28, 2014, 2 p.m. OK FPC TESTS 68 15 102400 1800
7265308 Oryshych B July 27, 2014, 6:02 p.m. OK FPC TESTS 68 15 102400 1800
7264252 platina B July 27, 2014, 5:49 p.m. OK FPC TESTS 68 15 102400 1800
26679360 nikih.10 B April 26, 2017, 10:15 a.m. OK FPC TESTS 68 15 1638400 1800
7271930 rodag.5 B July 27, 2014, 9:06 p.m. OK GNU C TESTS 68 15 0 1800
7273012 crccw B July 28, 2014, 1:49 a.m. OK GNU C TESTS 68 15 0 1800
7272004 Bladumup B July 27, 2014, 9:20 p.m. OK GNU C TESTS 68 15 0 1800
7267124 shravas B July 27, 2014, 6:29 p.m. OK GNU C TESTS 68 15 0 1800
7265016 tjandra B July 27, 2014, 5:58 p.m. OK GNU C TESTS 68 15 0 1800
21119845 rainboy B Oct. 2, 2016, 4:20 p.m. OK GNU C TESTS 68 30 0 1800
7268919 Yuuki_Asuna B July 27, 2014, 7:02 p.m. OK GNU C TESTS 68 31 0 1800
7265854 anmol_95 B July 27, 2014, 6:09 p.m. OK GNU C TESTS 68 31 0 1800
30614924 vjudge2 B Sept. 22, 2017, 12:57 p.m. OK GNU C++ TESTS 68 15 0 1800
30049982 vjudge5 B Sept. 4, 2017, 9:19 a.m. OK GNU C++ TESTS 68 15 0 1800
19207865 xuanyuan14 B July 18, 2016, 8:59 a.m. OK GNU C++ TESTS 68 15 0 1800
15621590 vjudge2 B Jan. 28, 2016, 1:35 a.m. OK GNU C++ TESTS 68 15 0 1800
15008003 AminAnvari B Dec. 25, 2015, 2:48 p.m. OK GNU C++ TESTS 68 15 0 1800
14627480 dcordb B Dec. 3, 2015, 1:03 a.m. OK GNU C++ TESTS 68 15 0 1800
14194076 rajeevkgp B Nov. 11, 2015, 8:26 a.m. OK GNU C++ TESTS 68 15 0 1800
13992722 130705009 B Oct. 31, 2015, 7:32 p.m. OK GNU C++ TESTS 68 15 0 1800
13910904 vjudge3 B Oct. 28, 2015, 8:33 a.m. OK GNU C++ TESTS 68 15 0 1800
13112268 ahmedAbuamra B Sept. 20, 2015, 9:42 a.m. OK GNU C++ TESTS 68 15 0 1800
7308433 omochan B Aug. 1, 2014, 2:58 p.m. OK GNU C++0x TESTS 68 15 0 1800
10093864 Bernoulli B March 1, 2015, 9:11 a.m. OK GNU C++0x TESTS 68 15 0 1800
7577076 tyh24689 B Aug. 26, 2014, 4:45 a.m. OK GNU C++0x TESTS 68 15 0 1800
7449210 Plumrain B Aug. 15, 2014, 2:56 a.m. OK GNU C++0x TESTS 68 15 0 1800
7368172 catlak_profesor_mfb B Aug. 7, 2014, 3:29 p.m. OK GNU C++0x TESTS 68 15 0 1800
7361688 atetubou B Aug. 6, 2014, 2:42 p.m. OK GNU C++0x TESTS 68 15 0 1800
7333619 hogloid B Aug. 3, 2014, 1:42 a.m. OK GNU C++0x TESTS 68 15 0 1800
7300966 ---Grigor--- B July 31, 2014, 4:01 p.m. OK GNU C++0x TESTS 68 15 0 1800
7285405 domen111 B July 29, 2014, 1:26 p.m. OK GNU C++0x TESTS 68 15 0 1800
7280860 tenshi_kanade B July 28, 2014, 9 p.m. OK GNU C++0x TESTS 68 15 0 1800
36875133 ahamshubham B April 2, 2018, 10:30 a.m. OK GNU C11 TESTS 68 30 3276800 1800
29529702 TadijaSebez B Aug. 17, 2017, 3:53 p.m. OK GNU C++11 TESTS 68 15 0 1800
21980012 dtcong99 B Nov. 2, 2016, 12:32 a.m. OK GNU C++11 TESTS 68 15 0 1800
20787942 aka.Sohieb B Sept. 21, 2016, 3:48 a.m. OK GNU C++11 TESTS 68 15 0 1800
20432150 codeJan B Sept. 7, 2016, 9:14 a.m. OK GNU C++11 TESTS 68 15 0 1800
19606923 wulihua0 B Aug. 4, 2016, 12:27 a.m. OK GNU C++11 TESTS 68 15 0 1800
19434926 luras_oil2 B July 27, 2016, 6:42 a.m. OK GNU C++11 TESTS 68 15 0 1800
19393097 ZWY B July 25, 2016, 2:59 a.m. OK GNU C++11 TESTS 68 15 0 1800
18719184 lungly1 B June 25, 2016, 12:20 p.m. OK GNU C++11 TESTS 68 15 0 1800
30336783 wineColoredDays B Sept. 14, 2017, 6:53 p.m. OK GNU C++11 TESTS 68 15 0 1800
30387622 jebouin B Sept. 16, 2017, 4:05 p.m. OK GNU C++11 TESTS 68 15 0 1800
30366974 SureYeaah B Sept. 15, 2017, 4:01 p.m. OK GNU C++14 TESTS 68 15 0 1800
30365385 Fazle B Sept. 15, 2017, 2:36 p.m. OK GNU C++14 TESTS 68 15 0 1800
30339022 JoseAcv2 B Sept. 14, 2017, 9:55 p.m. OK GNU C++14 TESTS 68 15 0 1800
30295954 Akababa B Sept. 12, 2017, 9:50 p.m. OK GNU C++14 TESTS 68 15 0 1800
21979192 kudokidld_ B Nov. 1, 2016, 10:37 p.m. OK GNU C++14 TESTS 68 15 0 1800
30369371 fofao_funk B Sept. 15, 2017, 5:53 p.m. OK GNU C++14 TESTS 68 15 0 1800
27714646 ThanhSon_ B June 11, 2017, 4:15 a.m. OK GNU C++14 TESTS 68 15 204800 1800
30355925 Heart_Blue B Sept. 15, 2017, 3:05 a.m. OK GNU C++14 TESTS 68 15 204800 1800
32307518 tanmay273 B Nov. 14, 2017, 9:18 a.m. OK GNU C++14 TESTS 68 15 307200 1800
35215898 SJ_1397 B Feb. 13, 2018, 6:48 p.m. OK GNU C++14 TESTS 68 15 1945600 1800
53817148 HIT_Attacker B May 6, 2019, 11:15 a.m. OK GNU C++17 TESTS 68 30 0 1800
63729101 MohsenZare B Oct. 29, 2019, 1:30 p.m. OK GNU C++17 TESTS 68 30 409600 1800
64349397 roll_no_1 B Nov. 6, 2019, 7:43 a.m. OK GNU C++17 TESTS 68 31 0 1800
64147543 dorijanlendvaj B Nov. 3, 2019, 10:24 a.m. OK GNU C++17 TESTS 68 31 0 1800
62457770 AmanGupta_ B Oct. 13, 2019, 7:07 a.m. OK GNU C++17 TESTS 68 31 0 1800
62376065 pranayrawat95 B Oct. 11, 2019, 5:19 p.m. OK GNU C++17 TESTS 68 31 0 1800
62582519 victory_has_defeated_you B Oct. 14, 2019, 5:40 p.m. OK GNU C++17 TESTS 68 31 0 1800
69826568 vjudge5 B Jan. 30, 2020, 9:19 a.m. OK GNU C++17 TESTS 68 31 0 1800
69823277 vjudge4 B Jan. 30, 2020, 8:31 a.m. OK GNU C++17 TESTS 68 31 0 1800
69822335 vjudge3 B Jan. 30, 2020, 8:14 a.m. OK GNU C++17 TESTS 68 31 0 1800
7359092 asdsteven2 B Aug. 6, 2014, 8:49 a.m. OK Haskell TESTS 68 31 0 1800
7485192 khoahoc1024 B Aug. 16, 2014, 3:05 p.m. OK Java 6 TESTS 68 77 0 1800
7345722 maitony B Aug. 4, 2014, 2:24 p.m. OK Java 6 TESTS 68 93 0 1800
7262874 tsotne B July 27, 2014, 5:34 p.m. OK Java 6 TESTS 68 93 0 1800
7281413 aznswimmerboi B July 29, 2014, 12:39 a.m. OK Java 6 TESTS 68 93 102400 1800
7607701 mkirsche B Aug. 27, 2014, 5:39 p.m. OK Java 6 TESTS 68 108 0 1800
9357157 TranCongDuy B Jan. 4, 2015, 3:09 a.m. OK Java 6 TESTS 68 109 0 1800
7268998 dilipkasana B July 27, 2014, 7:03 p.m. OK Java 6 TESTS 68 109 204800 1800
7263247 bohuss B July 27, 2014, 5:38 p.m. OK Java 6 TESTS 68 124 1433600 1800
7261900 danbanica B July 27, 2014, 5:26 p.m. OK Java 6 TESTS 68 202 0 1800
9329225 xiaowuc1 B Dec. 31, 2014, 2:30 a.m. OK Java 6 TESTS 68 264 0 1800
7271103 tafit3 B July 27, 2014, 7:53 p.m. OK Java 7 TESTS 68 62 0 1800
7260368 Petr B July 27, 2014, 5:13 p.m. OK Java 7 TESTS 68 62 0 1800
7271464 vozcoder B July 27, 2014, 8:14 p.m. OK Java 7 TESTS 68 77 0 1800
9571370 sweiss B Jan. 27, 2015, 11:54 a.m. OK Java 7 TESTS 68 77 0 1800
7367849 tourer B Aug. 7, 2014, 2:32 p.m. OK Java 7 TESTS 68 77 0 1800
7276994 ilya.cerber B July 28, 2014, 11:11 a.m. OK Java 7 TESTS 68 77 0 1800
7276559 Guliash B July 28, 2014, 10:10 a.m. OK Java 7 TESTS 68 77 0 1800
7274972 sousnake B July 28, 2014, 7:09 a.m. OK Java 7 TESTS 68 77 0 1800
7271698 Tifuera B July 27, 2014, 8:34 p.m. OK Java 7 TESTS 68 77 0 1800
7271540 hiro116s B July 27, 2014, 8:19 p.m. OK Java 7 TESTS 68 77 0 1800
46694049 KulikAlex B Dec. 6, 2018, 6:20 p.m. OK Java 8 TESTS 68 124 0 1800
7266692 Petruchcho B July 27, 2014, 6:22 p.m. OK Java 8 TESTS 68 124 0 1800
7269812 zyt144 B July 27, 2014, 7:19 p.m. OK Java 8 TESTS 68 139 0 1800
7267267 FireFry B July 27, 2014, 6:31 p.m. OK Java 8 TESTS 68 139 0 1800
42653791 Shaykhutdinov-T-I B Sept. 7, 2018, 8:16 p.m. OK Java 8 TESTS 68 140 0 1800
21118508 Dukkha B Oct. 2, 2016, 3:16 p.m. OK Java 8 TESTS 68 140 0 1800
7276840 Mocker B July 28, 2014, 10:48 a.m. OK Java 8 TESTS 68 140 0 1800
7275908 alexey.enkov B July 28, 2014, 8:52 a.m. OK Java 8 TESTS 68 140 0 1800
7272736 yasumitsuoomori B July 28, 2014, 12:55 a.m. OK Java 8 TESTS 68 140 0 1800
7261518 Abra B July 27, 2014, 5:22 p.m. OK Java 8 TESTS 68 140 0 1800
15841511 og.kostya B Feb. 6, 2016, 11:43 a.m. OK MS C# TESTS 68 46 204800 1800
7264728 azukun B July 27, 2014, 5:55 p.m. OK MS C# TESTS 68 46 512000 1800
9400779 Cherish B Jan. 11, 2015, 3:25 a.m. OK MS C# TESTS 68 77 2252800 1800
7264758 gualex B July 27, 2014, 5:55 p.m. OK MS C# TESTS 68 77 2252800 1800
7261604 fiver B July 27, 2014, 5:23 p.m. OK MS C# TESTS 68 77 69836800 1800
9361406 camypaper B Jan. 4, 2015, 4:41 p.m. OK MS C# TESTS 68 78 2150400 1800
7436182 Vitonka B Aug. 12, 2014, 4:32 p.m. OK MS C++ TESTS 68 15 0 1800
19321358 vjudge1 B July 22, 2016, 10:07 a.m. OK MS C++ TESTS 68 15 0 1800
19321322 vjudge2 B July 22, 2016, 10:04 a.m. OK MS C++ TESTS 68 15 0 1800
15142714 HappyNewYearMike B Dec. 31, 2015, 10:44 p.m. OK MS C++ TESTS 68 15 0 1800
12523434 vjudge2 B Aug. 14, 2015, 5:37 a.m. OK MS C++ TESTS 68 15 0 1800
11439159 best2you B June 5, 2015, 2:26 a.m. OK MS C++ TESTS 68 15 0 1800
8042805 Adhambek B Oct. 1, 2014, 5:06 a.m. OK MS C++ TESTS 68 15 0 1800
7424112 usingtc B Aug. 11, 2014, 6:22 a.m. OK MS C++ TESTS 68 15 0 1800
7357361 grated B Aug. 6, 2014, 4:23 a.m. OK MS C++ TESTS 68 15 0 1800
7332430 roma-vat B Aug. 2, 2014, 6:52 p.m. OK MS C++ TESTS 68 15 0 1800
7269750 kurakun B July 27, 2014, 7:18 p.m. OK Ocaml TESTS 68 31 0 1800
7271300 rsFalse B July 27, 2014, 8:03 p.m. OK Perl TESTS 68 30 0 1800
7268451 rsFalse B July 27, 2014, 6:53 p.m. OK Perl TESTS 68 31 0 1800
7269604 Nash171 B July 27, 2014, 7:16 p.m. OK PHP TESTS 68 31 0 1800
7272168 mobgen B July 27, 2014, 9:51 p.m. OK PHP TESTS 68 31 0 1800
7272156 mobgen B July 27, 2014, 9:49 p.m. OK PHP TESTS 68 46 0 1800
7261050 nwi B July 27, 2014, 5:18 p.m. OK Python 2 TESTS 68 46 0 1800
7272818 mzhang B July 28, 2014, 1:16 a.m. OK Python 2 TESTS 68 46 0 1800
12274716 vsHope B July 30, 2015, 11:48 a.m. OK Python 2 TESTS 68 46 0 1800
7274310 swaroop.vajrapu B July 28, 2014, 5:39 a.m. OK Python 2 TESTS 68 46 0 1800
7270832 ngochai94 B July 27, 2014, 7:47 p.m. OK Python 2 TESTS 68 46 0 1800
7266401 peter.alexeev B July 27, 2014, 6:17 p.m. OK Python 2 TESTS 68 46 0 1800
7262328 EvgeniSergeev B July 27, 2014, 5:29 p.m. OK Python 2 TESTS 68 46 0 1800
7270471 nifantyev B July 27, 2014, 7:29 p.m. OK Python 2 TESTS 68 46 307200 1800
7267114 shashank201101193 B July 27, 2014, 6:29 p.m. OK Python 2 TESTS 68 46 307200 1800
7265443 jven B July 27, 2014, 6:03 p.m. OK Python 2 TESTS 68 46 307200 1800
7271581 adityavikram B July 27, 2014, 8:23 p.m. OK Python 3 TESTS 68 62 0 1800
7301970 Nick____ B July 31, 2014, 7:10 p.m. OK Python 3 TESTS 68 62 0 1800
7269654 TsunamiNoLetGo B July 27, 2014, 7:17 p.m. OK Python 3 TESTS 68 62 0 1800
7269409 gustokashin B July 27, 2014, 7:12 p.m. OK Python 3 TESTS 68 62 0 1800
7266407 fahrbach B July 27, 2014, 6:17 p.m. OK Python 3 TESTS 68 62 0 1800
7265951 ItsLastDay B July 27, 2014, 6:10 p.m. OK Python 3 TESTS 68 62 0 1800
7264635 thefacetakt B July 27, 2014, 5:54 p.m. OK Python 3 TESTS 68 62 0 1800
35979901 vjudge2 B March 6, 2018, 2:29 a.m. OK Python 3 TESTS 68 62 6451200 1800
7287493 yugle7 B July 29, 2014, 7:01 p.m. OK Python 3 TESTS 68 77 0 1800
7269854 zzh8829 B July 27, 2014, 7:20 p.m. OK Python 3 TESTS 68 77 0 1800
7349105 Chiba B Aug. 5, 2014, 3:25 a.m. OK Ruby TESTS 68 61 102400 1800
7308233 Atef B Aug. 1, 2014, 2:32 p.m. OK Ruby TESTS 68 62 102400 1800
7269256 scanhex B July 27, 2014, 7:09 p.m. OK Ruby TESTS 68 62 102400 1800
7261062 bryanj B July 27, 2014, 5:18 p.m. OK Ruby TESTS 68 62 102400 1800
7278880 Lapenkov B July 28, 2014, 2:44 p.m. OK Ruby TESTS 68 78 204800 1800
7333452 hama-du B Aug. 3, 2014, 1:04 a.m. OK Ruby TESTS 68 1091 188313600 1800
7271608 limed B July 27, 2014, 8:26 p.m. OK Scala TESTS 68 249 0 1800
7270723 verytable B July 27, 2014, 7:44 p.m. OK Scala TESTS 68 1965 819200 1800

remove filters

Back to search problems