Codeforces Round 730 (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
1543 Codeforces Round 730 (Div. 2) FINISHED False 8100 111597863 July 7, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2036 ) D2 RPD and Rap Sheet (Hard Version) PROGRAMMING constructive algorithms dp interactive math

B"This is the hard version of the problem. The only difference is that here 2 <= q k <= q 100 . You can make hacks only if both the versions of the problem are solved. This is an interactive problem! Every decimal number has a base k equivalent. The individual digits of a base k number are called k -its. Let's define the k -itwise XOR of two k -its a and b as (a + b) bmod k . The k -itwise XOR of two base k numbers is equal to the new number formed by taking the k -itwise XOR of their corresponding k -its. The k -itwise XOR of two decimal numbers a and b is denoted by a oplus_{k} b and is equal to the decimal representation of the k -itwise XOR of the base k representations of a and b . All further numbers used in the statement below are in decimal unless specified. You have hacked the criminal database of Rockport Police Department (RPD), also known as the Rap Sheet. But in order to access it, you require a password. You don't know it, but you are quite sure that it lies between 0 and n-1 inclusive. So, you have decided to guess it. Luckily, you can try at most n times without being blocked by the system. But the system is adaptive. Each time you make an incorrect guess, it changes the password. Specifically, if the password before the guess was x , and you guess a different number y , then the system changes the password to a number z such that x oplus_{k} z=y . Guess the password and break into the system. The first line of input contains a single integer t ( 1 <= q t <= q 10 ,000 ) denoting the number of test cases. t test cases follow. The first line of each test case contains two integers n ( 1 <= q n <= q 2 cdot 10^5 ) and k (2 <= q k <= q 100) . It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, first read "...

Tutorials

Codeforces Round #730 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
121667819 ssvb D2 July 7, 2021, 11:15 p.m. OK D TESTS 26 2011 1945600
121657029 rainboy D2 July 7, 2021, 6:57 p.m. OK GNU C11 TESTS 26 1622 0
121655087 myx12345 D2 July 7, 2021, 6:37 p.m. OK GNU C++11 TESTS 26 889 0
121659980 eight_cloud_purple D2 July 7, 2021, 7:40 p.m. OK GNU C++11 TESTS 26 904 819200
121655904 pikapikachu D2 July 7, 2021, 6:45 p.m. OK GNU C++11 TESTS 26 920 0
121677152 Fuko_Ibuki D2 July 8, 2021, 3:29 a.m. OK GNU C++11 TESTS 26 920 8396800
121679620 CK2021 D2 July 8, 2021, 4:12 a.m. OK GNU C++11 TESTS 26 935 0
121679539 gzchenben D2 July 8, 2021, 4:11 a.m. OK GNU C++11 TESTS 26 951 0
121644191 gaoxiangyi D2 July 7, 2021, 4:40 p.m. OK GNU C++11 TESTS 26 951 0
121654874 pikapikachu D2 July 7, 2021, 6:35 p.m. OK GNU C++11 TESTS 26 966 0
121678737 dreagonm D2 July 8, 2021, 3:57 a.m. OK GNU C++11 TESTS 26 982 0
121674767 XueYJ D2 July 8, 2021, 2:46 a.m. OK GNU C++11 TESTS 26 982 0
121641396 shadow_ink D2 July 7, 2021, 4:33 p.m. OK GNU C++14 TESTS 26 1450 0
121673730 ngpin04 D2 July 8, 2021, 2:23 a.m. OK GNU C++14 TESTS 26 1513 204800
121662955 Ruki.cf D2 July 7, 2021, 8:37 p.m. OK GNU C++14 TESTS 26 1543 0
121647505 zekrom_dream D2 July 7, 2021, 4:47 p.m. OK GNU C++14 TESTS 26 1543 0
121671746 Paulliant D2 July 8, 2021, 1:38 a.m. OK GNU C++14 TESTS 26 1559 0
121641640 Deaga D2 July 7, 2021, 4:34 p.m. OK GNU C++14 TESTS 26 1560 0
121646911 Zinn D2 July 7, 2021, 4:46 p.m. OK GNU C++14 TESTS 26 1590 0
121642045 draco976 D2 July 7, 2021, 4:35 p.m. OK GNU C++14 TESTS 26 1590 0
121671328 Paulliant D2 July 8, 2021, 1:28 a.m. OK GNU C++14 TESTS 26 1606 0
121661564 chthollist D2 July 7, 2021, 8:08 p.m. OK GNU C++14 TESTS 26 1606 0
121648544 GamerAva D2 July 7, 2021, 4:49 p.m. OK GNU C++17 TESTS 26 1310 0
121643039 acwing_choufeng D2 July 7, 2021, 4:37 p.m. OK GNU C++17 TESTS 26 1466 0
121648807 GabrijeI D2 July 7, 2021, 4:49 p.m. OK GNU C++17 TESTS 26 1466 102400
121679589 seanLuo D2 July 8, 2021, 4:12 a.m. OK GNU C++17 TESTS 26 1481 0
121672109 lotato D2 July 8, 2021, 1:46 a.m. OK GNU C++17 TESTS 26 1481 0
121665492 vyer D2 July 7, 2021, 9:46 p.m. OK GNU C++17 TESTS 26 1481 0
121643089 naoya_t D2 July 7, 2021, 4:38 p.m. OK GNU C++17 TESTS 26 1481 0
121642071 Jackylkk2003 D2 July 7, 2021, 4:35 p.m. OK GNU C++17 TESTS 26 1481 102400
121648063 Trinadh724 D2 July 7, 2021, 4:48 p.m. OK GNU C++17 TESTS 26 1482 0
121685824 int_mian D2 July 8, 2021, 5:41 a.m. OK GNU C++17 TESTS 26 1496 2048000
121672047 lelbaba D2 July 8, 2021, 1:45 a.m. OK GNU C++17 (64) TESTS 26 1356 0
121643038 Chocola4ever D2 July 7, 2021, 4:37 p.m. OK GNU C++17 (64) TESTS 26 1372 9113600
121672506 dblark D2 July 8, 2021, 1:56 a.m. OK GNU C++17 (64) TESTS 26 1388 0
121669249 harsh_arora D2 July 8, 2021, 12:20 a.m. OK GNU C++17 (64) TESTS 26 1388 0
121676311 inszva D2 July 8, 2021, 3:14 a.m. OK GNU C++17 (64) TESTS 26 1419 0
121673331 HolyK D2 July 8, 2021, 2:15 a.m. OK GNU C++17 (64) TESTS 26 1419 0
121669129 _JY D2 July 8, 2021, 12:16 a.m. OK GNU C++17 (64) TESTS 26 1419 0
121663259 Thesircastor D2 July 7, 2021, 8:43 p.m. OK GNU C++17 (64) TESTS 26 1419 0
121677528 AndreyPavlov D2 July 8, 2021, 3:35 a.m. OK GNU C++17 (64) TESTS 26 1419 1638400
121687040 DreamingLeaf D2 July 8, 2021, 5:55 a.m. OK GNU C++17 (64) TESTS 26 1434 0
121654156 augurar D2 July 7, 2021, 6:29 p.m. OK Java 8 TESTS 26 2323 0
121657808 Hakiobo D2 July 7, 2021, 7:06 p.m. OK Kotlin TESTS 26 2340 1024000
121659937 lightseba D2 July 7, 2021, 7:39 p.m. OK Kotlin TESTS 26 2370 204800
121657970 Hakiobo D2 July 7, 2021, 7:08 p.m. OK Kotlin TESTS 26 2449 102400
121660062 lightseba D2 July 7, 2021, 7:41 p.m. OK Kotlin TESTS 26 2588 102400
121644581 jaime_spat D2 July 7, 2021, 4:41 p.m. OK MS C++ 2017 TESTS 26 2043 0
121642296 fgwiebfaoish D2 July 7, 2021, 4:36 p.m. OK .NET Core C# TESTS 26 1996 4198400
121675561 Mukundan314 D2 July 8, 2021, 3:01 a.m. OK PyPy 2 TESTS 26 2761 10752000
121654215 acorn11 D2 July 7, 2021, 6:30 p.m. OK PyPy 2 TESTS 26 3400 5017600
121658599 tcltk D2 July 7, 2021, 7:17 p.m. OK PyPy 3 TESTS 26 4523 13107200
121676785 bot_yaya D2 July 8, 2021, 3:23 a.m. OK PyPy 3 TESTS 26 4695 17920000
121658981 tcltk D2 July 7, 2021, 7:22 p.m. OK PyPy 3 TESTS 26 4819 12697600
121679300 yzh2021 D2 July 8, 2021, 4:07 a.m. OK PyPy 3 TESTS 26 4897 12697600
121652527 not_tehlka D2 July 7, 2021, 6:18 p.m. OK PyPy 3 TESTS 26 4897 13824000
121642607 tehlka D2 July 7, 2021, 4:36 p.m. OK PyPy 3 TESTS 26 4897 13824000
121678554 yzh2021 D2 July 8, 2021, 3:54 a.m. OK PyPy 3 TESTS 26 4913 11673600
121676755 bot_yaya D2 July 8, 2021, 3:22 a.m. OK PyPy 3 TESTS 26 4976 18124800

remove filters

Back to search problems