Codeforces Round 739 (Div. 3)

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
1560 Codeforces Round 739 (Div. 3) FINISHED False 8100 102525899 Aug. 18, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4424 ) F2 Nearest Beautiful Number (hard version) PROGRAMMING bitmasks brute force constructive algorithms dfs and similar dp greedy 2100

B'It is a complicated version of problem F1. The difference between them is the constraints (F1: k <= 2 , F2: k <= 10 ). You are given an integer n . Find the minimum integer x such that x ge n and the number x is k -beautiful. A number is called k -beautiful if its decimal representation having no leading zeroes contains no more than k different digits. E.g. if k = 2 , the numbers 3434443 , 55550 , 777 and 21 are k -beautiful whereas the numbers 120 , 445435 and 998244353 are not. The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then t test cases follow. Each test case consists of one line containing two integers n and k ( 1 <= n <= 10^9 , 1 <= k <= 10 ). For each test case output on a separate line x -- the minimum k -beautiful integer such that x ge n . '...

Tutorials

94009

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
126716239 mircea_007 F2 Aug. 22, 2021, 9:07 p.m. OK GNU C11 TESTS 34 46 3686400 2100
126579071 Chameleon216 F2 Aug. 21, 2021, 1:33 a.m. OK GNU C++14 TESTS 34 31 3686400 2100
126695033 Biadocy F2 Aug. 22, 2021, 2:18 p.m. OK GNU C++14 TESTS 34 31 3788800 2100
126679613 lenzer F2 Aug. 22, 2021, 9:41 a.m. OK GNU C++14 TESTS 34 31 3788800 2100
126673709 yiwu F2 Aug. 22, 2021, 7:57 a.m. OK GNU C++14 TESTS 34 31 3788800 2100
126547936 john9925 F2 Aug. 20, 2021, 2:53 p.m. OK GNU C++14 TESTS 34 31 3788800 2100
126664464 LovelyAnQi F2 Aug. 22, 2021, 4:40 a.m. OK GNU C++14 TESTS 34 31 3788800 2100
126764431 Genius_dream F2 Aug. 23, 2021, 1:57 p.m. OK GNU C++14 TESTS 34 31 3788800 2100
126963221 ProgrammatorZihad F2 Aug. 25, 2021, 11:21 a.m. OK GNU C++14 TESTS 34 31 3891200 2100
126814397 luogu_bot3 F2 Aug. 24, 2021, 7:14 a.m. OK GNU C++14 TESTS 34 31 3891200 2100
126814312 Fman2018 F2 Aug. 24, 2021, 7:13 a.m. OK GNU C++14 TESTS 34 31 3891200 2100
126734108 Caystle F2 Aug. 23, 2021, 6:36 a.m. OK GNU C++17 TESTS 34 31 3686400 2100
126676375 hydro-bot1 F2 Aug. 22, 2021, 8:45 a.m. OK GNU C++17 TESTS 34 31 3788800 2100
126920532 .rem F2 Aug. 24, 2021, 11:21 p.m. OK GNU C++17 TESTS 34 31 3788800 2100
126816302 Rainer1116 F2 Aug. 24, 2021, 7:36 a.m. OK GNU C++17 TESTS 34 31 3788800 2100
126783596 Lola0213 F2 Aug. 23, 2021, 6:04 p.m. OK GNU C++17 TESTS 34 31 3788800 2100
126762354 dargoncat F2 Aug. 23, 2021, 1:29 p.m. OK GNU C++17 TESTS 34 31 3788800 2100
126656282 vudeshmukh F2 Aug. 21, 2021, 11:14 p.m. OK GNU C++17 TESTS 34 31 3788800 2100
126623891 AwesomeHunter F2 Aug. 21, 2021, 1:12 p.m. OK GNU C++17 TESTS 34 31 3788800 2100
126600853 XiaoyuHan F2 Aug. 21, 2021, 8:15 a.m. OK GNU C++17 TESTS 34 31 3788800 2100
126590250 Hau F2 Aug. 21, 2021, 5:56 a.m. OK GNU C++17 TESTS 34 31 3788800 2100
126704753 doughnutik F2 Aug. 22, 2021, 4:34 p.m. OK GNU C++17 (64) TESTS 34 30 4300800 2100
126600171 MagicalSheep F2 Aug. 21, 2021, 8:07 a.m. OK GNU C++17 (64) TESTS 34 30 8499200 2100
126591619 shygo_cmll01 F2 Aug. 21, 2021, 6:19 a.m. OK GNU C++17 (64) TESTS 34 31 4198400 2100
126829408 Beas F2 Aug. 24, 2021, 10:36 a.m. OK GNU C++17 (64) TESTS 34 31 4300800 2100
126780717 ZeroScar F2 Aug. 23, 2021, 5:21 p.m. OK GNU C++17 (64) TESTS 34 31 4300800 2100
126777514 enjoying_loser_life F2 Aug. 23, 2021, 4:35 p.m. OK GNU C++17 (64) TESTS 34 31 4300800 2100
126772033 Ahmad45123 F2 Aug. 23, 2021, 3:25 p.m. OK GNU C++17 (64) TESTS 34 31 4300800 2100
126720350 prottoyfuad F2 Aug. 23, 2021, 12:39 a.m. OK GNU C++17 (64) TESTS 34 31 4300800 2100
126692745 antonkasko F2 Aug. 22, 2021, 1:42 p.m. OK GNU C++17 (64) TESTS 34 31 4300800 2100
126679224 nohaxjustsoflo F2 Aug. 22, 2021, 9:34 a.m. OK GNU C++17 (64) TESTS 34 31 4300800 2100
126683215 net12k44 F2 Aug. 22, 2021, 10:46 a.m. OK Java 11 TESTS 34 202 23756800 2100
126938700 akhileshreddy F2 Aug. 25, 2021, 6:04 a.m. OK Java 11 TESTS 34 202 23859200 2100
126714911 Ste F2 Aug. 22, 2021, 8:24 p.m. OK Java 11 TESTS 34 249 24678400 2100
126838026 nitesh.dtu F2 Aug. 24, 2021, 12:33 p.m. OK Java 11 TESTS 34 264 23859200 2100
126715508 Ste F2 Aug. 22, 2021, 8:43 p.m. OK Java 11 TESTS 34 264 24473600 2100
126692796 aniket2002 F2 Aug. 22, 2021, 1:43 p.m. OK Java 11 TESTS 34 343 25804800 2100
126799500 yogii_123 F2 Aug. 24, 2021, 2:52 a.m. OK Java 11 TESTS 34 374 23859200 2100
126924735 Blondie F2 Aug. 25, 2021, 1:57 a.m. OK Java 11 TESTS 34 389 23859200 2100
126647824 ilasiawo F2 Aug. 21, 2021, 6:50 p.m. OK Java 11 TESTS 34 389 24064000 2100
126583595 LiandrysAnguish F2 Aug. 21, 2021, 3:43 a.m. OK Java 11 TESTS 34 405 23961600 2100
126577952 yaoct F2 Aug. 21, 2021, 12:47 a.m. OK Java 8 TESTS 34 171 20787200 2100
126645615 nxtruong F2 Aug. 21, 2021, 6:12 p.m. OK Java 8 TESTS 34 280 21299200 2100
126562702 nxtruong F2 Aug. 20, 2021, 5:50 p.m. OK Java 8 TESTS 34 327 21299200 2100
126707128 FlameFire F2 Aug. 22, 2021, 5:23 p.m. OK Java 8 TESTS 34 405 20582400 2100
127010080 Miik3y F2 Aug. 26, 2021, 2:21 a.m. OK Java 8 TESTS 34 421 20582400 2100
126657811 FlameFire F2 Aug. 22, 2021, 12:39 a.m. OK Java 8 TESTS 34 451 21401600 2100
126657277 FlameFire F2 Aug. 22, 2021, 12:12 a.m. OK Java 8 TESTS 34 482 21606400 2100
126655729 inseder F2 Aug. 21, 2021, 10:44 p.m. OK Java 8 TESTS 34 561 21094400 2100
126706959 FlameFire F2 Aug. 22, 2021, 5:20 p.m. OK Java 8 TESTS 34 935 20582400 2100
126549939 Spheniscine F2 Aug. 20, 2021, 3:15 p.m. OK Kotlin TESTS 34 156 22835200 2100
126630819 Triss_Merigold F2 Aug. 21, 2021, 2:44 p.m. OK Kotlin TESTS 34 514 21196800 2100
126630449 Triss_Merigold F2 Aug. 21, 2021, 2:40 p.m. OK Kotlin TESTS 34 514 21913600 2100
126605473 shirkalinadarya F2 Aug. 21, 2021, 9:12 a.m. OK MS C++ 2017 TESTS 34 46 3788800 2100
126680819 son_of_terran_republic F2 Aug. 22, 2021, 10:02 a.m. OK MS C++ 2017 TESTS 34 93 3686400 2100
126560623 9I_HE_TbI_A_9I F2 Aug. 20, 2021, 5:22 p.m. OK MS C++ 2017 TESTS 34 93 3788800 2100
126629072 taotaotao123 F2 Aug. 21, 2021, 2:21 p.m. OK MS C++ 2017 TESTS 34 373 3788800 2100
126613522 fgwiebfaoish F2 Aug. 21, 2021, 10:48 a.m. OK .NET Core C# TESTS 34 108 15257600 2100
126552749 chinesedfan F2 Aug. 20, 2021, 3:44 p.m. OK Node.js TESTS 34 311 18739200 2100
126578304 BLUESKY007 F2 Aug. 21, 2021, 1:02 a.m. OK PyPy 3 TESTS 34 420 27852800 2100
126591298 PiKa_PiKaa_chuuu F2 Aug. 21, 2021, 6:14 a.m. OK PyPy 3 TESTS 34 420 29696000 2100
126735911 y_sharanya_02 F2 Aug. 23, 2021, 7:03 a.m. OK PyPy 3 TESTS 34 421 29388800 2100
126822787 sh_chae F2 Aug. 24, 2021, 9:02 a.m. OK PyPy 3 TESTS 34 436 29081600 2100
126700590 Noble_Mushtak F2 Aug. 22, 2021, 3:24 p.m. OK PyPy 3 TESTS 34 467 30310400 2100
126733709 Tiny_Snow F2 Aug. 23, 2021, 6:30 a.m. OK PyPy 3 TESTS 34 514 30003200 2100
126567928 Gygr F2 Aug. 20, 2021, 7:11 p.m. OK PyPy 3 TESTS 34 530 30720000 2100
126554671 artifexbm F2 Aug. 20, 2021, 4:06 p.m. OK PyPy 3 TESTS 34 530 94822400 2100
126717398 nitin4184 F2 Aug. 22, 2021, 9:51 p.m. OK PyPy 3 TESTS 34 654 29286400 2100
126686958 KeiTsukishima F2 Aug. 22, 2021, 11:55 a.m. OK PyPy 3 TESTS 34 670 29286400 2100
126770034 doni69 F2 Aug. 23, 2021, 3:02 p.m. OK Python 3 TESTS 34 265 6963200 2100
126709404 landylan F2 Aug. 22, 2021, 6:11 p.m. OK Python 3 TESTS 34 499 6963200 2100
126621960 _hoanglong_ F2 Aug. 21, 2021, 12:47 p.m. OK Python 3 TESTS 34 685 6963200 2100
126621154 _hoanglong_ F2 Aug. 21, 2021, 12:35 p.m. OK Python 3 TESTS 34 686 6963200 2100
126752340 abisheka1441 F2 Aug. 23, 2021, 11:05 a.m. OK Python 3 TESTS 34 748 6963200 2100
126591407 Brijesh03032001 F2 Aug. 21, 2021, 6:16 a.m. OK Python 3 TESTS 34 795 6963200 2100

remove filters

Back to search problems