Codeforces Round 515 (Div. 3)

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
1066 Codeforces Round 515 (Div. 3) FINISHED False 7200 192468299 Oct. 12, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9709 ) C Books Queries PROGRAMMING implementation 1400

B"You have got a shelf and want to put some books on it. You are given q queries of three types: You can assume that the first book you will put can have any position (it does not matter) and queries of type 3 are always valid (it is guaranteed that the book in each such query is already placed). You can also assume that you don't put the same book on the shelf twice, so id s don't repeat in queries of first two types. Your problem is to answer all the queries of type 3 in order they appear in the input. Note that after answering the query of type 3 all the books remain on the shelf and the relative order of books does not change. If you are Python programmer, consider using PyPy instead of Python when you submit your code. The first line of the input contains one integer q ( 1 <= q <= 2 cdot 10^5 ) -- the number of queries. Then q lines follow. The i -th line contains the i -th query in format as in the problem statement. It is guaranteed that queries are always valid (for query type 3 , it is guaranteed that the book in each such query is already placed, and for other types, it is guaranteed that the book was not placed before). It is guaranteed that there is at least one query of type 3 in the input. In each query the constraint 1 <= id <= 2 cdot 10^5 is met. Print answers to queries of the type 3 in order they appear in the input. Let's take a look at the first example and let's consider queries: Let's take a look at the second example and let's consider queries: "...

Tutorials

62419

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
44261684 ruban C Oct. 13, 2018, 2:44 p.m. OK Delphi TESTS 28 109 52736000 1400
44734550 vjudge5 C Oct. 23, 2018, 12:16 p.m. OK FPC TESTS 28 390 1638400 1400
44630596 vjudge4 C Oct. 21, 2018, 8:35 a.m. OK FPC TESTS 28 404 1638400 1400
44760519 njsfdxfszx59 C Oct. 24, 2018, 6:50 a.m. OK FPC TESTS 28 405 819200 1400
45791842 nasway C Nov. 16, 2018, 7:41 a.m. OK FPC TESTS 28 405 1638400 1400
44689504 vjudge5 C Oct. 22, 2018, 11:24 a.m. OK FPC TESTS 28 405 1638400 1400
45791718 nasway C Nov. 16, 2018, 7:35 a.m. OK FPC TESTS 28 405 1638400 1400
44623154 vjudge1 C Oct. 21, 2018, 7:40 a.m. OK FPC TESTS 28 405 2048000 1400
44622457 vjudge1 C Oct. 21, 2018, 7:14 a.m. OK FPC TESTS 28 405 2457600 1400
45356190 Noone_MZA C Nov. 6, 2018, 8:32 a.m. OK FPC TESTS 28 405 2764800 1400
44629424 vjudge4 C Oct. 21, 2018, 8:29 a.m. OK FPC TESTS 28 405 3174400 1400
44261342 harlequen C Oct. 13, 2018, 2:37 p.m. OK GNU C11 TESTS 28 390 819200 1400
46029313 vjudge3 C Nov. 21, 2018, 12:53 p.m. OK GNU C11 TESTS 28 405 819200 1400
44261276 harlequen C Oct. 13, 2018, 2:36 p.m. OK GNU C11 TESTS 28 421 819200 1400
44260854 harlequen C Oct. 13, 2018, 2:24 p.m. OK GNU C11 TESTS 28 436 819200 1400
46028080 vjudge5 C Nov. 21, 2018, 12:20 p.m. OK GNU C11 TESTS 28 436 819200 1400
44553512 jdcf C Oct. 19, 2018, 4:16 p.m. OK GNU C11 TESTS 28 436 819200 1400
46161179 KogaTomoe C Nov. 24, 2018, 9:28 a.m. OK GNU C11 TESTS 28 436 1638400 1400
44223633 Eglis C Oct. 12, 2018, 6:22 p.m. OK GNU C11 TESTS 28 436 1638400 1400
44279936 falcon_9 C Oct. 14, 2018, 3:20 a.m. OK GNU C11 TESTS 28 436 3174400 1400
44232645 hallihaida C Oct. 13, 2018, 1:50 a.m. OK GNU C11 TESTS 28 436 3174400 1400
44379609 Umi C Oct. 16, 2018, 2:18 a.m. OK GNU C++11 TESTS 28 31 819200 1400
55513366 -Javelin- C June 13, 2019, 2:36 a.m. OK GNU C++11 TESTS 28 31 3276800 1400
55513344 -Javelin- csj C June 13, 2019, 2:35 a.m. OK GNU C++11 TESTS 28 31 4812800 1400
44287845 TAI_zJack1342 C Oct. 14, 2018, 8:23 a.m. OK GNU C++11 TESTS 28 46 819200 1400
44830116 qwqshq C Oct. 25, 2018, 8:03 a.m. OK GNU C++11 TESTS 28 46 819200 1400
44693758 luogu_bot5 C Oct. 22, 2018, 12:50 p.m. OK GNU C++11 TESTS 28 46 1433600 1400
44575113 M_sea C Oct. 20, 2018, 6:44 a.m. OK GNU C++11 TESTS 28 46 1638400 1400
44575205 M_sea C Oct. 20, 2018, 6:47 a.m. OK GNU C++11 TESTS 28 46 1638400 1400
44572362 Zechariah_2001 C Oct. 20, 2018, 5:28 a.m. OK GNU C++11 TESTS 28 46 1638400 1400
58065258 Frame233 C July 31, 2019, 8:43 a.m. OK GNU C++11 TESTS 28 46 3174400 1400
44321895 bluefog C Oct. 14, 2018, 2:28 p.m. OK GNU C++14 TESTS 28 77 819200 1400
53123933 SalePark C April 22, 2019, 12:51 p.m. OK GNU C++14 TESTS 28 77 2048000 1400
47553549 muskan_garg C Dec. 27, 2018, 2:27 p.m. OK GNU C++14 TESTS 28 77 2662400 1400
61584426 Liah05 C Oct. 1, 2019, 4:06 a.m. OK GNU C++14 TESTS 28 78 819200 1400
68950837 Wjexmrc C Jan. 16, 2020, 5:54 p.m. OK GNU C++14 TESTS 28 78 819200 1400
50591582 vjudge1 C Feb. 28, 2019, 7:46 a.m. OK GNU C++14 TESTS 28 78 819200 1400
49168929 enjoy_coding C Jan. 29, 2019, 5:26 p.m. OK GNU C++14 TESTS 28 78 819200 1400
44397375 ajinkya1p3 C Oct. 16, 2018, 11:26 a.m. OK GNU C++14 TESTS 28 78 819200 1400
44288945 adityasingh.1397 C Oct. 14, 2018, 8:54 a.m. OK GNU C++14 TESTS 28 78 819200 1400
44263724 mynk322.0 C Oct. 13, 2018, 3:33 p.m. OK GNU C++14 TESTS 28 78 819200 1400
67991387 sash0 C Dec. 31, 2019, 5:09 a.m. OK GNU C++17 TESTS 28 77 1843200 1400
44364933 mraron C Oct. 15, 2018, 4:11 p.m. OK GNU C++17 TESTS 28 77 5324800 1400
64651488 nirjhorJU C Nov. 10, 2019, 5:24 p.m. OK GNU C++17 TESTS 28 78 819200 1400
49962514 fdironia C Feb. 15, 2019, 6:57 p.m. OK GNU C++17 TESTS 28 78 819200 1400
52369656 chankai C April 6, 2019, 5:24 a.m. OK GNU C++17 TESTS 28 78 819200 1400
44475313 vjudge4 C Oct. 18, 2018, 8:37 a.m. OK GNU C++17 TESTS 28 78 1024000 1400
44254338 jack15 C Oct. 13, 2018, 11:45 a.m. OK GNU C++17 TESTS 28 78 1433600 1400
61407452 kostia244 C Sept. 28, 2019, 7:29 a.m. OK GNU C++17 TESTS 28 92 1638400 1400
69671279 sharrad99 C Jan. 28, 2020, 1:04 p.m. OK GNU C++17 TESTS 28 93 819200 1400
69726505 the_hyp0cr1t3 C Jan. 29, 2020, 12:26 p.m. OK GNU C++17 TESTS 28 93 819200 1400
47525202 zstu_jack C Dec. 26, 2018, 3:26 p.m. OK Go TESTS 28 249 9728000 1400
44342117 ADJA C Oct. 15, 2018, 4:31 a.m. OK Go TESTS 28 390 23142400 1400
46304467 davidguandev C Nov. 28, 2018, 9:13 a.m. OK Go TESTS 28 452 5324800 1400
44248514 Marii C Oct. 13, 2018, 9:35 a.m. OK Go TESTS 28 607 819200 1400
44458124 peter_jerry_ye C Oct. 17, 2018, 6:52 p.m. OK Haskell TESTS 28 982 75776000 1400
69900894 GiantTornado C Jan. 31, 2020, 1 p.m. OK Java 11 TESTS 28 421 37376000 1400
44218635 RahulThapliyal C Oct. 12, 2018, 4:41 p.m. OK Java 8 TESTS 28 140 0 1400
45698826 KharYusuf C Nov. 14, 2018, 6:31 a.m. OK Java 8 TESTS 28 155 0 1400
44240059 ViciousCoder C Oct. 13, 2018, 6:35 a.m. OK Java 8 TESTS 28 155 0 1400
44486804 ankur7 C Oct. 18, 2018, 12:53 p.m. OK Java 8 TESTS 28 155 12288000 1400
44267486 BiggestPrime C Oct. 13, 2018, 5:19 p.m. OK Java 8 TESTS 28 170 0 1400
51217331 rishz C March 12, 2019, 11:09 a.m. OK Java 8 TESTS 28 171 0 1400
48102629 S010M C Jan. 8, 2019, 11:11 p.m. OK Java 8 TESTS 28 171 0 1400
45698767 KharYusuf C Nov. 14, 2018, 6:28 a.m. OK Java 8 TESTS 28 171 0 1400
45063451 MohammadAmjad C Oct. 29, 2018, 3:55 p.m. OK Java 8 TESTS 28 171 0 1400
45058102 Faizan C Oct. 29, 2018, 1:36 p.m. OK Java 8 TESTS 28 171 0 1400
53478377 Farwent C April 28, 2019, 5:23 p.m. OK Kotlin TESTS 28 1107 0 1400
55721054 og.kostya C June 18, 2019, 3:18 p.m. OK Mono C# TESTS 28 77 3686400 1400
44256743 azukun C Oct. 13, 2018, 12:38 p.m. OK Mono C# TESTS 28 155 7884800 1400
68840213 mban259 C Jan. 15, 2020, 5:29 a.m. OK Mono C# TESTS 28 171 16486400 1400
44445871 Roverandom C Oct. 17, 2018, 1:54 p.m. OK Mono C# TESTS 28 795 3891200 1400
44893438 witchu C Oct. 26, 2018, 5:07 a.m. OK Mono C# TESTS 28 826 3891200 1400
49907958 toysheeyeyraku C Feb. 14, 2019, 12:52 p.m. OK Mono C# TESTS 28 826 3891200 1400
45286825 zazak C Nov. 4, 2018, 5:12 p.m. OK Mono C# TESTS 28 842 15872000 1400
44229131 Stage1 C Oct. 12, 2018, 9:38 p.m. OK Mono C# TESTS 28 857 17612800 1400
44216605 Coder_D C Oct. 12, 2018, 4:30 p.m. OK Mono C# TESTS 28 873 3891200 1400
51648741 nemars C March 21, 2019, 5:50 p.m. OK Mono C# TESTS 28 889 25395200 1400
44533941 vjudge2 C Oct. 19, 2018, 7:58 a.m. OK MS C++ TESTS 28 77 819200 1400
44442214 vjudge5 C Oct. 17, 2018, 12:35 p.m. OK MS C++ TESTS 28 78 819200 1400
49776027 vjudge2 C Feb. 11, 2019, 3:29 p.m. OK MS C++ TESTS 28 78 819200 1400
44576119 vjudge1 C Oct. 20, 2018, 7:09 a.m. OK MS C++ TESTS 28 78 819200 1400
45083444 vjudge1 C Oct. 30, 2018, 5:25 a.m. OK MS C++ TESTS 28 78 819200 1400
45634155 Haru_xyx C Nov. 12, 2018, 6:13 p.m. OK MS C++ TESTS 28 78 819200 1400
45172634 vjudge2 C Nov. 1, 2018, 1:23 p.m. OK MS C++ TESTS 28 78 2048000 1400
44675519 vjudge1 C Oct. 22, 2018, 3:56 a.m. OK MS C++ TESTS 28 78 8089600 1400
63424116 vjudge4 C Oct. 26, 2019, 7:19 a.m. OK MS C++ TESTS 28 93 819200 1400
58786940 vjudge5 C Aug. 13, 2019, 11:31 p.m. OK MS C++ TESTS 28 93 819200 1400
63225437 vjudge3 C Oct. 23, 2019, 9:09 a.m. OK MS C++ 2017 TESTS 28 124 1024000 1400
59503516 IbraheemJanajreh C Aug. 26, 2019, 4:37 a.m. OK MS C++ 2017 TESTS 28 124 2252800 1400
56975063 2462478392 C July 13, 2019, 11:54 a.m. OK MS C++ 2017 TESTS 28 124 3993600 1400
55232493 hwangganzi C June 7, 2019, 6:32 a.m. OK MS C++ 2017 TESTS 28 140 3276800 1400
63222714 vjudge4 C Oct. 23, 2019, 8:22 a.m. OK MS C++ 2017 TESTS 28 171 6451200 1400
50781756 work_hard. C March 4, 2019, 11:42 a.m. OK MS C++ 2017 TESTS 28 187 6451200 1400
54276956 Lamtrose C May 17, 2019, 11:37 a.m. OK MS C++ 2017 TESTS 28 187 6451200 1400
51330914 NPUlzh C March 15, 2019, 12:07 p.m. OK MS C++ 2017 TESTS 28 202 7270400 1400
52305743 NVX C April 4, 2019, noon OK MS C++ 2017 TESTS 28 217 819200 1400
58355146 yorky C Aug. 5, 2019, 7:06 p.m. OK MS C++ 2017 TESTS 28 249 3993600 1400
49769755 vjudge1 C Feb. 11, 2019, 1:10 p.m. OK Node.js TESTS 28 1107 21811200 1400
44228897 0x2f8f C Oct. 12, 2018, 9:26 p.m. OK PHP TESTS 28 483 18432000 1400
44239095 mayakin C Oct. 13, 2018, 6:12 a.m. OK PHP TESTS 28 498 14745600 1400
44280457 SerChirag C Oct. 14, 2018, 3:59 a.m. OK PyPy 2 TESTS 28 545 13516800 1400
45253728 jhilary C Nov. 3, 2018, 6:09 p.m. OK PyPy 2 TESTS 28 1653 5120000 1400
44228467 FahimSifnatul C Oct. 12, 2018, 9:06 p.m. OK PyPy 3 TESTS 28 358 18841600 1400
44228264 FahimSifnatul C Oct. 12, 2018, 8:58 p.m. OK PyPy 3 TESTS 28 358 18841600 1400
44422865 qb2008 C Oct. 17, 2018, 1:06 a.m. OK PyPy 3 TESTS 28 389 12083200 1400
53492194 yfo C April 29, 2019, 9:26 a.m. OK PyPy 3 TESTS 28 390 18534400 1400
44492550 Tdyh C Oct. 18, 2018, 3:10 p.m. OK PyPy 3 TESTS 28 420 12390400 1400
63752785 kchau C Oct. 29, 2019, 9:12 p.m. OK PyPy 3 TESTS 28 436 10137600 1400
44492447 Tdyh C Oct. 18, 2018, 3:06 p.m. OK PyPy 3 TESTS 28 436 12492800 1400
49685606 zhaoy1ping C Feb. 10, 2019, 6:55 a.m. OK PyPy 3 TESTS 28 436 20992000 1400
49648958 zhaoy1ping C Feb. 9, 2019, 6:35 a.m. OK PyPy 3 TESTS 28 436 21094400 1400
55945384 vjudge4 C June 22, 2019, 7:20 p.m. OK PyPy 3 TESTS 28 483 21196800 1400
44382057 quantum_tee C Oct. 16, 2018, 4:35 a.m. OK Python 2 TESTS 28 405 18329600 1400
44229299 eugalt C Oct. 12, 2018, 9:47 p.m. OK Python 2 TESTS 28 405 18329600 1400
50804227 vjudge3 C March 5, 2019, 3:42 a.m. OK Python 2 TESTS 28 451 21196800 1400
44459597 nealzane C Oct. 17, 2018, 7:42 p.m. OK Python 2 TESTS 28 467 27545600 1400
44319092 noob77777 C Oct. 14, 2018, 1:39 p.m. OK Python 2 TESTS 28 483 17510400 1400
44216748 shehebe C Oct. 12, 2018, 4:30 p.m. OK Python 2 TESTS 28 530 19046400 1400
54796588 kaif_7 C May 29, 2019, 9:56 a.m. OK Python 2 TESTS 28 608 13721600 1400
44286358 khasam C Oct. 14, 2018, 7:41 a.m. OK Python 2 TESTS 28 623 17408000 1400
48762524 scambret C Jan. 22, 2019, 6:06 p.m. OK Python 2 TESTS 28 795 17408000 1400
44666038 upuyuk C Oct. 21, 2018, 5:57 p.m. OK Python 3 TESTS 28 358 19865600 1400
44228431 FahimSifnatul C Oct. 12, 2018, 9:05 p.m. OK Python 3 TESTS 28 452 17920000 1400
44219135 Shedy C Oct. 12, 2018, 4:47 p.m. OK Python 3 TESTS 28 530 19353600 1400
44679877 upuyuk C Oct. 22, 2018, 5:29 a.m. OK Python 3 TESTS 28 530 19865600 1400
44480441 sergovoy C Oct. 18, 2018, 10 a.m. OK Python 3 TESTS 28 530 35225600 1400
44350457 Savit_Gupta C Oct. 15, 2018, 9:50 a.m. OK Python 3 TESTS 28 545 19046400 1400
45672582 Annvv C Nov. 13, 2018, 11:29 a.m. OK Python 3 TESTS 28 561 5427200 1400
44887987 bergus C Oct. 26, 2018, 12:24 a.m. OK Python 3 TESTS 28 701 5734400 1400
54150919 Morfeo C May 14, 2019, 11:58 p.m. OK Python 3 TESTS 28 717 16486400 1400
44219816 r57shell C Oct. 12, 2018, 4:56 p.m. OK Python 3 TESTS 28 733 7884800 1400
44226926 clupasq C Oct. 12, 2018, 8:06 p.m. OK Ruby TESTS 28 608 33689600 1400
59492513 Michcioperz C Aug. 25, 2019, 7:58 p.m. OK Rust TESTS 28 1138 819200 1400
59510607 Michcioperz C Aug. 26, 2019, 7:50 a.m. OK Rust TESTS 28 1154 819200 1400

remove filters

Back to search problems