Codeforces Round 366 (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
704 Codeforces Round 366 (Div. 1) FINISHED False 7200 261244499 Aug. 7, 2016, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9340 ) A Thor PROGRAMMING brute force data structures implementation 1600

B"Thor is getting used to the Earth. As a gift Loki gave him a smartphone. There are n applications on this phone. Thor is fascinated by this phone. He has only one minor issue: he can't count the number of unread notifications generated by those applications (maybe Loki put a curse on it so he can't). q events are about to happen (in chronological order). They are of three types: Please help Thor and tell him the number of unread notifications after each event. You may assume that initially there are no notifications in the phone. The first line of input contains two integers n and q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300 xe2 x80 x89000) -- the number of applications and the number of events to happen. The next q lines contain the events. The i-th of these lines starts with an integer typei -- type of the i-th event. If typei xe2 x80 x89= xe2 x80 x891 or typei xe2 x80 x89= xe2 x80 x892 then it is followed by an integer xi. Otherwise it is followed by an integer ti (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89typei xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q). Print the number of unread notifications after each event. In the first sample: In the second sample test: "...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
19728417 sharepoLOVEDDD A Aug. 8, 2016, 12:48 p.m. OK FPC TESTS 99 561 9216000 1600
19957304 k2nt A Aug. 19, 2016, 4:47 a.m. OK FPC TESTS 99 577 7577600 1600
19712083 Sanja A Aug. 7, 2016, 6:12 p.m. OK FPC TESTS 99 624 10137600 1600
19694658 hvcuong98 A Aug. 7, 2016, 2:27 p.m. OK FPC TESTS 99 716 6451200 1600
19722050 GreymaneSilverfang A Aug. 8, 2016, 6:56 a.m. OK FPC TESTS 99 732 7782400 1600
38582197 chaorenhaha A May 24, 2018, 9:46 a.m. OK FPC TESTS 99 748 16076800 1600
19721599 lkmcfj A Aug. 8, 2016, 6:31 a.m. OK FPC TESTS 99 794 5222400 1600
22175678 bzh A Nov. 12, 2016, 10:09 a.m. OK FPC TESTS 99 857 6041600 1600
22175521 bzh A Nov. 12, 2016, 9:57 a.m. OK FPC TESTS 99 857 6041600 1600
20211998 unnamed_04 A Aug. 28, 2016, 1:07 p.m. OK FPC TESTS 99 889 9728000 1600
20034579 fishybestgirl A Aug. 21, 2016, 8:39 p.m. OK GNU C TESTS 99 171 5529600 1600
26447455 Sungmin A April 17, 2017, 6:39 a.m. OK GNU C TESTS 99 171 7884800 1600
19938574 liangjs A Aug. 18, 2016, 2:58 a.m. OK GNU C TESTS 99 171 12697600 1600
20034672 fishybestgirl A Aug. 21, 2016, 8:48 p.m. OK GNU C TESTS 99 187 5529600 1600
19885927 dsmt1 A Aug. 15, 2016, 10:46 a.m. OK GNU C TESTS 99 187 5529600 1600
19694435 Semarapura A Aug. 7, 2016, 2:26 p.m. OK GNU C TESTS 99 217 13619200 1600
42261563 Scut82 A Aug. 30, 2018, 3:41 a.m. OK GNU C++ TESTS 99 46 3993600 1600
19711348 Lalatina A Aug. 7, 2016, 5:50 p.m. OK GNU C++ TESTS 99 46 10342400 1600
42302351 Scut82 A Aug. 31, 2018, 8:41 a.m. OK GNU C++ TESTS 99 61 3686400 1600
42237630 Scut82 A Aug. 29, 2018, 10:42 a.m. OK GNU C++ TESTS 99 61 3993600 1600
42237622 Scut82 A Aug. 29, 2018, 10:42 a.m. OK GNU C++ TESTS 99 61 3993600 1600
38883880 Scut82 A June 2, 2018, 10:42 a.m. OK GNU C++ TESTS 99 77 10752000 1600
27945569 yasugongshang A June 21, 2017, 12:20 p.m. OK GNU C++ TESTS 99 78 162406400 1600
25497300 T123CK A March 15, 2017, 12:07 p.m. OK GNU C++ TESTS 99 93 7065600 1600
19718290 levili A Aug. 8, 2016, 2:19 a.m. OK GNU C++ TESTS 99 109 5734400 1600
28951870 Scut82 A July 28, 2017, 11:43 a.m. OK GNU C++ TESTS 99 109 6144000 1600
40154395 fishybestgirl A July 10, 2018, 1:40 a.m. OK GNU C11 TESTS 99 1404 3584000 1600
19915152 sicon54 A Aug. 16, 2016, 8:20 p.m. OK GNU C++11 TESTS 99 46 5734400 1600
19712457 __math A Aug. 7, 2016, 6:25 p.m. OK GNU C++11 TESTS 99 46 7577600 1600
20088650 chenhuan001 A Aug. 23, 2016, 3:13 p.m. OK GNU C++11 TESTS 99 46 15360000 1600
40983914 ReaLNero1 A July 30, 2018, 7:06 p.m. OK GNU C++11 TESTS 99 62 5529600 1600
19718730 Tornad0 A Aug. 8, 2016, 2:47 a.m. OK GNU C++11 TESTS 99 77 9523200 1600
61198994 nealchen A Sept. 24, 2019, 6:55 a.m. OK GNU C++11 TESTS 99 78 4608000 1600
19694505 JewRaper A Aug. 7, 2016, 2:26 p.m. OK GNU C++11 TESTS 99 78 10444800 1600
27945232 zykzhenshuai A June 21, 2017, 12:03 p.m. OK GNU C++11 TESTS 99 78 162406400 1600
63540602 ztx A Oct. 27, 2019, 9:12 a.m. OK GNU C++11 TESTS 99 93 3891200 1600
25497245 HPLY A March 15, 2017, 12:04 p.m. OK GNU C++11 TESTS 99 93 7065600 1600
25581711 platypus179 A March 17, 2017, 6:51 p.m. OK GNU C++14 TESTS 99 124 40140800 1600
67672858 animeFORever A Dec. 26, 2019, 9:50 p.m. OK GNU C++14 TESTS 99 155 5222400 1600
50824331 islammohsen A March 5, 2019, 2:56 p.m. OK GNU C++14 TESTS 99 170 5120000 1600
26959840 avoidcloud A May 8, 2017, 3:32 p.m. OK GNU C++14 TESTS 99 171 3584000 1600
63235791 vjudge5 A Oct. 23, 2019, 12:14 p.m. OK GNU C++14 TESTS 99 171 3584000 1600
61846417 vjudge4 A Oct. 4, 2019, 11:27 a.m. OK GNU C++14 TESTS 99 171 3891200 1600
49455298 pvannvuILQD A Feb. 4, 2019, 9:53 a.m. OK GNU C++14 TESTS 99 171 4812800 1600
26142296 vjudge2 A April 5, 2017, 12:05 p.m. OK GNU C++14 TESTS 99 171 5529600 1600
63413831 vjudge5 A Oct. 26, 2019, 2:50 a.m. OK GNU C++14 TESTS 99 171 6246400 1600
67672806 animeFORever A Dec. 26, 2019, 9:48 p.m. OK GNU C++14 TESTS 99 171 6348800 1600
57301296 modric19 A July 18, 2019, 11:54 p.m. OK GNU C++17 TESTS 99 155 5120000 1600
54807721 codacoda A May 29, 2019, 3:05 p.m. OK GNU C++17 TESTS 99 156 6758400 1600
62067369 vjudge3 A Oct. 7, 2019, 3:39 p.m. OK GNU C++17 TESTS 99 171 3584000 1600
61767613 vjudge1 A Oct. 3, 2019, 9:07 a.m. OK GNU C++17 TESTS 99 171 3584000 1600
61826189 vjudge2 A Oct. 4, 2019, 4:52 a.m. OK GNU C++17 TESTS 99 171 3891200 1600
52135347 JonathanR A April 1, 2019, 1:53 a.m. OK GNU C++17 TESTS 99 171 5120000 1600
53476232 Titan A April 28, 2019, 3:45 p.m. OK GNU C++17 TESTS 99 171 5632000 1600
61221639 vjudge4 A Sept. 24, 2019, 2:05 p.m. OK GNU C++17 TESTS 99 171 6041600 1600
66212374 SinnerMan A Dec. 3, 2019, 7:25 a.m. OK GNU C++17 TESTS 99 187 5120000 1600
61254619 vjudge2 A Sept. 25, 2019, 9:35 a.m. OK GNU C++17 TESTS 99 187 5529600 1600
20363088 artyom.fedosov A Sept. 3, 2016, 1:56 p.m. OK Go TESTS 99 202 40448000 1600
31972416 coderbond007 A Nov. 2, 2017, 8:39 a.m. OK Java 8 TESTS 99 202 0 1600
55649747 thonguyen1204 A June 16, 2019, 1:59 p.m. OK Java 8 TESTS 99 202 8806400 1600
19721756 Amman20 A Aug. 8, 2016, 6:40 a.m. OK Java 8 TESTS 99 202 20582400 1600
40726355 prabhat236218 A July 25, 2018, 5:09 a.m. OK Java 8 TESTS 99 218 50380800 1600
19694281 Sumeet.Varma A Aug. 7, 2016, 2:25 p.m. OK Java 8 TESTS 99 264 20582400 1600
38112731 micf A May 11, 2018, 11:37 a.m. OK Java 8 TESTS 99 265 20787200 1600
19841568 hiukim A Aug. 13, 2016, 4:50 a.m. OK Java 8 TESTS 99 280 20480000 1600
19729035 ramil.agger A Aug. 8, 2016, 1:19 p.m. OK Java 8 TESTS 99 280 20582400 1600
19818935 JialinOuyang A Aug. 12, 2016, 4:33 a.m. OK Java 8 TESTS 99 280 26726400 1600
24232014 kunal_khatri A Jan. 28, 2017, 6:06 p.m. OK Java 8 TESTS 99 280 37990400 1600
19713971 leonidvasilyev A Aug. 7, 2016, 7:39 p.m. OK JavaScript TESTS 99 842 62668800 1600
20979800 niquefa_diego A Sept. 28, 2016, 9:57 p.m. OK Kotlin TESTS 99 951 39526400 1600
51292608 nemars A March 14, 2019, 11:12 a.m. OK Mono C# TESTS 99 1996 12390400 1600
21976051 og.kostya A Nov. 1, 2016, 6:38 p.m. OK MS C# TESTS 99 171 7987200 1600
19715523 AnatolyTolstobrov A Aug. 7, 2016, 9:34 p.m. OK MS C# TESTS 99 202 36044800 1600
19690874 azukun A Aug. 7, 2016, 2:13 p.m. OK MS C# TESTS 99 374 25702400 1600
21213687 coolsanderslin A Oct. 5, 2016, 3:47 p.m. OK MS C# TESTS 99 436 19865600 1600
19738698 polphit A Aug. 9, 2016, 2:03 a.m. OK MS C# TESTS 99 1575 20889600 1600
23687741 m1_k3 A Jan. 10, 2017, 8:47 p.m. OK MS C# TESTS 99 1871 58368000 1600
23687682 m1_k3 A Jan. 10, 2017, 8:40 p.m. OK MS C# TESTS 99 1903 43827200 1600
20946529 Chubcheg A Sept. 27, 2016, 1:05 p.m. OK MS C# TESTS 99 1965 35020800 1600
19697929 Mushegh A Aug. 7, 2016, 2:44 p.m. OK MS C++ TESTS 99 156 7782400 1600
19878070 yunzhitan A Aug. 15, 2016, 12:52 a.m. OK MS C++ TESTS 99 156 7884800 1600
19693591 TonySnark A Aug. 7, 2016, 2:22 p.m. OK MS C++ TESTS 99 171 5939200 1600
19699834 Eugen A Aug. 7, 2016, 2:56 p.m. OK MS C++ TESTS 99 171 9113600 1600
19713956 Vedensky A Aug. 7, 2016, 7:39 p.m. OK MS C++ TESTS 99 171 10547200 1600
63268330 vjudge4 A Oct. 24, 2019, 2:11 a.m. OK MS C++ TESTS 99 186 4710400 1600
19692298 axp A Aug. 7, 2016, 2:17 p.m. OK MS C++ TESTS 99 186 5632000 1600
20304319 ALWAYSWANNAFLY A Aug. 31, 2016, 1:32 p.m. OK MS C++ TESTS 99 186 5734400 1600
63246656 vjudge5 A Oct. 23, 2019, 2:50 p.m. OK MS C++ TESTS 99 187 10649600 1600
20445654 Robka A Sept. 7, 2016, 8:35 p.m. OK MS C++ TESTS 99 202 5836800 1600
63242167 mirack A Oct. 23, 2019, 1:44 p.m. OK MS C++ 2017 TESTS 99 217 3584000 1600
62567925 CtrlAlt A Oct. 14, 2019, 1:42 p.m. OK MS C++ 2017 TESTS 99 234 7372800 1600
56434852 petko_mitkov A July 2, 2019, 1:40 p.m. OK MS C++ 2017 TESTS 99 311 29286400 1600
57989198 Spiritum A July 30, 2019, 12:34 p.m. OK MS C++ 2017 TESTS 99 623 16896000 1600
63239506 CGD_sk8 A Oct. 23, 2019, 1:06 p.m. OK MS C++ 2017 TESTS 99 655 24985600 1600
63249458 vjudge4 A Oct. 23, 2019, 3:35 p.m. OK MS C++ 2017 TESTS 99 1544 4812800 1600
66258796 yuanyuan2048 A Dec. 4, 2019, 7:26 a.m. OK MS C++ 2017 TESTS 99 1606 9625600 1600
63233521 MisakiMikoto A Oct. 23, 2019, 11:40 a.m. OK MS C++ 2017 TESTS 99 1621 6041600 1600
63249380 mirack A Oct. 23, 2019, 3:33 p.m. OK MS C++ 2017 TESTS 99 1637 5120000 1600
63303827 vjudge1 A Oct. 24, 2019, 3:01 p.m. OK MS C++ 2017 TESTS 99 1653 6656000 1600
38006208 wolffd A May 7, 2018, 7:59 p.m. OK PyPy 2 TESTS 99 1029 49766400 1600
19845333 poikniok A Aug. 13, 2016, 8:16 a.m. OK PyPy 2 TESTS 99 1185 96870400 1600
66138321 Mohamed_Ayman A Dec. 1, 2019, 1:14 p.m. OK PyPy 3 TESTS 99 872 73523200 1600
19845350 poikniok A Aug. 13, 2016, 8:18 a.m. OK Python 2 TESTS 99 1201 82944000 1600
19868900 kotori A Aug. 14, 2016, 12:57 p.m. OK Python 2 TESTS 99 1232 28160000 1600
34538985 laoliumang A Jan. 25, 2018, 7:35 a.m. OK Python 2 TESTS 99 1263 43110400 1600
20029831 formicae A Aug. 21, 2016, 3:31 p.m. OK Python 2 TESTS 99 1294 54067200 1600
34538457 laoliumang A Jan. 25, 2018, 7:15 a.m. OK Python 2 TESTS 99 1310 43110400 1600
20190505 formicae A Aug. 27, 2016, 7:57 a.m. OK Python 2 TESTS 99 1419 43008000 1600
20029849 formicae A Aug. 21, 2016, 3:32 p.m. OK Python 2 TESTS 99 1419 43110400 1600
19732584 osev A Aug. 8, 2016, 4:20 p.m. OK Python 2 TESTS 99 1481 50380800 1600
40302769 khaimy239 A July 14, 2018, 3:29 a.m. OK Python 2 TESTS 99 1528 17920000 1600
19766920 RElectra A Aug. 10, 2016, 1:57 p.m. OK Python 2 TESTS 99 1668 66150400 1600
48671805 toysheeyeyraku A Jan. 21, 2019, 10:39 a.m. OK Python 3 TESTS 99 1060 54067200 1600
19761206 orailly A Aug. 10, 2016, 8:07 a.m. OK Python 3 TESTS 99 1153 34713600 1600
64501273 qbao_asdasd A Nov. 8, 2019, 4:22 a.m. OK Python 3 TESTS 99 1154 104550400 1600
46757731 eaglewarrior A Dec. 8, 2018, 12:31 p.m. OK Python 3 TESTS 99 1169 103833600 1600
64501325 qbao_asdasd A Nov. 8, 2019, 4:23 a.m. OK Python 3 TESTS 99 1201 31539200 1600
46854498 eaglewarrior A Dec. 10, 2018, 2:01 p.m. OK Python 3 TESTS 99 1232 77516800 1600
46757864 eaglewarrior A Dec. 8, 2018, 12:34 p.m. OK Python 3 TESTS 99 1248 77004800 1600
46757808 eaglewarrior A Dec. 8, 2018, 12:33 p.m. OK Python 3 TESTS 99 1278 104550400 1600
48670203 toysheeyeyraku A Jan. 21, 2019, 10:26 a.m. OK Python 3 TESTS 99 1310 53555200 1600
63124243 kumargaurav A Oct. 22, 2019, 12:20 p.m. OK Python 3 TESTS 99 1326 59699200 1600
19924529 Hankai A Aug. 17, 2016, 10:17 a.m. OK Ruby TESTS 99 1419 100556800 1600
19846007 psd113 A Aug. 13, 2016, 8:50 a.m. OK Ruby TESTS 99 1466 11673600 1600
19757683 belovedeagle A Aug. 10, 2016, 3:25 a.m. OK Rust TESTS 99 811 8294400 1600
19800479 limed A Aug. 11, 2016, 5:27 p.m. OK Scala TESTS 99 592 55808000 1600
21767022 reldan A Oct. 25, 2016, 9 a.m. OK Scala TESTS 99 1934 91340800 1600

remove filters

Back to search problems