2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules)

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
1468 2020-2021 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules) FINISHED False 18000 167595884 Dec. 25, 2020, 11:35 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 10278 ) C Berpizza PROGRAMMING data structures implementation

Monocarp and Polycarp are working as waiters in Berpizza, a pizzeria located near the center of Bertown. Since they are waiters, their job is to serve the customers, but they choose whom they serve first differently. At the start of the working day, there are no customers at the Berpizza. They come there one by one. When a customer comes into the pizzeria, she sits and waits for Monocarp or Polycarp to serve her. Monocarp has been working in Berpizza for just two weeks, so whenever he serves a customer, he simply chooses the one who came to Berpizza first, and serves that customer. On the other hand, Polycarp is an experienced waiter at Berpizza, and he knows which customers are going to spend a lot of money at the pizzeria (and which aren't) as soon as he sees them. For each customer, Polycarp estimates the amount of money this customer can spend, and when he serves a customer, he chooses the one that is expected to leave the most money at Berpizza (in case there are several such customers, he chooses the one who came first among them). Obviously, no customer can be served twice, so Monocarp and Polycarp choose which customer to serve only among those who haven't been served yet. When the number of customers gets really high, it becomes difficult for both Monocarp and Polycarp to choose the customer they are going to serve. Your task is to write a program that makes these choices for them. Formally, your program should be able to process three types of queries: For each query of types 2 and 3 , report the number of the customer who was served (the customers are numbered in the order they come to the pizzeria, starting from 1 ). The first line contains one integer q ( 2 <= q <= 5 cdot 10^5 ) -- the number of queries. Then q lines follow, each describing a query in one of the following formats: Queries of type 2 and 3 are asked only when there exists at least one customer that hasn't been served yet. There i

Tutorials

Tutorial (PDF)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
102305791 i_m_a C Dec. 25, 2020, 12:03 p.m. OK GNU C++11 TESTS 78 93 7168000
102304787 cbio AzusaCat hs-black C Dec. 25, 2020, 11:56 a.m. OK GNU C++11 TESTS 78 108 12800000
102306622 Shrimp__ C Dec. 25, 2020, 12:09 p.m. OK GNU C++11 TESTS 78 124 9216000
102305078 cqyzzzx mlcd _Viole_ C Dec. 25, 2020, 11:58 a.m. OK GNU C++11 TESTS 78 124 10342400
102306381 RingweEH C Dec. 25, 2020, 12:07 p.m. OK GNU C++11 TESTS 78 124 11161600
102304349 sunzihao YLWang C Dec. 25, 2020, 11:53 a.m. OK GNU C++11 TESTS 78 140 7884800
102304005 FisherKing tianxiawoyou tianbu C Dec. 25, 2020, 11:51 a.m. OK GNU C++11 TESTS 78 140 10854400
102305595 C20192413 Lucky_Glass C Dec. 25, 2020, 12:01 p.m. OK GNU C++11 TESTS 78 140 11366400
102307457 hzoiliuchang2 C Dec. 25, 2020, 12:15 p.m. OK GNU C++11 TESTS 78 140 11673600
102306220 xzx34 zlt1117 Yukikaze_ C Dec. 25, 2020, 12:06 p.m. OK GNU C++11 TESTS 78 156 26316800
102309626 the_iridescent_on3 Uosmoy_A. artugal_28_373 C Dec. 25, 2020, 12:31 p.m. OK GNU C++14 TESTS 78 202 8192000
102305751 Reiketsu Nekketsu Tekketsu C Dec. 25, 2020, 12:03 p.m. OK GNU C++14 TESTS 78 202 8192000
102308681 koulsanchit Siyaana agarwal101sanchit C Dec. 25, 2020, 12:24 p.m. OK GNU C++14 TESTS 78 202 9728000
102306039 muzzafer5 amangoel1234 Shreyas_9991 C Dec. 25, 2020, 12:04 p.m. OK GNU C++14 TESTS 78 217 11776000
102304550 rishit3234 ishabhray ReiKiriyama_red C Dec. 25, 2020, 11:54 a.m. OK GNU C++14 TESTS 78 218 26726400
102355247 novice_coder31 C Dec. 25, 2020, 10:01 p.m. OK GNU C++14 TESTS 78 233 23142400
102358675 YJJ_Konnyaku C Dec. 26, 2020, 12:39 a.m. OK GNU C++14 TESTS 78 234 5734400
102305266 C20191629 TiwAirOAO C Dec. 25, 2020, 11:59 a.m. OK GNU C++14 TESTS 78 234 6860800
102306737 algodoer C Dec. 25, 2020, 12:09 p.m. OK GNU C++14 TESTS 78 234 8396800
102312634 jinboy73 C Dec. 25, 2020, 12:54 p.m. OK GNU C++14 TESTS 78 249 6860800
102305249 _Backl1ght C Dec. 25, 2020, 11:59 a.m. OK GNU C++17 TESTS 78 109 8806400
102323125 aniket.nsit.2000 pj423 C Dec. 25, 2020, 2:19 p.m. OK GNU C++17 TESTS 78 202 7884800
102314548 pz1971 C Dec. 25, 2020, 1:09 p.m. OK GNU C++17 TESTS 78 202 8704000
102318359 GodGiYeon C Dec. 25, 2020, 1:40 p.m. OK GNU C++17 TESTS 78 202 9318400
102305510 Aphelios C Dec. 25, 2020, 12:01 p.m. OK GNU C++17 TESTS 78 202 9318400
102357437 Manshi C Dec. 25, 2020, 11:38 p.m. OK GNU C++17 TESTS 78 202 9728000
102333346 sktcodeforces chirantan ashishjaiswal1712 C Dec. 25, 2020, 3:45 p.m. OK GNU C++17 TESTS 78 202 9728000
102345411 sarveshraut123 C Dec. 25, 2020, 6:39 p.m. OK GNU C++17 TESTS 78 202 14131200
102308139 kitesho C Dec. 25, 2020, 12:20 p.m. OK GNU C++17 TESTS 78 217 9728000
102349237 kanisht_09 C Dec. 25, 2020, 7:40 p.m. OK GNU C++17 TESTS 78 218 9318400
102345632 magnus.hegdahl C Dec. 25, 2020, 6:42 p.m. OK GNU C++17 (64) TESTS 78 62 27545600
102303667 QAQAutoMaton PinkRabbit C Dec. 25, 2020, 11:49 a.m. OK GNU C++17 (64) TESTS 78 77 13619200
102341282 magnus.hegdahl C Dec. 25, 2020, 5:38 p.m. OK GNU C++17 (64) TESTS 78 93 31129600
102321798 ainta C Dec. 25, 2020, 2:08 p.m. OK GNU C++17 (64) TESTS 78 109 49766400
102305457 ConanYu SprinkleYu Madeline C Dec. 25, 2020, 12:01 p.m. OK GNU C++17 (64) TESTS 78 155 6348800
102306706 Tiramister C Dec. 25, 2020, 12:09 p.m. OK GNU C++17 (64) TESTS 78 171 6860800
102356779 MA123 C Dec. 25, 2020, 11:04 p.m. OK GNU C++17 (64) TESTS 78 171 7475200
102304521 hotman78 KKT_89 Hyado C Dec. 25, 2020, 11:54 a.m. OK GNU C++17 (64) TESTS 78 171 7680000
102304377 Giada dario2994 C Dec. 25, 2020, 11:53 a.m. OK GNU C++17 (64) TESTS 78 171 7884800
102304783 pachico riantkb mtsd C Dec. 25, 2020, 11:56 a.m. OK GNU C++17 (64) TESTS 78 171 9011200
102307661 soumit915 C Dec. 25, 2020, 12:16 p.m. OK Java 11 TESTS 78 405 35328000
102310849 mr13dynamo akman10 C Dec. 25, 2020, 12:40 p.m. OK Java 11 TESTS 78 607 38092800
102305825 chris_11 C Dec. 25, 2020, 12:03 p.m. OK Java 11 TESTS 78 670 53145600
102306029 insert_cool_handle C Dec. 25, 2020, 12:04 p.m. OK Java 11 TESTS 78 1122 78745600
102308370 sf14t C Dec. 25, 2020, 12:22 p.m. OK Java 11 TESTS 78 1528 91443200
102314501 yuzo-san C Dec. 25, 2020, 1:09 p.m. OK Java 11 TESTS 78 1544 57036800
102323380 godxpunk C Dec. 25, 2020, 2:21 p.m. OK Java 8 TESTS 78 389 19558400
102310449 Jetman C Dec. 25, 2020, 12:37 p.m. OK Java 8 TESTS 78 451 21811200
102310729 dewanshnigam C Dec. 25, 2020, 12:39 p.m. OK Java 8 TESTS 78 467 38092800
102321211 moli2398 C Dec. 25, 2020, 2:04 p.m. OK Java 8 TESTS 78 499 28979200
102313446 kamel C Dec. 25, 2020, 1 p.m. OK Java 8 TESTS 78 623 39731200
102314162 prasoon006 C Dec. 25, 2020, 1:06 p.m. OK Java 8 TESTS 78 670 38400000
102306480 nitin_codr sudhanshu_lucky C Dec. 25, 2020, 12:08 p.m. OK Java 8 TESTS 78 717 43827200
102310215 Error_2.0 UPSC1002 naitikvarshney77 C Dec. 25, 2020, 12:35 p.m. OK Java 8 TESTS 78 1153 138854400
102308925 d4rkc0de C Dec. 25, 2020, 12:26 p.m. OK Java 8 TESTS 78 1512 67788800
102334750 vive_k jaswanthkarangula15 C Dec. 25, 2020, 3:58 p.m. OK Java 8 TESTS 78 2948 59494400
102361032 Spheniscine C Dec. 26, 2020, 2:24 a.m. OK Kotlin TESTS 78 420 18944000
102322150 wu_sir C Dec. 25, 2020, 2:11 p.m. OK MS C++ 2017 TESTS 78 374 13926400
102323202 samcpp C Dec. 25, 2020, 2:20 p.m. OK MS C++ 2017 TESTS 78 623 15052800
102341985 Gravekper C Dec. 25, 2020, 5:53 p.m. OK MS C++ 2017 TESTS 78 670 18944000
102311369 hruif C Dec. 25, 2020, 12:44 p.m. OK MS C++ 2017 TESTS 78 998 18636800
102335286 Torehalt C Dec. 25, 2020, 4:04 p.m. OK MS C++ 2017 TESTS 78 1169 32153600
102308290 FullMetalLeon C Dec. 25, 2020, 12:21 p.m. OK MS C++ 2017 TESTS 78 1575 16076800
102358840 kagu C Dec. 26, 2020, 12:47 a.m. OK PyPy 2 TESTS 78 1356 23961600
102358908 kagu C Dec. 26, 2020, 12:50 a.m. OK PyPy 2 TESTS 78 2714 30720000
102358935 kagu C Dec. 26, 2020, 12:51 a.m. OK PyPy 2 TESTS 78 2714 32256000
102310381 DaddyCool__69 Satwik_Tiwari C Dec. 25, 2020, 12:37 p.m. OK PyPy 3 TESTS 78 936 43417600
102321992 silvertint C Dec. 25, 2020, 2:10 p.m. OK PyPy 3 TESTS 78 1091 24166400
102311154 aswn_rj blackfyre01 C Dec. 25, 2020, 12:42 p.m. OK PyPy 3 TESTS 78 1263 46387200
102361055 YMSeah C Dec. 26, 2020, 2:26 a.m. OK PyPy 3 TESTS 78 1497 42803200
102304891 karthikeya619 alphatron99 Kishen19 C Dec. 25, 2020, 11:56 a.m. OK PyPy 3 TESTS 78 1762 70656000
102308786 SPD_9X2 C Dec. 25, 2020, 12:25 p.m. OK PyPy 3 TESTS 78 3930 27136000
102315159 lowzhao C Dec. 25, 2020, 1:14 p.m. OK Python 3 TESTS 78 1949 42393600
102350434 sh1194 C Dec. 25, 2020, 8 p.m. OK Python 3 TESTS 78 2402 77721600
102319699 neha190301 Lone_Star ankit022 C Dec. 25, 2020, 1:51 p.m. OK Python 3 TESTS 78 2433 77721600
102321592 subhu2008 C Dec. 25, 2020, 2:07 p.m. OK Python 3 TESTS 78 3618 59494400
102304923 sansen C Dec. 25, 2020, 11:57 a.m. OK Rust TESTS 78 234 28057600
102293656 C Dec. 25, 2020, 9:38 a.m. OK Unknown TESTS 0 0 0
102293646 C Dec. 25, 2020, 9:38 a.m. OK Unknown TESTS 0 0 0
102293645 C Dec. 25, 2020, 9:38 a.m. OK Unknown TESTS 0 0 0
102293417 C Dec. 25, 2020, 9:38 a.m. OK Unknown TESTS 0 0 0

remove filters

Back to search problems