Codeforces Round 662 (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
1393 Codeforces Round 662 (Div. 2) FINISHED False 7200 140369063 Aug. 7, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16859 ) B Applejack and Storages PROGRAMMING data structures greedy implementation

B'This year in Equestria was a year of plenty, so Applejack has decided to build some new apple storages. According to the advice of the farm designers, she chose to build two storages with non-zero area: one in the shape of a square and another one in the shape of a rectangle (which possibly can be a square as well). Applejack will build the storages using planks, she is going to spend exactly one plank on each side of the storage. She can get planks from her friend 's company. Initially, the company storehouse has n planks, Applejack knows their lengths. The company keeps working so it receives orders and orders the planks itself. Applejack 's friend can provide her with information about each operation. For convenience, he will give her information according to the following format: Applejack is still unsure about when she is going to order the planks so she wants to know if she can order the planks to build rectangular and square storages out of them after every event at the storehouse. Applejack is busy collecting apples and she has completely no time to do the calculations so she asked you for help! We remind you that all four sides of a square are equal, and a rectangle has two pairs of equal sides. The first line contains a single integer n ( 1 <= n <= 10^5 ): the initial amount of planks at the company 's storehouse, the second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^5 ): the lengths of the planks. The third line contains a single integer q ( 1 <= q <= 10^5 ): the number of events in the company. Each of the next q lines contains a description of the events in a given format: the type of the event (a symbol + or - ) is given first, then goes the integer x ( 1 <= x <= 10^5 ). After every event in the company, print "YES" if two storages of the required shape can be built from the planks of that company 's set, and print "NO" otherwise. You can print each '...

Tutorials

Codeforces Round #662 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
89598109 gxlois B Aug. 11, 2020, 5:18 p.m. OK D TESTS 37 358 43110400
90055276 LeCaToX B Aug. 16, 2020, 4 a.m. OK FPC TESTS 37 342 3993600
89355664 eugalt B Aug. 8, 2020, 6:05 p.m. OK GNU C11 TESTS 37 78 4198400
89346743 eugalt B Aug. 8, 2020, 3:27 p.m. OK GNU C11 TESTS 37 93 4198400
89572396 gilesg B Aug. 11, 2020, 11:26 a.m. OK GNU C11 TESTS 37 390 4096000
89517321 chowdhuryshashwoto B Aug. 10, 2020, 2:20 p.m. OK GNU C11 TESTS 37 390 4505600
89346379 AtulNits B Aug. 8, 2020, 3:21 p.m. OK GNU C11 TESTS 37 404 4915200
89365215 JoseTomas01 B Aug. 8, 2020, 10:25 p.m. OK GNU C11 TESTS 37 405 5324800
91623430 star_force B Sept. 2, 2020, 8:13 a.m. OK GNU C11 TESTS 37 421 819200
90050320 JasonLan B Aug. 16, 2020, 12:43 a.m. OK GNU C++11 TESTS 37 46 409600
90184676 S-X-Y B Aug. 17, 2020, 1:46 a.m. OK GNU C++11 TESTS 37 46 409600
89470303 luogu_bot5 B Aug. 9, 2020, 11:45 p.m. OK GNU C++11 TESTS 37 46 4096000
89367264 CZJ_2005 B Aug. 9, 2020, 12:26 a.m. OK GNU C++11 TESTS 37 46 4300800
89371522 sushitong B Aug. 9, 2020, 3:42 a.m. OK GNU C++11 TESTS 37 46 4300800
89371673 Biadocy B Aug. 9, 2020, 3:48 a.m. OK GNU C++11 TESTS 37 46 4300800
89493589 Forever_Pursuit B Aug. 10, 2020, 8:28 a.m. OK GNU C++11 TESTS 37 46 4710400
89347647 mwlc B Aug. 8, 2020, 3:41 p.m. OK GNU C++11 TESTS 37 46 19865600
91577243 Chirography_11 B Sept. 1, 2020, 3:03 p.m. OK GNU C++11 TESTS 37 62 409600
90361339 _ShadowSong B Aug. 19, 2020, 6:01 a.m. OK GNU C++11 TESTS 37 62 409600
89374942 vishnu_m B Aug. 9, 2020, 5:25 a.m. OK GNU C++14 TESTS 37 62 4505600
89549744 ngvan1612 B Aug. 11, 2020, 5:18 a.m. OK GNU C++14 TESTS 37 77 4096000
89654100 shobhit1256 B Aug. 12, 2020, 1:23 p.m. OK GNU C++14 TESTS 37 77 4096000
89658380 Sumit_Ailani B Aug. 12, 2020, 2:22 p.m. OK GNU C++14 TESTS 37 77 4096000
90503935 Joey__Tribbiani B Aug. 21, 2020, 3:37 a.m. OK GNU C++14 TESTS 37 77 4096000
89549399 manujk B Aug. 11, 2020, 5:11 a.m. OK GNU C++14 TESTS 37 77 4505600
89367726 T1ago.gs B Aug. 9, 2020, 12:55 a.m. OK GNU C++14 TESTS 37 77 4505600
89388238 stefdasca B Aug. 9, 2020, 9:22 a.m. OK GNU C++14 TESTS 37 77 4505600
90896109 Ans_31 B Aug. 25, 2020, 11:49 a.m. OK GNU C++14 TESTS 37 78 409600
91250582 Luna156 B Aug. 29, 2020, 1:55 a.m. OK GNU C++14 TESTS 37 78 409600
89643807 Yudhishthira B Aug. 12, 2020, 10:53 a.m. OK GNU C++17 TESTS 37 77 4096000
90512060 fireswan B Aug. 21, 2020, 7:50 a.m. OK GNU C++17 TESTS 37 77 4096000
89466511 code_tester_1 B Aug. 9, 2020, 8:48 p.m. OK GNU C++17 TESTS 37 77 4096000
89377145 Olzhaski B Aug. 9, 2020, 6:15 a.m. OK GNU C++17 TESTS 37 77 4198400
89478252 lakshay-angrish B Aug. 10, 2020, 4:10 a.m. OK GNU C++17 TESTS 37 77 5324800
90498853 Shell17 B Aug. 20, 2020, 10:55 p.m. OK GNU C++17 TESTS 37 78 409600
91594674 srikkanthr B Sept. 1, 2020, 7:04 p.m. OK GNU C++17 TESTS 37 78 409600
91138891 KirillVysotsky B Aug. 27, 2020, 1:58 p.m. OK GNU C++17 TESTS 37 78 409600
90288519 bluestorm57 B Aug. 18, 2020, 8:04 a.m. OK GNU C++17 TESTS 37 78 409600
90063603 Anonymous_001 B Aug. 16, 2020, 7:10 a.m. OK GNU C++17 TESTS 37 78 409600
89541501 uruuru8888 B Aug. 11, 2020, 1:24 a.m. OK GNU C++17 (64) TESTS 37 61 4710400
89467112 the_hyp0cr1t3 B Aug. 9, 2020, 9:09 p.m. OK GNU C++17 (64) TESTS 37 61 5120000
89730609 abhigyan10 B Aug. 12, 2020, 5:39 p.m. OK GNU C++17 (64) TESTS 37 62 409600
89962504 Ahmad45123 B Aug. 14, 2020, 5:42 p.m. OK GNU C++17 (64) TESTS 37 62 409600
89962590 Ahmad45123 B Aug. 14, 2020, 5:43 p.m. OK GNU C++17 (64) TESTS 37 62 409600
89571330 ddvddv B Aug. 11, 2020, 11:09 a.m. OK GNU C++17 (64) TESTS 37 62 4710400
89571123 Bazigar B Aug. 11, 2020, 11:06 a.m. OK GNU C++17 (64) TESTS 37 62 4710400
89496027 bubu2006 B Aug. 10, 2020, 9:07 a.m. OK GNU C++17 (64) TESTS 37 62 4710400
90766987 kunal101 B Aug. 23, 2020, 3:11 p.m. OK GNU C++17 (64) TESTS 37 62 4710400
90775634 wistful23 B Aug. 23, 2020, 5:21 p.m. OK GNU C++17 (64) TESTS 37 62 4710400
89540037 jc881203 B Aug. 11, 2020, 12:06 a.m. OK Go TESTS 37 78 16281600
89658376 Trishan B Aug. 12, 2020, 2:22 p.m. OK Go TESTS 37 342 19353600
89478297 codego144 B Aug. 10, 2020, 4:11 a.m. OK Java 11 TESTS 37 202 23756800
89390395 kunalkatiyar9 B Aug. 9, 2020, 10 a.m. OK Java 11 TESTS 37 217 23756800
90182738 nadaabdo588 B Aug. 17, 2020, 12:30 a.m. OK Java 11 TESTS 37 233 0
89747984 aayushbehl B Aug. 12, 2020, 11:01 p.m. OK Java 11 TESTS 37 233 0
89386670 le_chat B Aug. 9, 2020, 8:55 a.m. OK Java 11 TESTS 37 249 23961600
90434500 NS-KAL B Aug. 20, 2020, 5:25 a.m. OK Java 11 TESTS 37 264 0
91422680 osama.bmaq B Aug. 30, 2020, 5:40 p.m. OK Java 11 TESTS 37 264 24576000
91661113 pauljanson002 B Sept. 2, 2020, 4:54 p.m. OK Java 11 TESTS 37 265 0
89596657 SunR1se B Aug. 11, 2020, 4:54 p.m. OK Java 11 TESTS 37 265 27852800
89385200 jongheon B Aug. 9, 2020, 8:32 a.m. OK Java 11 TESTS 37 280 24576000
89976012 bluesky111 B Aug. 14, 2020, 10:39 p.m. OK Java 8 TESTS 37 124 0
89730677 PratyushS7 B Aug. 12, 2020, 5:40 p.m. OK Java 8 TESTS 37 139 0
91177648 tarun_sm B Aug. 28, 2020, 4:01 a.m. OK Java 8 TESTS 37 140 0
89354292 ineffablekenobi B Aug. 8, 2020, 5:39 p.m. OK Java 8 TESTS 37 140 20480000
89399186 Nirav412000 B Aug. 9, 2020, 12:31 p.m. OK Java 8 TESTS 37 140 21196800
89641784 karthikch B Aug. 12, 2020, 10:20 a.m. OK Java 8 TESTS 37 155 20480000
89848637 Sjoa B Aug. 14, 2020, 6:59 a.m. OK Java 8 TESTS 37 171 0
89804063 manuforms1321 B Aug. 13, 2020, 2:42 p.m. OK Java 8 TESTS 37 171 0
89739960 vjvjain0 B Aug. 12, 2020, 7:28 p.m. OK Java 8 TESTS 37 171 0
90519087 wretar B Aug. 21, 2020, 9:25 a.m. OK Java 8 TESTS 37 171 20582400
89352569 Spheniscine B Aug. 8, 2020, 5:06 p.m. OK Kotlin TESTS 37 155 20684800
90660184 wuchaojie925 B Aug. 22, 2020, 6:24 a.m. OK Kotlin TESTS 37 218 26931200
89367409 a11eca B Aug. 9, 2020, 12:36 a.m. OK Kotlin TESTS 37 716 27750400
89512516 dkozak94 B Aug. 10, 2020, 1:18 p.m. OK Kotlin TESTS 37 888 25702400
89507060 koper B Aug. 10, 2020, 12:02 p.m. OK Kotlin TESTS 37 1357 39526400
91169268 Leemur B Aug. 27, 2020, 10 p.m. OK Kotlin TESTS 37 1762 7065600
89384860 eSeF_ B Aug. 9, 2020, 8:26 a.m. OK Mono C# TESTS 37 156 90009600
89802301 azukun B Aug. 13, 2020, 2:21 p.m. OK Mono C# TESTS 37 186 18739200
89587225 TRR B Aug. 11, 2020, 2:48 p.m. OK Mono C# TESTS 37 436 22323200
91662003 hhsaffar B Sept. 2, 2020, 5:07 p.m. OK Mono C# TESTS 37 483 24678400
91253616 jkroll87 B Aug. 29, 2020, 3:43 a.m. OK MS C++ 2017 TESTS 37 108 409600
91204528 scka B Aug. 28, 2020, 11:49 a.m. OK MS C++ 2017 TESTS 37 109 409600
91203342 jagajang B Aug. 28, 2020, 11:32 a.m. OK MS C++ 2017 TESTS 37 109 819200
89379785 danielson13579 B Aug. 9, 2020, 7:03 a.m. OK MS C++ 2017 TESTS 37 109 4505600
89556887 zjut201906150333zyf B Aug. 11, 2020, 7:20 a.m. OK MS C++ 2017 TESTS 37 140 8908800
91250386 wonbin0504 B Aug. 29, 2020, 1:44 a.m. OK MS C++ 2017 TESTS 37 186 409600
89392496 Ksenia_C B Aug. 9, 2020, 10:35 a.m. OK MS C++ 2017 TESTS 37 187 4096000
89370889 Biang-Biang B Aug. 9, 2020, 3:22 a.m. OK MS C++ 2017 TESTS 37 202 4096000
91251098 minigimbob B Aug. 29, 2020, 2:16 a.m. OK MS C++ 2017 TESTS 37 405 4300800
89775936 vjudge2 B Aug. 13, 2020, 8:32 a.m. OK MS C++ 2017 TESTS 37 514 716800
89348889 explorer_sifat B Aug. 8, 2020, 3:59 p.m. OK Node.js TESTS 37 780 41164800
89553598 samrcarr B Aug. 11, 2020, 6:27 a.m. OK Node.js TESTS 37 810 38297600
90414332 tutai B Aug. 19, 2020, 6:33 p.m. OK Node.js TESTS 37 826 28467200
89461187 realnimish B Aug. 9, 2020, 6:37 p.m. OK PyPy 2 TESTS 37 295 35942400
89499481 Coki628 B Aug. 10, 2020, 10:04 a.m. OK PyPy 2 TESTS 37 1886 32460800
89396944 thekushalghosh B Aug. 9, 2020, 11:52 a.m. OK PyPy 3 TESTS 37 436 30617600
89372997 rishabhrathi22 B Aug. 9, 2020, 4:29 a.m. OK PyPy 3 TESTS 37 467 32358400
89389020 xicarik B Aug. 9, 2020, 9:35 a.m. OK PyPy 3 TESTS 37 483 34304000
89354695 KevinyWu B Aug. 8, 2020, 5:47 p.m. OK PyPy 3 TESTS 37 530 35020800
89518515 nowrin_brown B Aug. 10, 2020, 2:36 p.m. OK PyPy 3 TESTS 37 561 40243200
90015913 DrTrue B Aug. 15, 2020, 11:53 a.m. OK PyPy 3 TESTS 37 608 13926400
90482984 kazukun1311 B Aug. 20, 2020, 4:52 p.m. OK PyPy 3 TESTS 37 623 16384000
89390442 petya47 B Aug. 9, 2020, 10 a.m. OK PyPy 3 TESTS 37 654 31846400
89385754 manhar B Aug. 9, 2020, 8:40 a.m. OK PyPy 3 TESTS 37 670 40140800
90634511 sumitthakur B Aug. 21, 2020, 7:46 p.m. OK PyPy 3 TESTS 37 701 39833600
89351005 sadikulsadi1500 B Aug. 8, 2020, 4:35 p.m. OK Python 3 TESTS 37 405 14336000
89404343 subhajitdas B Aug. 9, 2020, 1:55 p.m. OK Python 3 TESTS 37 405 16384000
89568601 ByMykel B Aug. 11, 2020, 10:24 a.m. OK Python 3 TESTS 37 405 17715200
89568718 ByMykel B Aug. 11, 2020, 10:26 a.m. OK Python 3 TESTS 37 452 17715200
90469539 Quicksnipe B Aug. 20, 2020, 2:09 p.m. OK Python 3 TESTS 37 514 8089600
89742646 shadoX B Aug. 12, 2020, 8:20 p.m. OK Python 3 TESTS 37 545 10547200
89742599 shadoX B Aug. 12, 2020, 8:19 p.m. OK Python 3 TESTS 37 545 11366400
90277125 srishti99 B Aug. 18, 2020, 5:06 a.m. OK Python 3 TESTS 37 577 9420800
89389678 ioldos B Aug. 9, 2020, 9:47 a.m. OK Python 3 TESTS 37 577 14131200
89487541 propashii B Aug. 10, 2020, 7 a.m. OK Python 3 TESTS 37 654 16896000
89580811 Strorkis B Aug. 11, 2020, 1:30 p.m. OK Rust TESTS 37 62 6963200

remove filters

Back to search problems