Educational Codeforces Round 53 (Rated for 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
1073 Educational Codeforces Round 53 (Rated for Div. 2) FINISHED False 7200 191345099 Oct. 25, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10600 ) B Vasya and Books PROGRAMMING implementation math 1100

B'Vasya has got n books, numbered from 1 to n , arranged in a stack. The topmost book has number a_1 , the next one -- a_2 , and so on. The book at the bottom of the stack has number a_n . All numbers are distinct. Vasya wants to move all the books to his backpack in n steps. During i -th step he wants to move the book number b_i into his backpack. If the book with number b_i is in the stack, he takes this book and all the books above the book b_i , and puts them into the backpack; otherwise he does nothing and begins the next step. For example, if books are arranged in the order [1, 2, 3] (book 1 is the topmost), and Vasya moves the books in the order [2, 1, 3] , then during the first step he will move two books ( 1 and 2 ), during the second step he will do nothing (since book 1 is already in the backpack), and during the third step -- one book (the book number 3 ). Note that b_1, b_2, ... , b_n are distinct. Help Vasya! Tell him the number of books he will put into his backpack during each step. The first line contains one integer n~(1 <= n <= 2 cdot 10^5) -- the number of books in the stack. The second line contains n integers a_1, a_2, ... , a_n~(1 <= a_i <= n) denoting the stack of books. The third line contains n integers b_1, b_2, ... , b_n~(1 <= b_i <= n) denoting the steps Vasya is going to perform. All numbers a_1 ... a_n are distinct, the same goes for b_1 ... b_n . Print n integers. The i -th of them should be equal to the number of books Vasya moves to his backpack during the i -th step. The first example is described in the statement. In the second example, during the first step Vasya will move the books [3, 1, 4] . After that only books 2 and 5 remain in the stack ( 2 is above 5 ). During the second step Vasya will take the books 2 and'...

Tutorials

62742

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
44938215 vjudge4 B Oct. 27, 2018, 6:34 a.m. OK Clang++17 Diagnostics TESTS 8 171 6656000 1100
44938263 vjudge5 B Oct. 27, 2018, 6:35 a.m. OK Clang++17 Diagnostics TESTS 8 186 6656000 1100
44954521 hector_ B Oct. 27, 2018, 1:36 p.m. OK Clang++17 Diagnostics TESTS 8 202 0 1100
45698915 gengiskhan B Nov. 14, 2018, 6:36 a.m. OK Clang++17 Diagnostics TESTS 8 202 819200 1100
45060750 celestials B Oct. 29, 2018, 2:42 p.m. OK Clang++17 Diagnostics TESTS 8 202 6348800 1100
45063499 celestials B Oct. 29, 2018, 3:57 p.m. OK Clang++17 Diagnostics TESTS 8 217 1126400 1100
50097510 yp0413170337 B Feb. 18, 2019, 1:24 p.m. OK Clang++17 Diagnostics TESTS 8 420 1945600 1100
47503501 fluffyowl B Dec. 25, 2018, 7:52 p.m. OK D TESTS 8 109 22118400 1100
45263687 nanae1914 B Nov. 4, 2018, 4:21 a.m. OK D TESTS 8 140 25600000 1100
46181255 Accurse B Nov. 24, 2018, 6:04 p.m. OK Delphi TESTS 8 92 819200 1100
44963498 leedinh B Oct. 27, 2018, 5:47 p.m. OK FPC TESTS 8 638 819200 1100
45036936 dchy2000 B Oct. 29, 2018, 8:14 a.m. OK FPC TESTS 8 639 819200 1100
54709720 chaorenhaha B May 27, 2019, 7:50 a.m. OK FPC TESTS 8 639 3584000 1100
44990079 Bear.-. B Oct. 28, 2018, 12:23 p.m. OK FPC TESTS 8 654 819200 1100
45398980 chaorenhaha B Nov. 7, 2018, 7:08 a.m. OK FPC TESTS 8 654 7987200 1100
44898164 luogu_bot2 B Oct. 26, 2018, 7:40 a.m. OK FPC TESTS 8 655 1843200 1100
45452403 Stanislav666 B Nov. 8, 2018, 4:51 p.m. OK FPC TESTS 8 670 1638400 1100
44989828 oyldz93 B Oct. 28, 2018, 12:15 p.m. OK GNU C11 TESTS 8 623 2355200 1100
52586464 kaiboy B April 11, 2019, 12:39 a.m. OK GNU C11 TESTS 8 639 819200 1100
44876810 bluesky97 B Oct. 25, 2018, 5:23 p.m. OK GNU C11 TESTS 8 639 819200 1100
44878051 MrLolthe1st B Oct. 25, 2018, 5:51 p.m. OK GNU C11 TESTS 8 639 819200 1100
45171381 sayan1706 B Nov. 1, 2018, 1 p.m. OK GNU C11 TESTS 8 639 819200 1100
45399908 mr.smf8 B Nov. 7, 2018, 7:45 a.m. OK GNU C11 TESTS 8 639 819200 1100
45557098 Maruf_IIT B Nov. 11, 2018, 9:13 a.m. OK GNU C11 TESTS 8 639 819200 1100
46045233 Gabriel.Candeia B Nov. 22, 2018, 12:52 a.m. OK GNU C11 TESTS 8 639 819200 1100
46577313 MRJ35 B Dec. 4, 2018, 9:23 a.m. OK GNU C11 TESTS 8 639 819200 1100
45584731 RahmatyParsa B Nov. 12, 2018, 7:40 a.m. OK GNU C11 TESTS 8 639 1638400 1100
44897016 Dilute B Oct. 26, 2018, 7:08 a.m. OK GNU C++11 TESTS 8 30 18022400 1100
65330258 luogu_bot1 B Nov. 19, 2019, 5:33 a.m. OK GNU C++11 TESTS 8 31 614400 1100
44894319 Zechariah_2001 B Oct. 26, 2018, 5:46 a.m. OK GNU C++11 TESTS 8 31 1024000 1100
44972657 vjudge5 B Oct. 28, 2018, 2:15 a.m. OK GNU C++11 TESTS 8 31 1024000 1100
45124663 enor2017 B Oct. 31, 2018, 7:15 a.m. OK GNU C++11 TESTS 8 31 1433600 1100
44916236 abdalkader-s B Oct. 26, 2018, 3:37 p.m. OK GNU C++11 TESTS 8 31 1638400 1100
45033319 luogu_bot2 B Oct. 29, 2018, 6:01 a.m. OK GNU C++11 TESTS 8 31 2457600 1100
45016537 tokitsukaze B Oct. 28, 2018, 5:16 p.m. OK GNU C++11 TESTS 8 31 2560000 1100
47892184 _zay B Jan. 4, 2019, 7:35 a.m. OK GNU C++11 TESTS 8 31 2560000 1100
47886935 _zay B Jan. 4, 2019, 12:50 a.m. OK GNU C++11 TESTS 8 31 2662400 1100
62118901 animeFORever B Oct. 8, 2019, 2:06 p.m. OK GNU C++14 TESTS 8 77 2867200 1100
57893785 notanymore B July 28, 2019, 12:46 p.m. OK GNU C++14 TESTS 8 77 2867200 1100
44980713 kaplanyb B Oct. 28, 2018, 8:30 a.m. OK GNU C++14 TESTS 8 78 2150400 1100
58911375 notanymore B Aug. 16, 2019, 1:12 p.m. OK GNU C++14 TESTS 8 78 2867200 1100
45245253 44rdvark B Nov. 3, 2018, 1:36 p.m. OK GNU C++14 TESTS 8 93 512000 1100
45673006 Aso457 B Nov. 13, 2018, 11:41 a.m. OK GNU C++14 TESTS 8 93 819200 1100
45131089 mosta1004 B Oct. 31, 2018, 10:22 a.m. OK GNU C++14 TESTS 8 93 819200 1100
44959305 tej_17 B Oct. 27, 2018, 3:36 p.m. OK GNU C++14 TESTS 8 93 819200 1100
44907083 yangshuang B Oct. 26, 2018, 11:58 a.m. OK GNU C++14 TESTS 8 93 819200 1100
53842019 HipHop B May 7, 2019, 8:09 a.m. OK GNU C++14 TESTS 8 93 921600 1100
61576850 maskMan B Sept. 30, 2019, 9:28 p.m. OK GNU C++17 TESTS 8 77 2048000 1100
44876584 bluesky97 B Oct. 25, 2018, 5:19 p.m. OK GNU C++17 TESTS 8 78 819200 1100
45225280 zzyhuajuan B Nov. 3, 2018, 2:42 a.m. OK GNU C++17 TESTS 8 78 1536000 1100
46304935 vjudge1 B Nov. 28, 2018, 9:31 a.m. OK GNU C++17 TESTS 8 78 7987200 1100
44989644 wxbxcxuxnxy B Oct. 28, 2018, 12:10 p.m. OK GNU C++17 TESTS 8 92 1638400 1100
44876418 bluesky97 B Oct. 25, 2018, 5:15 p.m. OK GNU C++17 TESTS 8 93 512000 1100
45033618 dchy2000 B Oct. 29, 2018, 6:17 a.m. OK GNU C++17 TESTS 8 93 716800 1100
44876467 bluesky97 B Oct. 25, 2018, 5:16 p.m. OK GNU C++17 TESTS 8 93 716800 1100
45481599 misterySX B Nov. 9, 2018, 3:06 p.m. OK GNU C++17 TESTS 8 93 819200 1100
45758997 ShivamPrasad B Nov. 15, 2018, 7:54 a.m. OK GNU C++17 TESTS 8 93 819200 1100
44905286 davidguandev B Oct. 26, 2018, 11:10 a.m. OK Go TESTS 8 155 18739200 1100
45115750 hqhs B Oct. 30, 2018, 9:19 p.m. OK Go TESTS 8 326 9728000 1100
45115711 hqhs B Oct. 30, 2018, 9:17 p.m. OK Go TESTS 8 343 9728000 1100
46731881 Shamsutdin B Dec. 7, 2018, 5:52 p.m. OK Haskell TESTS 8 405 39116800 1100
64183707 rodominguez B Nov. 4, 2019, 3:15 a.m. OK Java 11 TESTS 8 639 0 1100
46383312 BNL B Nov. 29, 2018, 8:01 p.m. OK Java 8 TESTS 8 109 0 1100
44874316 Tushar__2018 B Oct. 25, 2018, 4:42 p.m. OK Java 8 TESTS 8 109 0 1100
46383274 NMouad21 B Nov. 29, 2018, 7:58 p.m. OK Java 8 TESTS 8 124 0 1100
44899652 rahsutamrev B Oct. 26, 2018, 8:29 a.m. OK Java 8 TESTS 8 124 0 1100
44895192 ashraybharambe B Oct. 26, 2018, 6:16 a.m. OK Java 8 TESTS 8 124 0 1100
68640763 bluesky111 B Jan. 12, 2020, 7:27 a.m. OK Java 8 TESTS 8 139 0 1100
51916180 MubtasimShahriar B March 27, 2019, 10:02 p.m. OK Java 8 TESTS 8 139 0 1100
44937883 Umangpatel B Oct. 27, 2018, 6:26 a.m. OK Java 8 TESTS 8 139 0 1100
44897381 xmadx B Oct. 26, 2018, 7:18 a.m. OK Java 8 TESTS 8 139 0 1100
44897126 hiren_oded B Oct. 26, 2018, 7:11 a.m. OK Java 8 TESTS 8 139 0 1100
45146884 dimoff66 B Oct. 31, 2018, 5:22 p.m. OK JavaScript TESTS 8 218 45260800 1100
45673538 Killer45 B Nov. 13, 2018, 11:57 a.m. OK Kotlin TESTS 8 202 7168000 1100
44902681 SlavaG B Oct. 26, 2018, 9:51 a.m. OK Kotlin TESTS 8 764 40345600 1100
54719104 og.kostya B May 27, 2019, 3:17 p.m. OK Mono C# TESTS 8 77 7168000 1100
44872768 mban259 B Oct. 25, 2018, 4:31 p.m. OK Mono C# TESTS 8 186 39014400 1100
45099293 Mem B Oct. 30, 2018, 1:10 p.m. OK Mono C# TESTS 8 217 37478400 1100
45186887 zazak B Nov. 1, 2018, 8:48 p.m. OK Mono C# TESTS 8 264 41267200 1100
45429064 nemars B Nov. 8, 2018, 1:22 a.m. OK Mono C# TESTS 8 264 44544000 1100
44872304 jeanstefanovich B Oct. 25, 2018, 4:29 p.m. OK Mono C# TESTS 8 716 27340800 1100
49890094 Mandrade B Feb. 14, 2019, 2:46 a.m. OK Mono C# TESTS 8 733 41369600 1100
45102925 NikolaySchepalov B Oct. 30, 2018, 2:38 p.m. OK Mono C# TESTS 8 763 28364800 1100
45757446 Xtreemist B Nov. 15, 2018, 6:56 a.m. OK Mono C# TESTS 8 779 33484800 1100
44906996 Strelokask B Oct. 26, 2018, 11:56 a.m. OK Mono C# TESTS 8 795 37478400 1100
44943131 bbisnouse B Oct. 27, 2018, 8:49 a.m. OK MS C++ TESTS 8 77 7987200 1100
48474437 vjudge4 B Jan. 17, 2019, 1:19 a.m. OK MS C++ TESTS 8 78 819200 1100
46282351 vjudge2 B Nov. 27, 2018, 2:02 p.m. OK MS C++ TESTS 8 78 1638400 1100
48655352 vjudge3 B Jan. 21, 2019, 2:12 a.m. OK MS C++ TESTS 8 78 1638400 1100
46430507 vjudge3 B Dec. 1, 2018, 5:15 a.m. OK MS C++ TESTS 8 78 1638400 1100
44936092 vjudge1 B Oct. 27, 2018, 5:26 a.m. OK MS C++ TESTS 8 78 1638400 1100
51598758 vjudge5 B March 21, 2019, 1:13 a.m. OK MS C++ TESTS 8 78 1843200 1100
45462636 yang_1_ B Nov. 9, 2018, 2:28 a.m. OK MS C++ TESTS 8 78 2355200 1100
47107370 vjudge3 B Dec. 16, 2018, 1:37 p.m. OK MS C++ TESTS 8 78 3174400 1100
48474517 vjudge5 B Jan. 17, 2019, 1:22 a.m. OK MS C++ TESTS 8 93 819200 1100
50061401 hedyya B Feb. 17, 2019, 12:49 p.m. OK MS C++ 2017 TESTS 8 140 7987200 1100
65508091 vjudge2 B Nov. 22, 2019, 1:09 a.m. OK MS C++ 2017 TESTS 8 155 819200 1100
61438172 CtrlAlt B Sept. 28, 2019, 5:32 p.m. OK MS C++ 2017 TESTS 8 156 819200 1100
49502852 Jakser B Feb. 5, 2019, 4:04 p.m. OK MS C++ 2017 TESTS 8 280 6451200 1100
60371014 siwei B Sept. 11, 2019, 1:54 a.m. OK MS C++ 2017 TESTS 8 389 2355200 1100
49503642 Stivion B Feb. 5, 2019, 4:27 p.m. OK MS C++ 2017 TESTS 8 405 2355200 1100
62458306 vjudge5 B Oct. 13, 2019, 7:18 a.m. OK MS C++ 2017 TESTS 8 421 3891200 1100
49502930 Jakser B Feb. 5, 2019, 4:07 p.m. OK MS C++ 2017 TESTS 8 499 7987200 1100
49502915 Jakser B Feb. 5, 2019, 4:06 p.m. OK MS C++ 2017 TESTS 8 514 6451200 1100
61478071 vjudge5 B Sept. 29, 2019, 1:14 p.m. OK MS C++ 2017 TESTS 8 982 3072000 1100
44898494 mayakin B Oct. 26, 2018, 7:50 a.m. OK PHP TESTS 8 108 39424000 1100
45165684 v1rus32 B Nov. 1, 2018, 11:02 a.m. OK PHP TESTS 8 670 44134400 1100
45168472 jugelika B Nov. 1, 2018, 11:57 a.m. OK PHP TESTS 8 732 31027200 1100
44890623 aeternalis1 B Oct. 26, 2018, 3:01 a.m. OK PyPy 2 TESTS 8 187 18432000 1100
46123778 IrOty1oX5uSp4 B Nov. 23, 2018, 5:46 p.m. OK PyPy 2 TESTS 8 217 19865600 1100
45650519 icesin B Nov. 13, 2018, 12:42 a.m. OK PyPy 2 TESTS 8 233 23347200 1100
44990221 fatpuffer B Oct. 28, 2018, 12:27 p.m. OK PyPy 2 TESTS 8 233 25395200 1100
46123594 IrOty1oX5uSp4 B Nov. 23, 2018, 5:39 p.m. OK PyPy 2 TESTS 8 265 19763200 1100
45260784 frigidrain B Nov. 4, 2018, 1:42 a.m. OK PyPy 3 TESTS 8 390 40243200 1100
54793733 iamprayush B May 29, 2019, 8:36 a.m. OK PyPy 3 TESTS 8 436 22835200 1100
44899202 omarnvidia B Oct. 26, 2018, 8:14 a.m. OK PyPy 3 TESTS 8 436 27443200 1100
44993766 nobe0716 B Oct. 28, 2018, 2:17 p.m. OK PyPy 3 TESTS 8 436 37376000 1100
45027462 megaspazz B Oct. 28, 2018, 11:33 p.m. OK PyPy 3 TESTS 8 436 39628800 1100
46123741 IrOty1oX5uSp4 B Nov. 23, 2018, 5:45 p.m. OK PyPy 3 TESTS 8 436 40448000 1100
44889400 hillhost B Oct. 26, 2018, 1:57 a.m. OK PyPy 3 TESTS 8 482 19865600 1100
45104305 ulyabelyaeva B Oct. 30, 2018, 3:20 p.m. OK PyPy 3 TESTS 8 483 19763200 1100
61056270 kopok2 B Sept. 22, 2019, 8:09 a.m. OK PyPy 3 TESTS 8 483 20684800 1100
46123620 IrOty1oX5uSp4 B Nov. 23, 2018, 5:40 p.m. OK PyPy 3 TESTS 8 483 31948800 1100
48719648 scambret B Jan. 22, 2019, 12:58 p.m. OK Python 2 TESTS 8 420 22835200 1100
54820361 franckmy B May 30, 2019, 1:52 a.m. OK Python 2 TESTS 8 436 15052800 1100
44874206 anshuman16423 B Oct. 25, 2018, 4:41 p.m. OK Python 2 TESTS 8 483 18636800 1100
44890562 nealzane B Oct. 26, 2018, 2:58 a.m. OK Python 2 TESTS 8 483 23449600 1100
45101298 SoSooding B Oct. 30, 2018, 1:56 p.m. OK Python 2 TESTS 8 498 15872000 1100
44878475 FlyingBag65 B Oct. 25, 2018, 6:01 p.m. OK Python 2 TESTS 8 498 30412800 1100
45187330 PBatch B Nov. 1, 2018, 9:14 p.m. OK Python 2 TESTS 8 499 19968000 1100
44917460 a11b11c11 B Oct. 26, 2018, 4:10 p.m. OK Python 2 TESTS 8 514 14643200 1100
52508750 chenvictor1999 B April 8, 2019, 8:30 p.m. OK Python 2 TESTS 8 577 15052800 1100
45352522 Babyjjy B Nov. 6, 2018, 7:25 a.m. OK Python 2 TESTS 8 639 22016000 1100
46144920 MartiBook B Nov. 24, 2018, 7:34 a.m. OK Python 3 TESTS 8 311 24678400 1100
44994685 spikh B Oct. 28, 2018, 2:49 p.m. OK Python 3 TESTS 8 311 27852800 1100
44994750 spikh B Oct. 28, 2018, 2:51 p.m. OK Python 3 TESTS 8 312 30412800 1100
44875209 rabeckiy B Oct. 25, 2018, 4:54 p.m. OK Python 3 TESTS 8 327 19763200 1100
46667762 ganzgorn B Dec. 6, 2018, 4:02 a.m. OK Python 3 TESTS 8 327 26112000 1100
50411820 abkarino.em2012 B Feb. 24, 2019, 3:20 a.m. OK Python 3 TESTS 8 327 37273600 1100
45545655 yugismop B Nov. 11, 2018, 12:12 a.m. OK Python 3 TESTS 8 342 17817600 1100
45223416 ccs3326 B Nov. 3, 2018, 12:19 a.m. OK Python 3 TESTS 8 342 30003200 1100
45592237 IrOty1oX5uSp4 B Nov. 12, 2018, 1:14 p.m. OK Python 3 TESTS 8 343 19456000 1100
45100397 almasip B Oct. 30, 2018, 1:37 p.m. OK Python 3 TESTS 8 358 25497600 1100
45669813 saurabh7717 B Nov. 13, 2018, 9:52 a.m. OK Ruby TESTS 8 467 45363200 1100
44921565 Dx18 B Oct. 26, 2018, 6:07 p.m. OK Rust TESTS 8 77 5734400 1100
45348728 Rusteze B Nov. 6, 2018, 5:58 a.m. OK Rust TESTS 8 78 7270400 1100
46122172 nikitoz B Nov. 23, 2018, 4:51 p.m. OK Rust TESTS 8 124 10752000 1100
45329303 Grevozin B Nov. 5, 2018, 2:26 p.m. OK Rust TESTS 8 155 10956800 1100

remove filters

Back to search problems