Codeforces Round 740 (Div. 2, based on VK Cup 2021 - Final (Engine))

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
1561 Codeforces Round 740 (Div. 2, based on VK Cup 2021 - Final (Engine)) FINISHED False 9000 107364263 Aug. 24, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5696 ) D1 Up the Strip (simplified version) PROGRAMMING brute force data structures dp math number theory 1700

B'This version of the problem differs from the next one only in the constraint on n . Note that the memory limit in this problem is lower than in others. You have a vertical strip with n cells, numbered consecutively from 1 to n from top to bottom. You also have a token that is initially placed in cell n . You will move the token up until it arrives at cell 1 . Let the token be in cell x > 1 at some moment. One shift of the token can have either of the following kinds: Find the number of ways to move the token from cell n to cell 1 using one or more shifts, and print it modulo m . Note that if there are several ways to move the token from one cell to another in one shift, all these ways are considered distinct (check example explanation for a better understanding). The only line contains two integers n and m ( 2 <= n <= 2 cdot 10^5 ; 10^8 < m < 10^9 ; m is a prime number) -- the length of the strip and the modulo. Print the number of ways to move the token from cell n to cell 1 , modulo m . In the first test, there are three ways to move the token from cell 3 to cell 1 in one shift: using subtraction of y = 2 , or using division by z = 2 or z = 3 . There are also two ways to move the token from cell 3 to cell 1 via cell 2 : first subtract y = 1 , and then either subtract y = 1 again or divide by z = 2 . Therefore, there are five ways in total. '...

Tutorials

Codeforces Round #740 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
126920613 ssvb D1 Aug. 24, 2021, 11:26 p.m. OK D TESTS 20 3228 18227200 1700
126942769 Leasier D1 Aug. 25, 2021, 6:56 a.m. OK GNU C11 TESTS 20 2776 26112000 1700
126925754 iterater D1 Aug. 25, 2021, 2:24 a.m. OK GNU C++14 TESTS 20 30 35840000 1700
126909623 moidda D1 Aug. 24, 2021, 6:22 p.m. OK GNU C++14 TESTS 20 31 4505600 1700
126931490 marcOS D1 Aug. 25, 2021, 4:12 a.m. OK GNU C++14 TESTS 20 31 4505600 1700
127001194 amaras D1 Aug. 25, 2021, 8:19 p.m. OK GNU C++14 TESTS 20 31 35840000 1700
126954873 lzc2001 D1 Aug. 25, 2021, 9:22 a.m. OK GNU C++14 TESTS 20 31 35840000 1700
126923861 bkifhr10 D1 Aug. 25, 2021, 1:35 a.m. OK GNU C++14 TESTS 20 31 35840000 1700
126945117 never_stop_rating D1 Aug. 25, 2021, 7:23 a.m. OK GNU C++14 TESTS 20 31 67891200 1700
126973152 YangTY D1 Aug. 25, 2021, 1:37 p.m. OK GNU C++14 TESTS 20 31 68608000 1700
126977208 Ericxiaoxi D1 Aug. 25, 2021, 2:26 p.m. OK GNU C++14 TESTS 20 46 4505600 1700
126932843 Araragi D1 Aug. 25, 2021, 4:38 a.m. OK GNU C++14 TESTS 20 46 4505600 1700
126919710 fxhd D1 Aug. 24, 2021, 10:33 p.m. OK GNU C++17 TESTS 20 15 5324800 1700
126988746 tosbryan D1 Aug. 25, 2021, 4:42 p.m. OK GNU C++17 TESTS 20 30 3788800 1700
126909574 18o3 D1 Aug. 24, 2021, 6:22 p.m. OK GNU C++17 TESTS 20 30 5324800 1700
126909588 jesuswr D1 Aug. 24, 2021, 6:22 p.m. OK GNU C++17 TESTS 20 30 35840000 1700
126941385 qinghua D1 Aug. 25, 2021, 6:40 a.m. OK GNU C++17 TESTS 20 30 83865600 1700
126989370 tosbryan D1 Aug. 25, 2021, 4:51 p.m. OK GNU C++17 TESTS 20 31 3686400 1700
126989164 tosbryan D1 Aug. 25, 2021, 4:48 p.m. OK GNU C++17 TESTS 20 31 3788800 1700
126989068 tosbryan D1 Aug. 25, 2021, 4:46 p.m. OK GNU C++17 TESTS 20 31 3788800 1700
126986194 Misaka_19090 D1 Aug. 25, 2021, 4:09 p.m. OK GNU C++17 TESTS 20 31 4505600 1700
126984645 Firefrog418 D1 Aug. 25, 2021, 3:51 p.m. OK GNU C++17 TESTS 20 31 4505600 1700
126920405 llllllll D1 Aug. 24, 2021, 11:15 p.m. OK GNU C++17 (64) TESTS 20 15 5120000 1700
126914097 Leeisateam D1 Aug. 24, 2021, 7:37 p.m. OK GNU C++17 (64) TESTS 20 30 5939200 1700
126914086 Leeisateam D1 Aug. 24, 2021, 7:37 p.m. OK GNU C++17 (64) TESTS 20 30 5939200 1700
126969488 Ray_Striker D1 Aug. 25, 2021, 12:50 p.m. OK GNU C++17 (64) TESTS 20 30 7475200 1700
126914039 Leeisateam D1 Aug. 24, 2021, 7:36 p.m. OK GNU C++17 (64) TESTS 20 30 36352000 1700
126918980 shefin.cse16 D1 Aug. 24, 2021, 10:01 p.m. OK GNU C++17 (64) TESTS 20 30 68403200 1700
126995669 AnandOza D1 Aug. 25, 2021, 6:30 p.m. OK GNU C++17 (64) TESTS 20 31 5120000 1700
127007242 Bench0310 D1 Aug. 26, 2021, 12:37 a.m. OK GNU C++17 (64) TESTS 20 31 5939200 1700
126973236 prabhAmbrose D1 Aug. 25, 2021, 1:38 p.m. OK GNU C++17 (64) TESTS 20 31 5939200 1700
126960382 mohitsethia D1 Aug. 25, 2021, 10:40 a.m. OK GNU C++17 (64) TESTS 20 31 5939200 1700
126968146 dagnaf D1 Aug. 25, 2021, 12:29 p.m. OK Go TESTS 20 62 12288000 1700
126963156 bluesky111 D1 Aug. 25, 2021, 11:20 a.m. OK Java 11 TESTS 20 187 23552000 1700
126919699 Auriels_Ascension D1 Aug. 24, 2021, 10:33 p.m. OK Java 11 TESTS 20 202 23654400 1700
127009859 Nicolas125841 D1 Aug. 26, 2021, 2:14 a.m. OK Java 11 TESTS 20 249 24064000 1700
126984845 dinosparton_013 D1 Aug. 25, 2021, 3:53 p.m. OK Java 11 TESTS 20 264 23654400 1700
126955609 Matheolympiade D1 Aug. 25, 2021, 9:31 a.m. OK Java 11 TESTS 20 264 24064000 1700
126918433 LiandrysAnguish D1 Aug. 24, 2021, 9:42 p.m. OK Java 11 TESTS 20 280 23552000 1700
126930030 Plums D1 Aug. 25, 2021, 3:46 a.m. OK Java 11 TESTS 20 592 23552000 1700
126957622 KGECian_23 D1 Aug. 25, 2021, 9:59 a.m. OK Java 11 TESTS 20 1840 23756800 1700
126957588 KGECian_23 D1 Aug. 25, 2021, 9:58 a.m. OK Java 11 TESTS 20 1886 113356800 1700
126908850 pili D1 Aug. 24, 2021, 6:12 p.m. OK Java 11 TESTS 20 2293 64921600 1700
126921019 coolManit D1 Aug. 24, 2021, 11:52 p.m. OK Java 8 TESTS 20 108 26316800 1700
126910410 bubnov D1 Aug. 24, 2021, 6:33 p.m. OK Java 8 TESTS 20 155 26214400 1700
126917547 FlameFire D1 Aug. 24, 2021, 9:11 p.m. OK Java 8 TESTS 20 1746 26214400 1700
126961695 smahajan54842 D1 Aug. 25, 2021, 10:59 a.m. OK Java 8 TESTS 20 2152 44032000 1700
126961674 Admin07 D1 Aug. 25, 2021, 10:58 a.m. OK Java 8 TESTS 20 2152 44032000 1700
126923909 FlameFire D1 Aug. 25, 2021, 1:36 a.m. OK Java 8 TESTS 20 2230 26214400 1700
126991715 Embrion_top D1 Aug. 25, 2021, 5:26 p.m. OK Java 8 TESTS 20 2323 26214400 1700
126913347 pras7946 D1 Aug. 24, 2021, 7:23 p.m. OK Java 8 TESTS 20 2402 26726400 1700
126928218 Shemo D1 Aug. 25, 2021, 3:11 a.m. OK Java 8 TESTS 20 2433 26214400 1700
126978538 priyam_anand D1 Aug. 25, 2021, 2:42 p.m. OK Java 8 TESTS 20 3057 26214400 1700
126978427 IAmTheNight2000 D1 Aug. 25, 2021, 2:41 p.m. OK MS C++ 2017 TESTS 20 1591 5324800 1700
126911795 Eldies D1 Aug. 24, 2021, 6:54 p.m. OK MS C++ 2017 TESTS 20 1856 5324800 1700
126908615 GPA_person D1 Aug. 24, 2021, 6:10 p.m. OK MS C++ 2017 TESTS 20 2105 6963200 1700
126938279 wenmingjianpanxia D1 Aug. 25, 2021, 5:58 a.m. OK MS C++ 2017 TESTS 20 2776 5324800 1700
126989002 ShallowKiss D1 Aug. 25, 2021, 4:45 p.m. OK MS C++ 2017 TESTS 20 3510 19763200 1700
126942747 TcherM1023 D1 Aug. 25, 2021, 6:56 a.m. OK MS C++ 2017 TESTS 20 4633 6963200 1700
126942567 TcherM1023 D1 Aug. 25, 2021, 6:54 a.m. OK MS C++ 2017 TESTS 20 5225 6963200 1700
126931004 azukun D1 Aug. 25, 2021, 4:03 a.m. OK .NET Core C# TESTS 20 1606 13004800 1700
127000810 kagu D1 Aug. 25, 2021, 8:10 p.m. OK PyPy 2 TESTS 20 5584 35737600 1700
127000760 kagu D1 Aug. 25, 2021, 8:09 p.m. OK PyPy 2 TESTS 20 5724 35737600 1700
126999192 acorn11 D1 Aug. 25, 2021, 7:35 p.m. OK PyPy 2 TESTS 20 5896 36044800 1700
126998992 acorn11 D1 Aug. 25, 2021, 7:31 p.m. OK PyPy 2 TESTS 20 5974 36044800 1700
126917849 D3structor D1 Aug. 24, 2021, 9:22 p.m. OK PyPy 3 TESTS 20 109 23859200 1700
126916552 D3structor D1 Aug. 24, 2021, 8:39 p.m. OK PyPy 3 TESTS 20 109 23961600 1700
126912032 misorin D1 Aug. 24, 2021, 6:58 p.m. OK PyPy 3 TESTS 20 124 23142400 1700
126919367 hxu10 D1 Aug. 24, 2021, 10:17 p.m. OK PyPy 3 TESTS 20 124 23756800 1700
126915824 D3structor D1 Aug. 24, 2021, 8:18 p.m. OK PyPy 3 TESTS 20 124 23961600 1700
126986143 Mahdi01 D1 Aug. 25, 2021, 4:08 p.m. OK PyPy 3 TESTS 20 140 23961600 1700
126910905 PiKa_PiKaa_chuuu D1 Aug. 24, 2021, 6:41 p.m. OK PyPy 3 TESTS 20 155 23756800 1700
127010462 phantomxxx D1 Aug. 26, 2021, 2:31 a.m. OK PyPy 3 TESTS 20 156 23756800 1700
126998885 RANK1ZEN D1 Aug. 25, 2021, 7:29 p.m. OK PyPy 3 TESTS 20 170 23961600 1700
126917791 songtae D1 Aug. 24, 2021, 9:20 p.m. OK PyPy 3 TESTS 20 171 24064000 1700
126957868 sh1194 D1 Aug. 25, 2021, 10:02 a.m. OK Python 3 TESTS 20 2558 14336000 1700
126912527 apilat D1 Aug. 24, 2021, 7:07 p.m. OK Rust TESTS 20 109 5427200 1700
126938735 bqn D1 Aug. 25, 2021, 6:04 a.m. OK Rust TESTS 20 2293 5427200 1700

remove filters

Back to search problems