Codeforces Round 262 (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
460 Codeforces Round 262 (Div. 2) FINISHED False 7200 323274599 Aug. 20, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6245 ) C Present PROGRAMMING binary search data structures greedy 1900

B"Little beaver is a beginner programmer, so informatics is his favorite subject. Soon his informatics teacher is going to have a birthday and the beaver has decided to prepare a present for her. He planted n flowers in a row on his windowsill and started waiting for them to grow. However, after some time the beaver noticed that the flowers stopped growing. The beaver thinks it is bad manners to present little flowers. So he decided to come up with some solutions. There are m days left to the birthday. The height of the i-th flower (assume that the flowers in the row are numbered from 1 to n from left to right) is equal to ai at the moment. At each of the remaining m days the beaver can take a special watering and water w contiguous flowers (he can do that only once at a day). At that each watered flower grows by one height unit on that day. The beaver wants the height of the smallest flower be as large as possible in the end. What maximum height of the smallest flower can he get? The first line contains space-separated integers n, m and w (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89w xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The second line contains space-separated integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print a single integer -- the maximum final height of the smallest flower. In the first sample beaver can water the last 3 flowers at the first day. On the next day he may not to water flowers at all. In the end he will get the following heights: [2, 2, 2, 3, 2, 2]. The smallest flower has height equal to 2. It's impossible to get height 3 in this test."...

Tutorials

13465

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
12272843 jiangyx C July 30, 2015, 7:45 a.m. OK FPC TESTS 43 46 819200 1900
58204677 luogu_bot1 C Aug. 3, 2019, 6:24 a.m. OK FPC TESTS 43 46 819200 1900
20790772 nguyenvu9405 C Sept. 21, 2016, 8:59 a.m. OK FPC TESTS 43 46 2457600 1900
14811129 hdt C Dec. 15, 2015, 5:47 a.m. OK FPC TESTS 43 46 3584000 1900
58204903 vjudge4 C Aug. 3, 2019, 6:30 a.m. OK FPC TESTS 43 61 819200 1900
45439805 Lost_Deviation C Nov. 8, 2018, 10:28 a.m. OK FPC TESTS 43 62 1638400 1900
45402733 vjudge2 C Nov. 7, 2018, 9:37 a.m. OK FPC TESTS 43 62 4812800 1900
45402726 gdfzpsz C Nov. 7, 2018, 9:36 a.m. OK FPC TESTS 43 62 4812800 1900
30313638 TShT C Sept. 13, 2017, 5:58 p.m. OK FPC TESTS 43 77 24064000 1900
30379177 HsOH C Sept. 16, 2017, 8:32 a.m. OK FPC TESTS 43 78 4915200 1900
12436480 vjudge3 C Aug. 10, 2015, 9:49 a.m. OK GNU C TESTS 43 31 819200 1900
21228400 Silencesky C Oct. 6, 2016, 7:21 a.m. OK GNU C++ TESTS 43 15 819200 1900
23334777 yah01 C Dec. 26, 2016, 7:31 a.m. OK GNU C++ TESTS 43 15 2867200 1900
26122874 Herrwerner C April 4, 2017, 1:16 p.m. OK GNU C++ TESTS 43 30 3481600 1900
12432819 vjudge2 C Aug. 10, 2015, 5:57 a.m. OK GNU C++ TESTS 43 31 614400 1900
21771336 vjudge1 C Oct. 25, 2016, 12:57 p.m. OK GNU C++ TESTS 43 31 614400 1900
20675953 stefansav C Sept. 17, 2016, 8:05 a.m. OK GNU C++ TESTS 43 31 614400 1900
13345403 PlayfulPanda C Oct. 2, 2015, 3:06 p.m. OK GNU C++ TESTS 43 31 614400 1900
13927226 130705009 C Oct. 29, 2015, 5:32 a.m. OK GNU C++ TESTS 43 31 716800 1900
40988093 ReaLNero1 C July 30, 2018, 9:44 p.m. OK GNU C++ TESTS 43 31 819200 1900
31010018 vjudge4 C Oct. 5, 2017, 6:41 a.m. OK GNU C++ TESTS 43 31 819200 1900
57909477 rainboy C July 28, 2019, 7:15 p.m. OK GNU C11 TESTS 43 46 819200 1900
12330528 merolish C Aug. 3, 2015, 8:20 p.m. OK GNU C11 TESTS 43 46 819200 1900
34939919 prince_of_crows C Feb. 5, 2018, 9:43 a.m. OK GNU C11 TESTS 43 1153 7065600 1900
30620720 hpkt.pkt C Sept. 22, 2017, 4:41 p.m. OK GNU C++11 TESTS 43 15 819200 1900
16729402 luras_oil2 C March 15, 2016, 3 p.m. OK GNU C++11 TESTS 43 31 614400 1900
16729378 luras_oil2 C March 15, 2016, 2:59 p.m. OK GNU C++11 TESTS 43 31 614400 1900
12585098 vjudge1 C Aug. 18, 2015, 7:07 a.m. OK GNU C++11 TESTS 43 31 614400 1900
17288506 windrises C April 12, 2016, 10:51 a.m. OK GNU C++11 TESTS 43 31 614400 1900
50787945 luogu_bot4 C March 4, 2019, 2:13 p.m. OK GNU C++11 TESTS 43 31 614400 1900
61610733 luogu_bot5 C Oct. 1, 2019, 2:03 p.m. OK GNU C++11 TESTS 43 31 819200 1900
64551314 vjudge4 C Nov. 8, 2019, 11:37 p.m. OK GNU C++11 TESTS 43 31 819200 1900
57932678 Haworthia C July 29, 2019, 9:18 a.m. OK GNU C++11 TESTS 43 31 819200 1900
45083721 vjudge3 C Oct. 30, 2018, 5:41 a.m. OK GNU C++11 TESTS 43 31 819200 1900
52901736 lzq41 C April 17, 2019, 11:20 a.m. OK GNU C++14 TESTS 43 46 819200 1900
58045401 vjudge2 C July 30, 2019, 10:47 p.m. OK GNU C++14 TESTS 43 46 819200 1900
52890726 lzq41 C April 17, 2019, 7:43 a.m. OK GNU C++14 TESTS 43 46 819200 1900
32128036 Kurusaki C Nov. 7, 2017, 6:29 p.m. OK GNU C++14 TESTS 43 46 819200 1900
64881660 vjudge4 C Nov. 14, 2019, 11:49 a.m. OK GNU C++14 TESTS 43 46 819200 1900
61083239 Abukhadijah C Sept. 22, 2019, 5:14 p.m. OK GNU C++14 TESTS 43 46 819200 1900
58360853 gabrielcrds C Aug. 6, 2019, 12:17 a.m. OK GNU C++14 TESTS 43 46 819200 1900
57182772 daminisherathiya C July 17, 2019, 7:48 a.m. OK GNU C++14 TESTS 43 46 819200 1900
53689833 Theofratus C May 3, 2019, 3:56 a.m. OK GNU C++14 TESTS 43 46 819200 1900
52901918 lzq41 C April 17, 2019, 11:24 a.m. OK GNU C++14 TESTS 43 46 819200 1900
56884614 SZYlindow C July 12, 2019, 12:03 p.m. OK GNU C++17 TESTS 43 46 819200 1900
65325180 JonathanR C Nov. 19, 2019, 12:01 a.m. OK GNU C++17 TESTS 43 46 819200 1900
64460310 zzq233 C Nov. 7, 2019, 10:07 a.m. OK GNU C++17 TESTS 43 46 819200 1900
56952659 vjudge2 C July 13, 2019, 2:54 a.m. OK GNU C++17 TESTS 43 46 819200 1900
56926253 vjudge2 C July 12, 2019, 4:05 p.m. OK GNU C++17 TESTS 43 46 819200 1900
51558647 bugdog C March 20, 2019, 6:53 a.m. OK GNU C++17 TESTS 43 46 819200 1900
51481411 bugdog C March 19, 2019, 11:45 a.m. OK GNU C++17 TESTS 43 46 819200 1900
45586157 KobeDuu_ C Nov. 12, 2018, 8:54 a.m. OK GNU C++17 TESTS 43 46 1024000 1900
45582133 KobeDuu_ C Nov. 12, 2018, 5:44 a.m. OK GNU C++17 TESTS 43 46 1228800 1900
54763458 Baroudy C May 28, 2019, 4:27 p.m. OK GNU C++17 TESTS 43 46 1228800 1900
13106028 Martynas C Sept. 19, 2015, 6:12 p.m. OK Go TESTS 43 46 0 1900
12718734 Phuepe C Aug. 27, 2015, 11:24 a.m. OK Java 7 TESTS 43 108 0 1900
14339050 DukeOfYork C Nov. 19, 2015, 8:53 a.m. OK Java 7 TESTS 43 124 0 1900
13230338 suigingin C Sept. 26, 2015, 9:30 a.m. OK Java 7 TESTS 43 124 0 1900
12735761 dvasquez C Aug. 28, 2015, 8:08 p.m. OK Java 7 TESTS 43 140 3379200 1900
11829089 umnasalah C June 28, 2015, 9:56 p.m. OK Java 7 TESTS 43 155 3276800 1900
15405748 suigingin C Jan. 16, 2016, 3:41 p.m. OK Java 7 TESTS 43 171 0 1900
11955718 Footman C July 7, 2015, 4:24 a.m. OK Java 7 TESTS 43 171 512000 1900
12318754 dmaarek C Aug. 2, 2015, 9:52 p.m. OK Java 7 TESTS 43 171 2867200 1900
12320231 idrinkink C Aug. 3, 2015, 2:55 a.m. OK Java 7 TESTS 43 171 3379200 1900
18243939 frktry C June 4, 2016, 1:04 p.m. OK Java 7 TESTS 43 171 45056000 1900
56071123 prakhar897 C June 26, 2019, 10:31 a.m. OK Java 8 TESTS 43 140 0 1900
58684937 Washoum C Aug. 12, 2019, 9:46 p.m. OK Java 8 TESTS 43 140 2048000 1900
30203263 MostafaAbdullah C Sept. 8, 2017, 1:27 p.m. OK Java 8 TESTS 43 140 3072000 1900
60890997 ISSAM_LAKOUAM C Sept. 19, 2019, 5:04 p.m. OK Java 8 TESTS 43 155 0 1900
53885954 Ahmed.Shawky C May 8, 2019, 6:10 p.m. OK Java 8 TESTS 43 155 0 1900
13338240 Nirmit C Oct. 2, 2015, 4 a.m. OK Java 8 TESTS 43 155 0 1900
12582573 Abkreno94 C Aug. 18, 2015, 1:43 a.m. OK Java 8 TESTS 43 155 0 1900
68934685 sunnycarlos C Jan. 16, 2020, 12:26 p.m. OK Java 8 TESTS 43 155 2048000 1900
67618465 adarsh000321 C Dec. 25, 2019, 5:44 p.m. OK Java 8 TESTS 43 155 2048000 1900
48888944 Hoda_Hisham C Jan. 24, 2019, 1:23 p.m. OK Java 8 TESTS 43 155 2867200 1900
57791518 SergeySh C July 26, 2019, 9:37 a.m. OK JavaScript TESTS 43 93 14643200 1900
19174061 dzeranov1995 C July 16, 2016, 1:22 p.m. OK MS C# TESTS 43 93 24576000 1900
17799254 tourist_hui_blya C May 7, 2016, 8:25 p.m. OK MS C# TESTS 43 93 44339200 1900
16662203 tourist_hui_blya C March 11, 2016, 10:22 p.m. OK MS C# TESTS 43 108 36454400 1900
13577871 Mem C Oct. 12, 2015, 3:54 p.m. OK MS C# TESTS 43 109 37171200 1900
16725520 Mem C March 15, 2016, 10:05 a.m. OK MS C# TESTS 43 186 31436800 1900
15605503 Q_Qhy C Jan. 27, 2016, 5:32 a.m. OK MS C++ TESTS 43 31 819200 1900
11763210 help.me.2000 C June 25, 2015, 4:24 p.m. OK MS C++ TESTS 43 31 819200 1900
56870929 vjudge1 C July 12, 2019, 6:22 a.m. OK MS C++ TESTS 43 46 819200 1900
19139474 vjudge1 C July 15, 2016, 1:59 a.m. OK MS C++ TESTS 43 46 819200 1900
19139461 hxttke C July 15, 2016, 1:58 a.m. OK MS C++ TESTS 43 46 819200 1900
45402138 vjudge1 C Nov. 7, 2018, 9:13 a.m. OK MS C++ TESTS 43 46 1024000 1900
45174267 vjudge5 C Nov. 1, 2018, 2:01 p.m. OK MS C++ TESTS 43 46 1024000 1900
44602567 vjudge1 C Oct. 20, 2018, 3:11 p.m. OK MS C++ TESTS 43 46 1024000 1900
58218708 vjudge1 C Aug. 3, 2019, 11:45 a.m. OK MS C++ TESTS 43 46 1228800 1900
58203951 vjudge4 C Aug. 3, 2019, 6:04 a.m. OK MS C++ TESTS 43 46 1228800 1900
58198686 Icookie C Aug. 3, 2019, 2:38 a.m. OK MS C++ 2017 TESTS 43 62 3174400 1900
58203996 vjudge3 C Aug. 3, 2019, 6:05 a.m. OK MS C++ 2017 TESTS 43 62 7987200 1900
58093756 yorky C July 31, 2019, 6:42 p.m. OK MS C++ 2017 TESTS 43 155 2457600 1900
65249095 vsulovyev C Nov. 17, 2019, 11:28 a.m. OK MS C++ 2017 TESTS 43 171 3072000 1900
44560785 hongquanntct C Oct. 19, 2018, 7:29 p.m. OK PHP TESTS 43 716 16384000 1900
40248606 homoeconomicus C July 13, 2018, 3:59 a.m. OK PyPy 3 TESTS 43 265 18329600 1900
38201822 dimi_dot_com C May 13, 2018, 10:08 p.m. OK PyPy 3 TESTS 43 296 43110400 1900
69940181 AnkushSharma C Feb. 1, 2020, 5:52 a.m. OK PyPy 3 TESTS 43 327 15462400 1900
11171315 minimario C May 20, 2015, 1:50 a.m. OK PyPy 3 TESTS 43 342 14336000 1900
11329399 dr.ikros C May 28, 2015, 7:10 a.m. OK PyPy 3 TESTS 43 483 17408000 1900
68700086 Firepaw C Jan. 13, 2020, 9:10 a.m. OK PyPy 3 TESTS 43 483 18534400 1900
35873879 ______u______ C March 3, 2018, 7:40 a.m. OK Python 2 TESTS 43 1543 10240000 1900
35873597 ______n______ C March 3, 2018, 7:34 a.m. OK Python 2 TESTS 43 1543 10240000 1900
35873043 _____k_____ C March 3, 2018, 7:22 a.m. OK Python 2 TESTS 43 1543 10240000 1900
35872942 _____i_____ C March 3, 2018, 7:21 a.m. OK Python 2 TESTS 43 1543 10240000 1900
35863919 ______k______ C March 2, 2018, 10:57 p.m. OK Python 2 TESTS 43 1543 10240000 1900
35863901 ______h______ C March 2, 2018, 10:57 p.m. OK Python 2 TESTS 43 1543 10240000 1900
35863417 ______i______ C March 2, 2018, 10:46 p.m. OK Python 2 TESTS 43 1543 10240000 1900
35861911 ______M______ C March 2, 2018, 10:14 p.m. OK Python 2 TESTS 43 1543 10240000 1900
42135652 Mk_Python_v1 C Aug. 26, 2018, 11:29 p.m. OK Python 3 TESTS 43 1450 8806400 1900
11616667 YuVD C June 17, 2015, 8:32 a.m. OK Python 3 TESTS 43 1482 9216000 1900

remove filters

Back to search problems