Codeforces Round 336 (Div. 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
607 Codeforces Round 336 (Div. 1) FINISHED False 7200 280934699 Dec. 23, 2015, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9647 ) A Chain Reaction PROGRAMMING binary search dp 1600

B"There are n beacons located at distinct positions on a number line. The i-th beacon has position ai and power level bi. When the i-th beacon is activated, it destroys all beacons to its left (direction of decreasing coordinates) within distance bi inclusive. The beacon itself is not destroyed however. Saitama will activate the beacons one at a time from right to left. If a beacon is destroyed, it cannot be activated. Saitama wants Genos to add a beacon strictly to the right of all the existing beacons, with any position and any power level, such that the least possible number of beacons are destroyed. Note that Genos's placement of the beacon means it will be the first beacon activated. Help Genos by finding the minimum number of beacons that could be destroyed. The first line of input contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the initial number of beacons. The i-th of next n lines contains two integers ai and bi (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891 xe2 x80 x89000 xe2 x80 x89000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891 xe2 x80 x89000 xe2 x80 x89000) -- the position and power level of the i-th beacon respectively. No two beacons will have the same position, so ai xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89aj if i xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89j. Print a single integer -- the minimum number of beacons that could be destroyed if exactly one beacon is added. For the first sample case, the minimum number of beacons destroyed is 1. One way to achieve this is to place a beacon at position 9 with power level 2. For the second sample case, the minimum number of beacons destroyed is 3. One way to achieve this is to place a beacon at position 1337 with power level 42."...

Tutorials

Codeforces Round #336 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
53975998 atulep A May 11, 2019, 4:03 a.m. OK Clang++17 Diagnostics TESTS 41 967 12083200 1600
28134319 fluffyowl A June 29, 2017, 7:50 a.m. OK D TESTS 41 124 7168000 1600
14943874 Gassa A Dec. 23, 2015, 4:48 p.m. OK D TESTS 41 156 4198400 1600
15385691 ghostriderhp99 A Jan. 15, 2016, 9:16 a.m. OK Delphi TESTS 41 46 12083200 1600
15146420 tieuchanlong A Jan. 1, 2016, 9:01 a.m. OK FPC TESTS 41 31 8908800 1600
15064167 ducpham2708 A Dec. 28, 2015, 3:04 a.m. OK FPC TESTS 41 46 1228800 1600
18376813 truongtop14 A June 11, 2016, 3:17 p.m. OK FPC TESTS 41 46 10547200 1600
18392216 truongtop14 A June 12, 2016, 2:10 p.m. OK FPC TESTS 41 46 162099200 1600
15041260 SilverDH A Dec. 27, 2015, 9:18 a.m. OK FPC TESTS 41 62 1331200 1600
16584055 mr234 A March 7, 2016, 2:10 p.m. OK FPC TESTS 41 62 2560000 1600
20189661 Gray_58 A Aug. 27, 2016, 7:08 a.m. OK FPC TESTS 41 62 3379200 1600
22077821 ben15021999 A Nov. 6, 2016, 3:18 p.m. OK FPC TESTS 41 62 12083200 1600
22934963 tomhet_vandreren A Dec. 13, 2016, 8:33 p.m. OK FPC TESTS 41 62 16076800 1600
20424933 ice_tea A Sept. 6, 2016, 8:22 p.m. OK FPC TESTS 41 62 16998400 1600
19412491 Elalay A July 26, 2016, 1:35 a.m. OK GNU C TESTS 41 46 5222400 1600
19385747 yigezhe A July 24, 2016, 2:39 p.m. OK GNU C TESTS 41 46 5222400 1600
16707975 viralm A March 14, 2016, 5:01 a.m. OK GNU C TESTS 41 46 7987200 1600
15694252 vjudge2 A Jan. 31, 2016, 12:42 p.m. OK GNU C TESTS 41 46 7987200 1600
29473635 fsociety00 A Aug. 15, 2017, 5:38 a.m. OK GNU C TESTS 41 46 9932800 1600
17142365 hrazvan A April 3, 2016, 8:39 a.m. OK GNU C TESTS 41 46 10035200 1600
15170574 shets A Jan. 3, 2016, 4:22 p.m. OK GNU C TESTS 41 62 7987200 1600
18131789 vjudge5 A May 28, 2016, 12:56 p.m. OK GNU C TESTS 41 62 10035200 1600
15282604 .sswiml A Jan. 10, 2016, 5:17 p.m. OK GNU C TESTS 41 62 11980800 1600
40469255 gfonn A July 17, 2018, 8:16 a.m. OK GNU C TESTS 41 62 16076800 1600
31190430 wzp233 A Oct. 10, 2017, 1:06 p.m. OK GNU C++ TESTS 41 31 1228800 1600
15093350 mxh1999 A Dec. 30, 2015, 6:56 a.m. OK GNU C++ TESTS 41 31 1638400 1600
14948612 jcvb A Dec. 23, 2015, 5:15 p.m. OK GNU C++ TESTS 41 31 1740800 1600
19019718 vjudge5 A July 11, 2016, 3:42 a.m. OK GNU C++ TESTS 41 31 2252800 1600
26292544 czllgzmzl A April 11, 2017, 7:35 a.m. OK GNU C++ TESTS 41 31 3379200 1600
17751759 vjtest A May 6, 2016, 1:16 a.m. OK GNU C++ TESTS 41 31 4403200 1600
18240708 vjtest A June 4, 2016, 7:30 a.m. OK GNU C++ TESTS 41 31 4505600 1600
18240695 vjtest A June 4, 2016, 7:29 a.m. OK GNU C++ TESTS 41 31 4505600 1600
18240685 vjtest A June 4, 2016, 7:29 a.m. OK GNU C++ TESTS 41 31 4505600 1600
26293303 yylidiw A April 11, 2017, 8:18 a.m. OK GNU C++ TESTS 41 31 4608000 1600
15919306 Mohamed_Murad A Feb. 9, 2016, 6 p.m. OK GNU C11 TESTS 41 46 7987200 1600
15918159 Mohamed_Murad A Feb. 9, 2016, 4:42 p.m. OK GNU C11 TESTS 41 62 7987200 1600
37911614 Nickir A May 5, 2018, 4:56 p.m. OK GNU C11 TESTS 41 62 19353600 1600
57114330 rainboy A July 15, 2019, 7:05 p.m. OK GNU C11 TESTS 41 78 1228800 1600
14963584 OB.Zhou A Dec. 24, 2015, 4:35 a.m. OK GNU C++11 TESTS 41 30 7782400 1600
30565917 ditoly A Sept. 21, 2017, 2:41 a.m. OK GNU C++11 TESTS 41 31 1024000 1600
14942507 savinov A Dec. 23, 2015, 4:42 p.m. OK GNU C++11 TESTS 41 31 1228800 1600
14966092 hackssssss A Dec. 24, 2015, 8:10 a.m. OK GNU C++11 TESTS 41 31 1228800 1600
14948201 Heisenbug A Dec. 23, 2015, 5:13 p.m. OK GNU C++11 TESTS 41 31 1228800 1600
14944321 PPFish A Dec. 23, 2015, 4:51 p.m. OK GNU C++11 TESTS 41 31 1228800 1600
14974032 IzumiKonata A Dec. 24, 2015, 2:01 p.m. OK GNU C++11 TESTS 41 31 1331200 1600
14958509 MinakoKojima A Dec. 23, 2015, 7:06 p.m. OK GNU C++11 TESTS 41 31 1945600 1600
14942400 sokian A Dec. 23, 2015, 4:42 p.m. OK GNU C++11 TESTS 41 31 2048000 1600
15085070 CatalinT A Dec. 29, 2015, 1:12 p.m. OK GNU C++11 TESTS 41 31 2150400 1600
50536276 tokitsukaze A Feb. 26, 2019, 3:51 p.m. OK GNU C++14 TESTS 41 46 8089600 1600
26090135 koiyami_ A April 3, 2017, 4:01 a.m. OK GNU C++14 TESTS 41 46 9932800 1600
34467463 codekode A Jan. 23, 2018, 4:34 a.m. OK GNU C++14 TESTS 41 46 9932800 1600
32764828 Ethar A Nov. 29, 2017, 4:02 a.m. OK GNU C++14 TESTS 41 46 9932800 1600
32764308 Daliademerdash A Nov. 29, 2017, 2:57 a.m. OK GNU C++14 TESTS 41 46 9932800 1600
45385509 alvinvaja A Nov. 6, 2018, 5:21 p.m. OK GNU C++14 TESTS 41 61 7987200 1600
29354935 Simon7426 A Aug. 11, 2017, 2:08 p.m. OK GNU C++14 TESTS 41 61 9932800 1600
31388453 tanuj_drall A Oct. 16, 2017, 10:53 a.m. OK GNU C++14 TESTS 41 61 9932800 1600
49964232 upobir A Feb. 15, 2019, 7:47 p.m. OK GNU C++14 TESTS 41 62 1228800 1600
63612309 MiricaMatei A Oct. 27, 2019, 5:50 p.m. OK GNU C++14 TESTS 41 62 1228800 1600
51563371 undercover9119 A March 20, 2019, 8:47 a.m. OK GNU C++17 TESTS 41 62 1228800 1600
59763687 yuyawk_0908 A Aug. 30, 2019, 5:27 p.m. OK GNU C++17 TESTS 41 62 1228800 1600
68388389 ruo A Jan. 8, 2020, 7:17 a.m. OK GNU C++17 TESTS 41 62 1228800 1600
50529473 yoshinoz A Feb. 26, 2019, 1:05 p.m. OK GNU C++17 TESTS 41 62 2048000 1600
48437336 Ly20 A Jan. 15, 2019, 9:51 p.m. OK GNU C++17 TESTS 41 62 2252800 1600
50677067 lvao-x A March 2, 2019, 9:43 a.m. OK GNU C++17 TESTS 41 62 3584000 1600
36233797 iShibly A March 12, 2018, 7:33 p.m. OK GNU C++17 TESTS 41 62 4812800 1600
67168239 thtsshz_bgwrswh A Dec. 18, 2019, 4:19 p.m. OK GNU C++17 TESTS 41 62 7987200 1600
58868989 vjudge5 A Aug. 15, 2019, 2:32 p.m. OK GNU C++17 TESTS 41 62 7987200 1600
58868906 aidirans A Aug. 15, 2019, 2:30 p.m. OK GNU C++17 TESTS 41 62 7987200 1600
15153177 lemur A Jan. 1, 2016, 9:15 p.m. OK Haskell TESTS 41 1263 69529600 1600
69094369 jst_forfun A Jan. 19, 2020, 11:27 a.m. OK Java 11 TESTS 41 218 5222400 1600
68053467 ashanksingh1997 A Jan. 1, 2020, 8:21 p.m. OK Java 11 TESTS 41 639 5632000 1600
14947096 anton.bannykh A Dec. 23, 2015, 5:06 p.m. OK Java 7 TESTS 41 140 0 1600
15726722 p0wonTnx A Feb. 1, 2016, 7:42 a.m. OK Java 7 TESTS 41 171 0 1600
18045430 MazzForces A May 23, 2016, 3:23 p.m. OK Java 7 TESTS 41 186 57036800 1600
14945927 AkshajK A Dec. 23, 2015, 4:59 p.m. OK Java 7 TESTS 41 187 0 1600
14963289 ltjmao A Dec. 24, 2015, 3:58 a.m. OK Java 7 TESTS 41 202 0 1600
14962412 nitegazer A Dec. 24, 2015, 2:11 a.m. OK Java 7 TESTS 41 202 0 1600
14943500 fromWork A Dec. 23, 2015, 4:47 p.m. OK Java 7 TESTS 41 202 0 1600
15230682 NeSumHaker A Jan. 7, 2016, 10:16 p.m. OK Java 7 TESTS 41 218 0 1600
14942270 pashka A Dec. 23, 2015, 4:41 p.m. OK Java 7 TESTS 41 218 0 1600
15230651 NeSumHaker A Jan. 7, 2016, 10:10 p.m. OK Java 7 TESTS 41 249 0 1600
16137900 dhrumil140396 A Feb. 18, 2016, 7:44 a.m. OK Java 8 TESTS 41 139 0 1600
69857084 revanthreddy85 A Jan. 30, 2020, 5:18 p.m. OK Java 8 TESTS 41 139 2150400 1600
28324398 Ajudiya_13 A July 6, 2017, 10:56 a.m. OK Java 8 TESTS 41 139 24985600 1600
60393527 atharvat77 A Sept. 11, 2019, 2:06 p.m. OK Java 8 TESTS 41 140 2150400 1600
39076778 jenish9599 A June 9, 2018, 7 p.m. OK Java 8 TESTS 41 140 2355200 1600
31732206 jay321 A Oct. 26, 2017, 8:22 a.m. OK Java 8 TESTS 41 140 3072000 1600
14960988 uwi A Dec. 23, 2015, 9:48 p.m. OK Java 8 TESTS 41 155 0 1600
42147516 ShowStopper728 A Aug. 27, 2018, 9:49 a.m. OK Java 8 TESTS 41 155 2150400 1600
68745169 maheshwari29 A Jan. 14, 2020, 4:09 a.m. OK Java 8 TESTS 41 155 2252800 1600
48192333 Bibhuti A Jan. 10, 2019, 6:42 p.m. OK Java 8 TESTS 41 155 6348800 1600
33991177 Detuned_radio A Jan. 7, 2018, 9:28 p.m. OK Kotlin TESTS 41 374 23040000 1600
51291265 nemars A March 14, 2019, 10:23 a.m. OK Mono C# TESTS 41 139 16076800 1600
51291200 nemars A March 14, 2019, 10:21 a.m. OK Mono C# TESTS 41 140 16076800 1600
51291121 nemars A March 14, 2019, 10:18 a.m. OK Mono C# TESTS 41 155 16076800 1600
14943464 og.kostya A Dec. 23, 2015, 4:46 p.m. OK MS C# TESTS 41 77 1228800 1600
16139197 AnatolyTolstobrov A Feb. 18, 2016, 9:50 a.m. OK MS C# TESTS 41 93 14540800 1600
14949973 camypaper A Dec. 23, 2015, 5:25 p.m. OK MS C# TESTS 41 108 4096000 1600
14998154 liomvse A Dec. 25, 2015, 5:47 a.m. OK MS C# TESTS 41 109 7065600 1600
14942552 azukun A Dec. 23, 2015, 4:42 p.m. OK MS C# TESTS 41 249 11059200 1600
14944254 Taube A Dec. 23, 2015, 4:50 p.m. OK MS C++ TESTS 41 46 2048000 1600
14943380 Trumen A Dec. 23, 2015, 4:46 p.m. OK MS C++ TESTS 41 46 2457600 1600
14943275 InDaBag A Dec. 23, 2015, 4:46 p.m. OK MS C++ TESTS 41 46 2457600 1600
15648198 vjudge5 A Jan. 29, 2016, 3:28 p.m. OK MS C++ TESTS 41 46 7987200 1600
15647549 vjudge2 A Jan. 29, 2016, 2:50 p.m. OK MS C++ TESTS 41 46 7987200 1600
15138144 hhh12345 A Dec. 31, 2015, 2:49 p.m. OK MS C++ TESTS 41 46 7987200 1600
15095336 PumpkinYing A Dec. 30, 2015, 10:30 a.m. OK MS C++ TESTS 41 46 7987200 1600
46728223 Esraa500 A Dec. 7, 2018, 4:04 p.m. OK MS C++ TESTS 41 46 7987200 1600
46728397 ebtessamjamal A Dec. 7, 2018, 4:08 p.m. OK MS C++ TESTS 41 46 7987200 1600
16225456 vjudge5 A Feb. 20, 2016, 8:41 a.m. OK MS C++ TESTS 41 46 7987200 1600
66262668 yuanyuan2048 A Dec. 4, 2019, 9:05 a.m. OK MS C++ 2017 TESTS 41 187 5120000 1600
61556441 CtrlAlt A Sept. 30, 2019, 2:11 p.m. OK MS C++ 2017 TESTS 41 202 1228800 1600
37623724 Sidney A April 26, 2018, 3:32 a.m. OK PyPy 2 TESTS 41 280 48332800 1600
15076585 nealzane A Dec. 28, 2015, 7:35 p.m. OK PyPy 2 TESTS 41 452 6758400 1600
35886987 ______h______ A March 3, 2018, 1:57 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
35895971 _____k_____ A March 3, 2018, 4:58 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
35895384 ______n______ A March 3, 2018, 4:42 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
35895298 ______u______ A March 3, 2018, 4:41 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
35895129 _____i_____ A March 3, 2018, 4:36 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
35886386 ______k______ A March 3, 2018, 1:45 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
35885603 ______i______ A March 3, 2018, 1:31 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
35883608 ______M______ A March 3, 2018, 12:57 p.m. OK PyPy 2 TESTS 41 452 27648000 1600
20347209 ch_egor A Sept. 2, 2016, 7:01 p.m. OK PyPy 3 TESTS 41 467 18534400 1600
67852726 shivammishra A Dec. 29, 2019, 4:21 a.m. OK PyPy 3 TESTS 41 873 14028800 1600
66133008 Mohamed_Ayman A Dec. 1, 2019, 11:12 a.m. OK PyPy 3 TESTS 41 873 15155200 1600
66133067 Mohamed_Ayman A Dec. 1, 2019, 11:14 a.m. OK PyPy 3 TESTS 41 888 9932800 1600
52303609 dead_inside0 A April 4, 2019, 10:51 a.m. OK PyPy 3 TESTS 41 889 15052800 1600
15154870 Alex7 A Jan. 2, 2016, 3:59 a.m. OK PyPy 3 TESTS 41 1013 10752000 1600
60910084 adivannik A Sept. 20, 2019, 5:23 a.m. OK PyPy 3 TESTS 41 1013 31334400 1600
15154857 Alex7 A Jan. 2, 2016, 3:55 a.m. OK PyPy 3 TESTS 41 1076 15564800 1600
49334988 111vad111 A Feb. 1, 2019, 6:01 p.m. OK PyPy 3 TESTS 41 1091 14131200 1600
64748120 UTMoonlight A Nov. 12, 2019, 2:15 p.m. OK PyPy 3 TESTS 41 1154 16179200 1600
14958900 nwi A Dec. 23, 2015, 7:15 p.m. OK Python 2 TESTS 41 452 17817600 1600
15070035 electro A Dec. 28, 2015, 11:58 a.m. OK Python 2 TESTS 41 561 10035200 1600
27683295 mafuenzalida A June 9, 2017, 6:18 a.m. OK Python 2 TESTS 41 717 31129600 1600
19832702 olegp04728 A Aug. 12, 2016, 4:16 p.m. OK Python 2 TESTS 41 748 69120000 1600
15075797 Ljubitel A Dec. 28, 2015, 6:26 p.m. OK Python 2 TESTS 41 811 9318400 1600
55112936 anshuman16423 A June 5, 2019, 7:17 a.m. OK Python 2 TESTS 41 904 27136000 1600
17326024 riser00 A April 15, 2016, noon OK Python 2 TESTS 41 935 30310400 1600
22835400 inKerra A Dec. 9, 2016, 2:03 p.m. OK Python 2 TESTS 41 982 37785600 1600
25965950 Hildegrin A March 31, 2017, 1:02 a.m. OK Python 2 TESTS 41 1044 15257600 1600
15276296 LPN A Jan. 10, 2016, 5:29 a.m. OK Python 2 TESTS 41 1107 17100800 1600
67523977 Annvv A Dec. 24, 2019, 1:21 p.m. OK Python 3 TESTS 41 467 10342400 1600
15404543 orailly A Jan. 16, 2016, 1:57 p.m. OK Python 3 TESTS 41 499 6348800 1600
48471440 toysheeyeyraku A Jan. 16, 2019, 8:47 p.m. OK Python 3 TESTS 41 577 6144000 1600
61037011 gosaindhruv A Sept. 21, 2019, 8:27 p.m. OK Python 3 TESTS 41 592 6144000 1600
61037267 gosaindhruv A Sept. 21, 2019, 8:36 p.m. OK Python 3 TESTS 41 608 6246400 1600
22920470 augurar A Dec. 13, 2016, 6:20 a.m. OK Python 3 TESTS 41 795 11059200 1600
54161809 nayan21garg A May 15, 2019, 6:54 a.m. OK Python 3 TESTS 41 826 10649600 1600
15406932 Cuellius A Jan. 16, 2016, 5:23 p.m. OK Python 3 TESTS 41 826 10649600 1600
56743842 kopok2 A July 9, 2019, 8:48 a.m. OK Python 3 TESTS 41 857 15872000 1600
42108594 Mk_Python_v1 A Aug. 26, 2018, 3:45 a.m. OK Python 3 TESTS 41 888 10547200 1600
15081375 dsh0416 A Dec. 29, 2015, 8:20 a.m. OK Ruby TESTS 41 998 9728000 1600
15076189 MinakoKojima A Dec. 28, 2015, 7:03 p.m. OK Ruby TESTS 41 998 9728000 1600
16058803 RoundheadOFF A Feb. 16, 2016, 4:04 p.m. OK Scala TESTS 41 498 204800 1600
17507275 reldan A April 25, 2016, 10:55 a.m. OK Scala TESTS 41 561 44953600 1600

remove filters

Back to search problems