Codeforces Beta Round 28 (Codeforces format)

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
28 Codeforces Beta Round 28 (Codeforces format) FINISHED False 7200 447087599 Sept. 17, 2010, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 801 ) A Bender Problem PROGRAMMING implementation 2200

B"Robot Bender decided to make Fray a birthday present. He drove n nails and numbered them from 1 to n in some order. Bender decided to make a picture using metal rods. The picture is a closed polyline, which vertices should be nails (in the given order). The segments of the polyline should be parallel to the coordinate axes. Polyline is allowed to have self-intersections. Bender can take a rod and fold it exactly once in any place to form an angle of 90 degrees. Then he can attach the place of the fold to some unoccupied nail and attach two ends of this rod to adjacent nails. A nail is considered unoccupied if there is no rod attached to it (neither by it's end nor the by the fold place). No rod could be used twice. It is not required to use all the rods. Help Bender to solve this difficult task. The first line contains two positive integers n and m (4 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500, xe2 x80 x892 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500, n is even) -- the amount of nails and the amount of rods. i-th of the following n lines contains a pair of integers, denoting the coordinates of the i-th nail. Nails should be connected in the same order as they are given in the input. The last line contains m integers -- the lenghts of the rods. All coordinates do not exceed 104 by absolute value. Lengths of the rods are between 1 and 200 xe2 x80 x89000. No rod can be used twice. It is guaranteed that all segments of the given polyline are parallel to coordinate axes. No three consecutive nails lie on the same line. If it is impossible to solve Bender's problem, output NO. Otherwise, output YES in the first line, and in the second line output n numbers -- i-th of them should be the number of rod, which fold place is attached to the i-th nail, or -1, if there is no such rod. If there are multiple solutions, print any of them."...

Tutorials

Codeforces Beta Round #28 (Разбор задач A и B)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
122933 pavlin A Sept. 17, 2010, 4:14 p.m. OK Delphi TESTS 51 30 819200 2200
122486 chavit A Sept. 17, 2010, 3:34 p.m. OK Delphi TESTS 51 30 819200 2200
1015452 Depool A Jan. 6, 2012, 7:58 p.m. OK Delphi TESTS 51 30 819200 2200
122374 tourist A Sept. 17, 2010, 3:26 p.m. OK Delphi TESTS 51 30 819200 2200
122306 KOTEHOK A Sept. 17, 2010, 3:18 p.m. OK Delphi TESTS 51 30 819200 2200
469948 ruban A May 25, 2011, 3:28 p.m. OK Delphi TESTS 51 30 921600 2200
124109 sankear A Oct. 9, 2010, 4:35 p.m. OK Delphi TESTS 51 30 921600 2200
123920 Babanin_Ivan A Sept. 20, 2010, 7:50 p.m. OK Delphi TESTS 51 30 921600 2200
123616 romanandreev A Sept. 18, 2010, 5:15 a.m. OK Delphi TESTS 51 30 5222400 2200
123233 Gelka A Sept. 17, 2010, 4:53 p.m. OK Delphi TESTS 51 50 2355200 2200
123458 taras.klaskovsky A Sept. 17, 2010, 6:32 p.m. OK FPC TESTS 51 30 819200 2200
123336 PAG A Sept. 17, 2010, 5:28 p.m. OK FPC TESTS 51 30 819200 2200
123149 IsakSurPe A Sept. 17, 2010, 4:44 p.m. OK FPC TESTS 51 30 819200 2200
122865 vilcheuski A Sept. 17, 2010, 4:06 p.m. OK FPC TESTS 51 30 819200 2200
122286 Sereja A Sept. 17, 2010, 3:15 p.m. OK FPC TESTS 51 30 819200 2200
122457 AliD A Sept. 17, 2010, 3:32 p.m. OK FPC TESTS 51 30 921600 2200
471973 vlad107 A May 29, 2011, 7:17 a.m. OK FPC TESTS 51 30 1024000 2200
339572 AndreiBiruk A March 17, 2011, 9:27 p.m. OK FPC TESTS 51 30 1024000 2200
1680880 Rubanenko A May 11, 2012, 9:02 a.m. OK FPC TESTS 51 30 1126400 2200
1851055 ProCoder A July 3, 2012, 9:26 a.m. OK FPC TESTS 51 30 1228800 2200
14670152 salah_bouziane A Dec. 6, 2015, 12:27 a.m. OK GNU C TESTS 51 30 0 2200
122468 LayCurse A Sept. 17, 2010, 3:33 p.m. OK GNU C TESTS 51 30 1331200 2200
723476 kawatea A Sept. 25, 2011, 5:44 a.m. OK GNU C TESTS 51 30 1433600 2200
22528686 dby A Nov. 27, 2016, 2:47 p.m. OK GNU C TESTS 51 62 0 2200
3816122 akhtyamovpavel A June 2, 2013, 2:59 p.m. OK GNU C++ TESTS 51 15 0 2200
3703062 Choojae A May 11, 2013, 4:35 p.m. OK GNU C++ TESTS 51 15 0 2200
3077319 numitus A Feb. 6, 2013, 11:36 a.m. OK GNU C++ TESTS 51 15 0 2200
3784729 ftiasch A May 27, 2013, 2:56 p.m. OK GNU C++ TESTS 51 15 102400 2200
3349635 aiiYuu A March 18, 2013, 8:40 a.m. OK GNU C++ TESTS 51 15 204800 2200
2976178 yenthanh.t7 A Jan. 21, 2013, 3:29 a.m. OK GNU C++ TESTS 51 15 1433600 2200
2976139 yenthanh.t7 A Jan. 21, 2013, 3:23 a.m. OK GNU C++ TESTS 51 15 1433600 2200
2976055 yenthanh.t7 A Jan. 21, 2013, 3:06 a.m. OK GNU C++ TESTS 51 15 3276800 2200
32195593 vahtang A Nov. 10, 2017, 12:56 p.m. OK GNU C++ TESTS 51 30 0 2200
20830414 Dyian A Sept. 23, 2016, 5:05 a.m. OK GNU C++ TESTS 51 30 0 2200
3618974 lemur A April 25, 2013, 4:19 a.m. OK GNU C++0x TESTS 51 15 102400 2200
10255592 hakobyan.tigran A March 13, 2015, 9:07 a.m. OK GNU C++0x TESTS 51 30 0 2200
7004056 xiaohao123 A July 3, 2014, 11:56 a.m. OK GNU C++0x TESTS 51 30 0 2200
6998225 xiaohao123 A July 2, 2014, 3:29 p.m. OK GNU C++0x TESTS 51 30 0 2200
6998220 xiaohao123 A July 2, 2014, 3:27 p.m. OK GNU C++0x TESTS 51 30 0 2200
6979525 Duxar A June 29, 2014, 10:08 a.m. OK GNU C++0x TESTS 51 30 0 2200
4482981 sarasouju A Sept. 16, 2013, 11:48 a.m. OK GNU C++0x TESTS 51 30 204800 2200
638701 Archon.JK A Aug. 26, 2011, 7:44 a.m. OK GNU C++0x TESTS 51 30 1433600 2200
6481288 marat.snowbear A April 27, 2014, 12:32 a.m. OK GNU C++0x TESTS 51 60 204800 2200
10041097 ruo A Feb. 27, 2015, 7:16 a.m. OK GNU C++0x TESTS 51 62 102400 2200
32090480 saddam A Nov. 6, 2017, 9:29 a.m. OK GNU C++11 TESTS 51 30 0 2200
16760551 ITDOI A March 17, 2016, 9:25 a.m. OK GNU C++11 TESTS 51 30 0 2200
16480667 ko_osaga A March 3, 2016, 10:14 a.m. OK GNU C++11 TESTS 51 30 0 2200
12816278 Vlad_kv A Sept. 2, 2015, 2:09 p.m. OK GNU C++11 TESTS 51 30 0 2200
19444354 irkstepanov A July 27, 2016, 2:58 p.m. OK GNU C++11 TESTS 51 30 102400 2200
16587562 2016 A March 7, 2016, 4:10 p.m. OK GNU C++11 TESTS 51 30 102400 2200
17829101 RNS_CUS A May 10, 2016, 8:47 a.m. OK GNU C++11 TESTS 51 30 2048000 2200
17121370 freebsdx A April 2, 2016, 2:03 a.m. OK GNU C++11 TESTS 51 30 2048000 2200
34691106 Tumpa_678 A Jan. 29, 2018, 9:39 p.m. OK GNU C++11 TESTS 51 30 2150400 2200
28812548 Jayzhang A July 24, 2017, 3:06 a.m. OK GNU C++11 TESTS 51 30 2150400 2200
21130027 syt A Oct. 3, 2016, 6:55 a.m. OK GNU C++14 TESTS 51 30 0 2200
32069489 vjudge3 A Nov. 5, 2017, 6:49 a.m. OK GNU C++14 TESTS 51 30 409600 2200
32069446 Rtn_e A Nov. 5, 2017, 6:47 a.m. OK GNU C++14 TESTS 51 30 409600 2200
33645143 MetaBro A Dec. 26, 2017, 11:24 a.m. OK GNU C++14 TESTS 51 30 1945600 2200
33572678 Mr.Pickles3301 A Dec. 23, 2017, 4:53 p.m. OK GNU C++14 TESTS 51 30 1945600 2200
31605294 vjudge2 A Oct. 22, 2017, 1:36 p.m. OK GNU C++14 TESTS 51 30 1945600 2200
23375201 Ali.Pi A Dec. 28, 2016, 10:15 a.m. OK GNU C++14 TESTS 51 30 1945600 2200
26222191 grdkrll A April 8, 2017, 3:24 p.m. OK GNU C++14 TESTS 51 30 8499200 2200
27902916 furys A June 19, 2017, 11:08 a.m. OK GNU C++14 TESTS 51 30 10547200 2200
35194619 vjudge3 A Feb. 13, 2018, 9:05 a.m. OK GNU C++14 TESTS 51 60 1945600 2200
59791289 Carl___P A Aug. 31, 2019, 7:14 a.m. OK GNU C++17 TESTS 51 62 0 2200
69715133 vjudge5 A Jan. 29, 2020, 8:43 a.m. OK GNU C++17 TESTS 51 62 0 2200
59857596 HIT_Attacker A Sept. 1, 2019, 2:07 p.m. OK GNU C++17 TESTS 51 62 0 2200
55064677 yuxizi A June 4, 2019, 2:39 a.m. OK GNU C++17 TESTS 51 62 0 2200
51308007 Gorbatov.Nickita A March 14, 2019, 5:47 p.m. OK GNU C++17 TESTS 51 62 0 2200
41906997 xiaojiu A Aug. 20, 2018, 3:10 p.m. OK GNU C++17 TESTS 51 62 0 2200
63559755 diegorestrepo68 A Oct. 27, 2019, 1:55 p.m. OK GNU C++17 TESTS 51 62 204800 2200
61760202 yuma_ A Oct. 3, 2019, 6:51 a.m. OK GNU C++17 TESTS 51 62 204800 2200
43696809 Artem_Bobkov A Oct. 2, 2018, 4:47 p.m. OK GNU C++17 TESTS 51 62 1638400 2200
62207277 vjudge5 A Oct. 9, 2019, 1:33 p.m. OK GNU C++17 TESTS 51 62 2560000 2200
4571856 DimsFromDergachy A Sept. 27, 2013, 7:57 a.m. OK Haskell TESTS 51 30 0 2200
123650 Vintik A Sept. 18, 2010, 9:18 a.m. OK Haskell TESTS 51 50 2048000 2200
122745 ivan.popelyshev A Sept. 17, 2010, 3:54 p.m. OK Java 6 TESTS 51 80 42905600 2200
122705 Abra A Sept. 17, 2010, 3:51 p.m. OK Java 6 TESTS 51 80 42905600 2200
122449 vsb A Sept. 17, 2010, 3:32 p.m. OK Java 6 TESTS 51 80 42905600 2200
122335 Vasya.V A Sept. 17, 2010, 3:21 p.m. OK Java 6 TESTS 51 80 42905600 2200
122331 Narg A Sept. 17, 2010, 3:21 p.m. OK Java 6 TESTS 51 80 42905600 2200
122292 SergeyLazarev A Sept. 17, 2010, 3:16 p.m. OK Java 6 TESTS 51 80 42905600 2200
122281 Egor A Sept. 17, 2010, 3:15 p.m. OK Java 6 TESTS 51 80 42905600 2200
124081 zxfsheep A Oct. 2, 2010, 7:54 p.m. OK Java 6 TESTS 51 80 43315200 2200
123850 marser A Sept. 19, 2010, 9:20 a.m. OK Java 6 TESTS 51 90 42905600 2200
123362 Narg A Sept. 17, 2010, 5:40 p.m. OK Java 6 TESTS 51 90 42905600 2200
5458316 Zyflair A Dec. 18, 2013, 2:36 a.m. OK Java 7 TESTS 51 124 0 2200
4285345 cxlove A Aug. 16, 2013, 6:41 a.m. OK Java 7 TESTS 51 186 0 2200
5166307 j4mes A Nov. 19, 2013, 9:46 p.m. OK Java 7 TESTS 51 904 0 2200
14754874 ian9696 A Dec. 11, 2015, 8:55 a.m. OK Java 8 TESTS 51 280 0 2200
36759230 totallynotan A March 30, 2018, 9:22 p.m. OK Java 8 TESTS 51 280 20787200 2200
35537520 vjudge3 A Feb. 21, 2018, 4:16 a.m. OK Java 8 TESTS 51 374 21606400 2200
42904879 sancho20021 A Sept. 15, 2018, 11:18 p.m. OK Java 8 TESTS 51 404 0 2200
16080433 agat00 A Feb. 17, 2016, 2:37 p.m. OK JavaScript TESTS 51 62 1843200 2200
123066 x3mka A Sept. 17, 2010, 4:31 p.m. OK Mono C# TESTS 51 110 6041600 2200
122874 tanzaku A Sept. 17, 2010, 4:07 p.m. OK Mono C# TESTS 51 130 6041600 2200
123462 fujiyama A Sept. 17, 2010, 6:41 p.m. OK Mono C# TESTS 51 130 6041600 2200
122459 Hadi_Asiaie A Sept. 17, 2010, 3:32 p.m. OK Mono C# TESTS 51 250 23347200 2200
25551275 fr0st A March 16, 2017, 2:05 p.m. OK MS C# TESTS 51 124 11673600 2200
18502453 azukun A June 15, 2016, 4:43 p.m. OK MS C# TESTS 51 248 22835200 2200
3077362 numitus A Feb. 6, 2013, 11:48 a.m. OK MS C++ TESTS 51 15 0 2200
4305866 3of7 A Aug. 17, 2013, 10:17 p.m. OK MS C++ TESTS 51 30 0 2200
16449381 pokachopotun A March 1, 2016, 4:43 p.m. OK MS C++ TESTS 51 30 0 2200
16450783 MISiS_Petrova A March 1, 2016, 5:20 p.m. OK MS C++ TESTS 51 30 102400 2200
123752 weiqi A Sept. 18, 2010, 4:26 p.m. OK MS C++ TESTS 51 30 1331200 2200
123478 Padme A Sept. 17, 2010, 7:22 p.m. OK MS C++ TESTS 51 30 1331200 2200
124150 Sigmar A Dec. 15, 2010, 2:59 p.m. OK MS C++ TESTS 51 30 1331200 2200
124141 Ixanezis A Nov. 4, 2010, 4:57 p.m. OK MS C++ TESTS 51 30 1331200 2200
123999 nekto A Sept. 23, 2010, 3:58 p.m. OK MS C++ TESTS 51 30 1331200 2200
123967 ft.azadi A Sept. 22, 2010, 11:58 p.m. OK MS C++ TESTS 51 30 1331200 2200
65687364 Prokopiy A Nov. 25, 2019, 1:29 a.m. OK MS C++ 2017 TESTS 51 62 512000 2200
51218875 teitoku A March 12, 2019, 11:44 a.m. OK PyPy 3 TESTS 51 280 102400 2200
66592472 SMMaster A Dec. 10, 2019, 1:27 p.m. OK PyPy 3 TESTS 51 404 1843200 2200
123686 rem A Sept. 18, 2010, 12:22 p.m. OK Python 2 TESTS 51 60 2764800 2200
124006 _ph_ A Sept. 24, 2010, 8:14 a.m. OK Python 2 TESTS 51 60 2764800 2200
124002 kiyoshi A Sept. 24, 2010, 4:24 a.m. OK Python 2 TESTS 51 60 2764800 2200
3077375 numitus A Feb. 6, 2013, 11:51 a.m. OK Python 2 TESTS 51 62 0 2200
2565933 nealzane A Nov. 16, 2012, 6:10 a.m. OK Python 2 TESTS 51 62 102400 2200
3066752 m1_k3 A Feb. 3, 2013, 10:36 a.m. OK Python 2 TESTS 51 62 512000 2200
277840 Aleksey A Feb. 9, 2011, 5:32 p.m. OK Python 2 TESTS 51 80 3174400 2200
639436 AntonDubovik A Aug. 26, 2011, 7:41 p.m. OK Python 2 TESTS 51 80 3481600 2200
5698240 clarinet758 A Jan. 15, 2014, 4 p.m. OK Python 2 TESTS 51 92 204800 2200
13329943 Jozik A Oct. 1, 2015, 12:59 p.m. OK Python 2 TESTS 51 122 102400 2200
11979671 Eeyore A July 9, 2015, 3:28 a.m. OK Python 3 TESTS 51 154 102400 2200
13001422 orailly A Sept. 14, 2015, 11:13 p.m. OK Python 3 TESTS 51 154 409600 2200
35772476 Qumeric A Feb. 27, 2018, 6:49 p.m. OK Python 3 TESTS 51 156 6041600 2200
5760155 yugle7 A Jan. 20, 2014, 8 p.m. OK Python 3 TESTS 51 184 409600 2200
68238752 UR5ANO A Jan. 5, 2020, noon OK Python 3 TESTS 51 216 307200 2200
67732433 romanysik A Dec. 27, 2019, 3:51 p.m. OK Python 3 TESTS 51 218 512000 2200
41982673 Mk_Python_v1 A Aug. 23, 2018, 3:13 a.m. OK Python 3 TESTS 51 278 409600 2200
55847162 dhavalkasodariya11111 A June 20, 2019, 10:52 p.m. OK Python 3 TESTS 51 280 409600 2200
122913 urutom A Sept. 17, 2010, 4:11 p.m. OK Ruby TESTS 51 60 4096000 2200

remove filters

Back to search problems