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 107969063 Aug. 18, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6260 ) F1 Nearest Beautiful Number (easy version) PROGRAMMING binary search bitmasks brute force constructive algorithms dfs and similar greedy 1900

B'It is a simplified version of problem F2. 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 <= 2 ). 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
126720083 Biadocy F1 Aug. 23, 2021, 12:24 a.m. OK GNU C++14 TESTS 22 30 3788800 1900
126963248 ProgrammatorZihad F1 Aug. 25, 2021, 11:22 a.m. OK GNU C++14 TESTS 22 30 3891200 1900
126579086 Chameleon216 F1 Aug. 21, 2021, 1:33 a.m. OK GNU C++14 TESTS 22 31 3686400 1900
126547960 john9925 F1 Aug. 20, 2021, 2:53 p.m. OK GNU C++14 TESTS 22 31 3686400 1900
126744550 Derick126 F1 Aug. 23, 2021, 9:02 a.m. OK GNU C++14 TESTS 22 31 3788800 1900
126679586 lenzer F1 Aug. 22, 2021, 9:41 a.m. OK GNU C++14 TESTS 22 31 3788800 1900
126688842 Senri_Akane0217 F1 Aug. 22, 2021, 12:30 p.m. OK GNU C++14 TESTS 22 31 3788800 1900
126882703 Lese F1 Aug. 24, 2021, 3:56 p.m. OK GNU C++14 TESTS 22 31 3788800 1900
126846013 MonthlyMango F1 Aug. 24, 2021, 2:20 p.m. OK GNU C++14 TESTS 22 31 3788800 1900
126794459 Potassium F1 Aug. 23, 2021, 11:22 p.m. OK GNU C++14 TESTS 22 31 3788800 1900
126656299 vudeshmukh F1 Aug. 21, 2021, 11:14 p.m. OK GNU C++17 TESTS 22 30 3788800 1900
126657847 panlining F1 Aug. 22, 2021, 12:41 a.m. OK GNU C++17 TESTS 22 30 3788800 1900
126734132 Caystle F1 Aug. 23, 2021, 6:37 a.m. OK GNU C++17 TESTS 22 31 3686400 1900
126701437 neil145912 F1 Aug. 22, 2021, 3:36 p.m. OK GNU C++17 TESTS 22 31 3788800 1900
126920541 .rem F1 Aug. 24, 2021, 11:21 p.m. OK GNU C++17 TESTS 22 31 3788800 1900
126845991 VisenG F1 Aug. 24, 2021, 2:20 p.m. OK GNU C++17 TESTS 22 31 3788800 1900
126815319 Rainer1116 F1 Aug. 24, 2021, 7:25 a.m. OK GNU C++17 TESTS 22 31 3788800 1900
126790005 boi1234 F1 Aug. 23, 2021, 8:15 p.m. OK GNU C++17 TESTS 22 31 3788800 1900
126783604 Lola0213 F1 Aug. 23, 2021, 6:04 p.m. OK GNU C++17 TESTS 22 31 3788800 1900
126696115 lsc2001 F1 Aug. 22, 2021, 2:34 p.m. OK GNU C++17 TESTS 22 31 3788800 1900
126659100 GsjzTle F1 Aug. 22, 2021, 1:41 a.m. OK GNU C++17 (64) TESTS 22 30 4300800 1900
126611541 ivan100sic F1 Aug. 21, 2021, 10:23 a.m. OK GNU C++17 (64) TESTS 22 30 4300800 1900
126601892 icey_z F1 Aug. 21, 2021, 8:28 a.m. OK GNU C++17 (64) TESTS 22 31 4300800 1900
126780707 ZeroScar F1 Aug. 23, 2021, 5:21 p.m. OK GNU C++17 (64) TESTS 22 31 4300800 1900
126775260 BlueDiamond F1 Aug. 23, 2021, 4:04 p.m. OK GNU C++17 (64) TESTS 22 31 4300800 1900
126772047 Ahmad45123 F1 Aug. 23, 2021, 3:25 p.m. OK GNU C++17 (64) TESTS 22 31 4300800 1900
126704765 doughnutik F1 Aug. 22, 2021, 4:34 p.m. OK GNU C++17 (64) TESTS 22 31 4300800 1900
126679239 nohaxjustsoflo F1 Aug. 22, 2021, 9:34 a.m. OK GNU C++17 (64) TESTS 22 31 4300800 1900
126588377 akshaygahlot73 F1 Aug. 21, 2021, 5:24 a.m. OK GNU C++17 (64) TESTS 22 31 4300800 1900
126600735 MagicalSheep F1 Aug. 21, 2021, 8:14 a.m. OK GNU C++17 (64) TESTS 22 31 8499200 1900
126683235 net12k44 F1 Aug. 22, 2021, 10:47 a.m. OK Java 11 TESTS 22 202 23859200 1900
126837995 nitesh.dtu F1 Aug. 24, 2021, 12:32 p.m. OK Java 11 TESTS 22 218 23859200 1900
126813031 akhileshreddy F1 Aug. 24, 2021, 6:59 a.m. OK Java 11 TESTS 22 233 23859200 1900
126978047 bittubittu F1 Aug. 25, 2021, 2:36 p.m. OK Java 11 TESTS 22 233 24166400 1900
126714943 Ste F1 Aug. 22, 2021, 8:25 p.m. OK Java 11 TESTS 22 234 24576000 1900
126625173 ypa F1 Aug. 21, 2021, 1:30 p.m. OK Java 11 TESTS 22 264 24064000 1900
126623586 ypa F1 Aug. 21, 2021, 1:08 p.m. OK Java 11 TESTS 22 295 24064000 1900
126924131 Blondie F1 Aug. 25, 2021, 1:41 a.m. OK Java 11 TESTS 22 327 23859200 1900
127004142 LNB F1 Aug. 25, 2021, 9:48 p.m. OK Java 11 TESTS 22 342 24166400 1900
126628442 ilasiawo F1 Aug. 21, 2021, 2:13 p.m. OK Java 11 TESTS 22 358 24268800 1900
126697566 lcheeme1 F1 Aug. 22, 2021, 2:58 p.m. OK Java 8 TESTS 22 140 21094400 1900
126639958 inseder F1 Aug. 21, 2021, 4:42 p.m. OK Java 8 TESTS 22 218 20480000 1900
126623058 inseder F1 Aug. 21, 2021, 1:02 p.m. OK Java 8 TESTS 22 233 20480000 1900
126546986 piyush33patel F1 Aug. 20, 2021, 2:43 p.m. OK Java 8 TESTS 22 280 26521600 1900
126804479 Helloworld_shorya F1 Aug. 24, 2021, 4:54 a.m. OK Java 8 TESTS 22 343 25497600 1900
126562649 nxtruong F1 Aug. 20, 2021, 5:49 p.m. OK Java 8 TESTS 22 389 21299200 1900
127010070 Miik3y F1 Aug. 26, 2021, 2:21 a.m. OK Java 8 TESTS 22 405 20582400 1900
126550035 Spheniscine F1 Aug. 20, 2021, 3:16 p.m. OK Kotlin TESTS 22 155 22835200 1900
126601792 amanpatel23 F1 Aug. 21, 2021, 8:27 a.m. OK Kotlin TESTS 22 186 23449600 1900
126630503 Triss_Merigold F1 Aug. 21, 2021, 2:40 p.m. OK Kotlin TESTS 22 498 21913600 1900
126605439 shirkalinadarya F1 Aug. 21, 2021, 9:12 a.m. OK MS C++ 2017 TESTS 22 46 3788800 1900
126659235 camacju F1 Aug. 22, 2021, 1:47 a.m. OK MS C++ 2017 TESTS 22 77 3788800 1900
126560610 9I_HE_TbI_A_9I F1 Aug. 20, 2021, 5:22 p.m. OK MS C++ 2017 TESTS 22 93 3788800 1900
126704225 Brostin F1 Aug. 22, 2021, 4:23 p.m. OK MS C++ 2017 TESTS 22 93 3788800 1900
126629554 taotaotao123 F1 Aug. 21, 2021, 2:28 p.m. OK MS C++ 2017 TESTS 22 405 3788800 1900
126589312 fgwiebfaoish F1 Aug. 21, 2021, 5:40 a.m. OK .NET Core C# TESTS 22 124 15462400 1900
126552632 chinesedfan F1 Aug. 20, 2021, 3:43 p.m. OK Node.js TESTS 22 343 20070400 1900
126543218 IkshitG F1 Aug. 20, 2021, 2 p.m. OK PyPy 2 TESTS 22 374 31539200 1900
126756461 ktthree F1 Aug. 23, 2021, 12:08 p.m. OK PyPy 3 TESTS 22 187 25907200 1900
126728943 cloak F1 Aug. 23, 2021, 5:02 a.m. OK PyPy 3 TESTS 22 280 30003200 1900
126771532 skp_r F1 Aug. 23, 2021, 3:19 p.m. OK PyPy 3 TESTS 22 295 29900800 1900
126700578 Noble_Mushtak F1 Aug. 22, 2021, 3:24 p.m. OK PyPy 3 TESTS 22 420 30105600 1900
126733680 Tiny_Snow F1 Aug. 23, 2021, 6:30 a.m. OK PyPy 3 TESTS 22 452 29900800 1900
126554716 artifexbm F1 Aug. 20, 2021, 4:07 p.m. OK PyPy 3 TESTS 22 499 94720000 1900
126686985 KeiTsukishima F1 Aug. 22, 2021, 11:56 a.m. OK PyPy 3 TESTS 22 561 28569600 1900
126605207 WOIOT F1 Aug. 21, 2021, 9:09 a.m. OK PyPy 3 TESTS 22 577 31744000 1900
126717409 nitin4184 F1 Aug. 22, 2021, 9:52 p.m. OK PyPy 3 TESTS 22 623 29798400 1900
126567913 Gygr F1 Aug. 20, 2021, 7:11 p.m. OK PyPy 3 TESTS 22 623 30003200 1900
126770069 doni69 F1 Aug. 23, 2021, 3:03 p.m. OK Python 3 TESTS 22 265 6963200 1900
126709420 landylan F1 Aug. 22, 2021, 6:12 p.m. OK Python 3 TESTS 22 498 6963200 1900
126989018 abisheka1441 F1 Aug. 25, 2021, 4:46 p.m. OK Python 3 TESTS 22 514 31846400 1900
126621006 _hoanglong_ F1 Aug. 21, 2021, 12:33 p.m. OK Python 3 TESTS 22 717 6963200 1900

remove filters

Back to search problems