Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!)

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
1774 Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!) FINISHED False 9000 65978663 Dec. 17, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 720 ) F2 Magician and Pigs (Hard Version) PROGRAMMING brute force data structures

B"This is the hard version of the problem. The only difference between the two versions is the constraint on n and x . You can make hacks only if both versions of the problem are solved. Little09 has been interested in magic for a long time, and it's so lucky that he meets a magician! The magician will perform n operations, each of them is one of the following three: A pig will die when its Health Point is less than or equal to 0 . Little09 wants to know how many living pigs there are after all the operations. Please, print the answer modulo 998 ,244 ,353 . The first line contains a single integer n ( 1 <= q n <= q 8 cdot 10^5 ) -- the number of operations. Each of the following n lines contains an operation given in the form described in the problem statement. It's guaranteed that 1 <= q x <= q 10^9 in operations of the first two types. Print a single integer -- the number of living pigs after all the operations, modulo 998 ,244 ,353 . In the first example, the operations are equivalent to repeating four times: create a pig with 8 Health Points and then reduce the Health Points of all living pigs by 3 . It is easy to find that there are two living pigs in the end with 2 and 5 Health Points. "...

Tutorials

Polynomial Round 2022 (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
185718564 rainboy F2 Dec. 17, 2022, 6:47 p.m. OK GNU C11 TESTS 192 312 6451200
185704875 wiIIiam555 F2 Dec. 17, 2022, 4:52 p.m. OK GNU C++14 TESTS 192 420 25702400
185701611 huangzirui F2 Dec. 17, 2022, 4:42 p.m. OK GNU C++14 TESTS 192 483 35328000
185716790 BaoJiaoPisu F2 Dec. 17, 2022, 6:34 p.m. OK GNU C++14 TESTS 192 483 44134400
185738637 Alfnov F2 Dec. 18, 2022, 1:20 a.m. OK GNU C++14 TESTS 192 561 9625600
185702239 ZayinLoveDafeng F2 Dec. 17, 2022, 4:44 p.m. OK GNU C++14 TESTS 192 561 32665600
185710333 Nerovix F2 Dec. 17, 2022, 5:04 p.m. OK GNU C++14 TESTS 192 561 38502400
185703504 AlphaAurigae F2 Dec. 17, 2022, 4:48 p.m. OK GNU C++14 TESTS 192 561 40038400
185727914 yao11617 F2 Dec. 17, 2022, 8:33 p.m. OK GNU C++14 TESTS 192 764 8396800
185723012 jack112739 F2 Dec. 17, 2022, 7:30 p.m. OK GNU C++17 TESTS 192 389 23449600
185750889 sd0061 F2 Dec. 18, 2022, 5:43 a.m. OK GNU C++17 TESTS 192 452 6451200
185717395 kristevalex F2 Dec. 17, 2022, 6:38 p.m. OK GNU C++17 TESTS 192 452 12800000
185726160 Farhod_Farmon F2 Dec. 17, 2022, 8:08 p.m. OK GNU C++17 TESTS 192 452 19251200
185751202 T_yunhui F2 Dec. 18, 2022, 5:47 a.m. OK GNU C++17 TESTS 192 483 25600000
185699959 blackyuki F2 Dec. 17, 2022, 4:37 p.m. OK GNU C++17 TESTS 192 483 40755200
185716057 Cxny F2 Dec. 17, 2022, 6:30 p.m. OK GNU C++17 TESTS 192 498 6451200
185717652 simpatine F2 Dec. 17, 2022, 6:40 p.m. OK GNU C++17 TESTS 192 498 19251200
185721093 KrK F2 Dec. 17, 2022, 7:11 p.m. OK GNU C++17 TESTS 192 499 16076800
185733446 stefanbalaz2 F2 Dec. 17, 2022, 10:16 p.m. OK GNU C++17 TESTS 192 499 31846400
185702470 TQX F2 Dec. 17, 2022, 4:45 p.m. OK GNU C++17 (64) TESTS 192 93 18022400
185727202 Benq F2 Dec. 17, 2022, 8:23 p.m. OK GNU C++17 (64) TESTS 192 295 28774400
185702597 nigus F2 Dec. 17, 2022, 4:45 p.m. OK GNU C++17 (64) TESTS 192 296 32051200
185707595 natsugiri F2 Dec. 17, 2022, 4:59 p.m. OK GNU C++17 (64) TESTS 192 327 23040000
185702759 rushbtonight F2 Dec. 17, 2022, 4:46 p.m. OK GNU C++17 (64) TESTS 192 327 32051200
185707507 Rafbill F2 Dec. 17, 2022, 4:59 p.m. OK GNU C++17 (64) TESTS 192 327 32768000
185742062 zhangboju F2 Dec. 18, 2022, 2:56 a.m. OK GNU C++17 (64) TESTS 192 373 16076800
185744486 Alex_Wei F2 Dec. 18, 2022, 3:54 a.m. OK GNU C++17 (64) TESTS 192 390 16076800
185703163 gqf123 F2 Dec. 17, 2022, 4:47 p.m. OK GNU C++17 (64) TESTS 192 420 32051200
185743956 rniya F2 Dec. 18, 2022, 3:41 a.m. OK GNU C++17 (64) TESTS 192 561 69017600
185728340 DeadlyPillow F2 Dec. 17, 2022, 8:39 p.m. OK GNU C++20 (64) TESTS 192 218 9625600
185732398 Boboge F2 Dec. 17, 2022, 9:51 p.m. OK GNU C++20 (64) TESTS 192 234 6451200
185706510 wildfire032 F2 Dec. 17, 2022, 4:56 p.m. OK GNU C++20 (64) TESTS 192 234 9625600
185726068 smax F2 Dec. 17, 2022, 8:07 p.m. OK GNU C++20 (64) TESTS 192 249 9625600
185716047 fallleaves01 F2 Dec. 17, 2022, 6:30 p.m. OK GNU C++20 (64) TESTS 192 249 9625600
185731997 arvindr9 F2 Dec. 17, 2022, 9:41 p.m. OK GNU C++20 (64) TESTS 192 249 12800000
185715738 jtnydv25 F2 Dec. 17, 2022, 6:29 p.m. OK GNU C++20 (64) TESTS 192 249 19251200
185731246 LoboLobo F2 Dec. 17, 2022, 9:27 p.m. OK GNU C++20 (64) TESTS 192 249 25702400
185727170 dmenezes F2 Dec. 17, 2022, 8:23 p.m. OK GNU C++20 (64) TESTS 192 249 32051200
185706796 dl720125 F2 Dec. 17, 2022, 4:57 p.m. OK GNU C++20 (64) TESTS 192 249 32768000
185703289 Hakiobo F2 Dec. 17, 2022, 4:47 p.m. OK Kotlin 1.6 TESTS 192 1747 78336000
185701381 sansen F2 Dec. 17, 2022, 4:42 p.m. OK Rust 2021 TESTS 192 1169 43110400

remove filters

Back to search problems