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 |
---|---|---|---|---|---|---|
896 | Codeforces Round 449 (Div. 1) | FINISHED | False | 8100 | 225302124 | Dec. 2, 2017, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2188 ) | E | Welcome home, Chtholly | PROGRAMMING | data structures ds | 3100 |
B' -- I... I survived. -- Welcome home, Chtholly. -- I kept my promise... -- I made it... I really made it! After several days of fighting, Chtholly Nota Seniorious miraculously returned from the fierce battle. As promised, Willem is now baking butter cake for her. However, although Willem is skilled in making dessert, he rarely bakes butter cake. This time, Willem made a big mistake -- he accidentally broke the oven! Fortunately, Chtholly decided to help him. Willem puts n cakes on a roll, cakes are numbered from 1 to n, the i-th cake needs ai seconds of baking. Willem needs Chtholly to do m operations to bake the cakes. Operation 1: 1 l r x Willem asks Chtholly to check each cake in the range [l, xe2 x80 x89r], if the cake needs to be baked for more than x seconds, he would bake it for x seconds and put it back in its place. More precisely, for every i in range [l, xe2 x80 x89r], if ai is strictly more than x, ai becomes equal ai xe2 x80 x89- xe2 x80 x89x. Operation 2: 2 l r x Willem asks Chtholly to count the number of cakes in the range [l, xe2 x80 x89r] that needs to be cooked for exactly x seconds. More formally you should find number of such i in range [l, xe2 x80 x89r], that ai xe2 x80 x89= xe2 x80 x89x. The first line contains two integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The second line contains n integers, i-th of them is ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The next m lines are the m operations described above. It is guaranteed that 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n and 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105. For each operation of the second type, print the answer. '... |
Codeforces Round #449 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
42225313 | yzh666 | E | Aug. 29, 2018, 1:53 a.m. | OK | GNU C++ | TESTS | 41 | 545 | 88166400 | 3100 | |
42225298 | yzh666 | E | Aug. 29, 2018, 1:52 a.m. | OK | GNU C++ | TESTS | 41 | 577 | 88166400 | 3100 | |
32920862 | Chtholly_Nota_Seniorious | E | Dec. 4, 2017, 12:42 p.m. | OK | GNU C++ | TESTS | 41 | 607 | 90214400 | 3100 | |
41397292 | yzh666 | E | Aug. 9, 2018, 11:48 a.m. | OK | GNU C++ | TESTS | 41 | 623 | 88166400 | 3100 | |
36250719 | vjudge3 | E | March 13, 2018, 1:39 p.m. | OK | GNU C++ | TESTS | 41 | 623 | 129740800 | 3100 | |
34301761 | Worldwide_D | E | Jan. 19, 2018, 12:18 p.m. | OK | GNU C++ | TESTS | 41 | 639 | 129740800 | 3100 | |
40171831 | vjudge2 | E | July 10, 2018, 12:51 p.m. | OK | GNU C++ | TESTS | 41 | 639 | 165068800 | 3100 | |
34294690 | robinliu | E | Jan. 19, 2018, 7:08 a.m. | OK | GNU C++ | TESTS | 41 | 654 | 90214400 | 3100 | |
34288342 | beginend | E | Jan. 19, 2018, 12:55 a.m. | OK | GNU C++ | TESTS | 41 | 670 | 134348800 | 3100 | |
38945897 | luogu_bot5 | E | June 4, 2018, 1:25 p.m. | OK | GNU C++ | TESTS | 41 | 670 | 136499200 | 3100 | |
68714877 | EFDD | E | Jan. 13, 2020, 2:08 p.m. | OK | GNU C++11 | TESTS | 41 | 405 | 7987200 | 3100 | |
46802069 | yzh666 | E | Dec. 9, 2018, 10:11 a.m. | OK | GNU C++11 | TESTS | 41 | 405 | 88166400 | 3100 | |
68714842 | EFDD | E | Jan. 13, 2020, 2:07 p.m. | OK | GNU C++11 | TESTS | 41 | 420 | 7987200 | 3100 | |
68714341 | luogu_bot3 | E | Jan. 13, 2020, 1:58 p.m. | OK | GNU C++11 | TESTS | 41 | 421 | 7987200 | 3100 | |
68714802 | EFDD | E | Jan. 13, 2020, 2:06 p.m. | OK | GNU C++11 | TESTS | 41 | 436 | 7987200 | 3100 | |
60512547 | nealchen | E | Sept. 14, 2019, 4:13 a.m. | OK | GNU C++11 | TESTS | 41 | 436 | 242483200 | 3100 | |
60512652 | nealchen | E | Sept. 14, 2019, 4:18 a.m. | OK | GNU C++11 | TESTS | 41 | 451 | 242483200 | 3100 | |
45787564 | mts_246 | E | Nov. 16, 2018, 3:38 a.m. | OK | GNU C++11 | TESTS | 41 | 452 | 131481600 | 3100 | |
60512568 | nealchen | E | Sept. 14, 2019, 4:14 a.m. | OK | GNU C++11 | TESTS | 41 | 452 | 242483200 | 3100 | |
68960850 | Shiina_Mashiro19 | E | Jan. 17, 2020, 12:37 a.m. | OK | GNU C++11 | TESTS | 41 | 467 | 88166400 | 3100 | |
60287495 | idxcalcal | E | Sept. 9, 2019, 4:07 a.m. | OK | GNU C++14 | TESTS | 41 | 529 | 144588800 | 3100 | |
33324687 | Bassel | E | Dec. 16, 2017, 11:01 p.m. | OK | GNU C++14 | TESTS | 41 | 592 | 90009600 | 3100 | |
33004199 | eqymevega | E | Dec. 7, 2017, 3:03 p.m. | OK | GNU C++14 | TESTS | 41 | 592 | 90009600 | 3100 | |
32975592 | zy1997 | E | Dec. 6, 2017, 12:35 p.m. | OK | GNU C++14 | TESTS | 41 | 592 | 90009600 | 3100 | |
51821322 | hychyc | E | March 25, 2019, 12:11 p.m. | OK | GNU C++14 | TESTS | 41 | 592 | 202752000 | 3100 | |
50733422 | Newusers | E | March 3, 2019, 11:52 a.m. | OK | GNU C++14 | TESTS | 41 | 592 | 285388800 | 3100 | |
49664234 | 4l5n3 | E | Feb. 9, 2019, 1:43 p.m. | OK | GNU C++14 | TESTS | 41 | 608 | 337510400 | 3100 | |
44649760 | CHNJZ | E | Oct. 21, 2018, 11:11 a.m. | OK | GNU C++14 | TESTS | 41 | 623 | 259686400 | 3100 | |
38945396 | ChesterKing | E | June 4, 2018, 1:07 p.m. | OK | GNU C++14 | TESTS | 41 | 639 | 136499200 | 3100 | |
34395463 | kingsnow | E | Jan. 21, 2018, 12:23 a.m. | OK | GNU C++14 | TESTS | 41 | 670 | 84787200 | 3100 | |
59905958 | hjk1030 | E | Sept. 2, 2019, 3:22 p.m. | OK | GNU C++17 | TESTS | 41 | 514 | 138342400 | 3100 | |
52332608 | szawinis | E | April 5, 2019, 6:16 a.m. | OK | GNU C++17 | TESTS | 41 | 514 | 181350400 | 3100 | |
58898133 | Fulisike | E | Aug. 16, 2019, 8:16 a.m. | OK | GNU C++17 | TESTS | 41 | 592 | 164352000 | 3100 | |
66484903 | luogu_bot5 | E | Dec. 8, 2019, 5:48 a.m. | OK | GNU C++17 | TESTS | 41 | 654 | 324300800 | 3100 | |
66484962 | luogu_bot4 | E | Dec. 8, 2019, 5:50 a.m. | OK | GNU C++17 | TESTS | 41 | 655 | 324300800 | 3100 | |
52901556 | zhangqingqi | E | April 17, 2019, 11:16 a.m. | OK | GNU C++17 | TESTS | 41 | 764 | 418099200 | 3100 | |
60602564 | superguyjm | E | Sept. 15, 2019, 8:17 a.m. | OK | GNU C++17 | TESTS | 41 | 826 | 91750400 | 3100 | |
43439585 | Zhang_RQ | E | Sept. 26, 2018, 8:10 a.m. | OK | GNU C++17 | TESTS | 41 | 826 | 150732800 | 3100 | |
66484936 | luogu_bot1 | E | Dec. 8, 2019, 5:49 a.m. | OK | GNU C++17 | TESTS | 41 | 826 | 324300800 | 3100 | |
52901812 | zhangqingqi | E | April 17, 2019, 11:21 a.m. | OK | GNU C++17 | TESTS | 41 | 841 | 418099200 | 3100 | |
32915523 | 19891101 | E | Dec. 4, 2017, 8:13 a.m. | OK | Java 8 | TESTS | 41 | 1606 | 484659200 | 3100 | |
32915742 | 19891101 | E | Dec. 4, 2017, 8:23 a.m. | OK | Java 8 | TESTS | 41 | 1668 | 484761600 | 3100 | |
32915700 | 19891101 | E | Dec. 4, 2017, 8:21 a.m. | OK | Java 8 | TESTS | 41 | 1669 | 484761600 | 3100 | |
34040568 | tri | E | Jan. 9, 2018, 5:01 a.m. | OK | Java 8 | TESTS | 41 | 1902 | 486502400 | 3100 | |
34040584 | tri | E | Jan. 9, 2018, 5:02 a.m. | OK | Java 8 | TESTS | 41 | 1902 | 486604800 | 3100 | |
32909675 | mmaxio | E | Dec. 3, 2017, 10:54 p.m. | OK | Java 8 | TESTS | 41 | 2105 | 484966400 | 3100 | |
32909595 | mmaxio | E | Dec. 3, 2017, 10:47 p.m. | OK | Java 8 | TESTS | 41 | 2183 | 484966400 | 3100 | |
32915541 | 19891101 | E | Dec. 4, 2017, 8:14 a.m. | OK | Java 8 | TESTS | 41 | 2589 | 461004800 | 3100 | |
33600332 | LiChenKoh | E | Dec. 24, 2017, 8:02 p.m. | OK | MS C++ | TESTS | 41 | 2137 | 2457600 | 3100 | |
33600514 | LiChenKoh | E | Dec. 24, 2017, 8:17 p.m. | OK | MS C++ | TESTS | 41 | 2183 | 2457600 | 3100 | |
33600316 | LiChenKoh | E | Dec. 24, 2017, 8:01 p.m. | OK | MS C++ | TESTS | 41 | 2183 | 2457600 | 3100 | |
33599880 | LiChenKoh | E | Dec. 24, 2017, 7:25 p.m. | OK | MS C++ | TESTS | 41 | 2199 | 2457600 | 3100 |
Back to search problems