Codeforces Round 695 (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
1467 Codeforces Round 695 (Div. 2) FINISHED False 7200 127149862 Jan. 8, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24565 ) A Wizard of Orz PROGRAMMING greedy math 900

B'There are n digital panels placed in a straight line. Each panel can show any digit from 0 to 9 . Initially, all panels show 0 . Every second, the digit shown by each panel increases by 1 . In other words, at the end of every second, a panel that showed 9 would now show 0 , a panel that showed 0 would now show 1 , a panel that showed 1 would now show 2 , and so on. When a panel is paused, the digit displayed on the panel does not change in the subsequent seconds. You must pause exactly one of these panels, at any second you wish. Then, the panels adjacent to it get paused one second later, the panels adjacent to those get paused 2 seconds later, and so on. In other words, if you pause panel x , panel y (for all valid y ) would be paused exactly |x xe2 x88 x92y| seconds later. For example, suppose there are 4 panels, and the 3 -rd panel is paused when the digit 9 is on it. The resulting 4 -digit number is 1090 . Note that this example is not optimal for n = 4 . Once all panels have been paused, you write the digits displayed on them from left to right, to form an n digit number (it can consist of leading zeros). What is the largest possible number you can get? Initially, all panels show 0 . The first line of the input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. Each test case consists of a single line containing a single integer n ( 1 <= n <= 2 cdot10^5 ). It is guaranteed that the sum of n over all test cases does not exceed 2 cdot10^5 . For each test case, print the largest number you can achieve, if you pause one panel optimally. In the first test case, it is optimal to pause the first panel when the number 9 is displayed on it. In the second test case, it is optimal to pause the second panel when the number 8 is displayed on it. '...

Tutorials

Codeforces Round #695 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
103820381 surajhanvate07 A Jan. 8, 2021, 6:24 p.m. OK GNU C11 TESTS 3 15 0 900
103830197 ramvenkat98 A Jan. 8, 2021, 8:53 p.m. OK GNU C11 TESTS 3 15 204800 900
103813827 SajibKC_19 A Jan. 8, 2021, 5:22 p.m. OK GNU C11 TESTS 3 31 204800 900
103812283 Louiii27 A Jan. 8, 2021, 5:11 p.m. OK GNU C11 TESTS 3 623 0 900
103802830 Jyothika_Sai A Jan. 8, 2021, 4:24 p.m. OK GNU C11 TESTS 3 623 3993600 900
103836699 Roob A Jan. 9, 2021, 12:24 a.m. OK GNU C11 TESTS 3 624 0 900
103810611 tasnifsimanto99 A Jan. 8, 2021, 5:02 p.m. OK GNU C11 TESTS 3 624 819200 900
103837560 zja601 A Jan. 9, 2021, 12:55 a.m. OK GNU C11 TESTS 3 639 0 900
103838893 forcedsmile A Jan. 9, 2021, 1:46 a.m. OK GNU C11 TESTS 3 639 0 900
103848062 Shelby_Jp A Jan. 9, 2021, 5:36 a.m. OK GNU C11 TESTS 3 639 0 900
103845823 Aakash9518 A Jan. 9, 2021, 4:51 a.m. OK GNU C++11 TESTS 3 0 512000 900
103802784 Loop_2015 A Jan. 8, 2021, 4:24 p.m. OK GNU C++11 TESTS 3 15 0 900
103809014 circletime A Jan. 8, 2021, 4:34 p.m. OK GNU C++11 TESTS 3 15 0 900
103843891 masud.compiler A Jan. 9, 2021, 4:05 a.m. OK GNU C++11 TESTS 3 15 0 900
103842115 Ghost2.0 A Jan. 9, 2021, 3:23 a.m. OK GNU C++11 TESTS 3 15 0 900
103841602 74Nanashi A Jan. 9, 2021, 3:09 a.m. OK GNU C++11 TESTS 3 15 0 900
103838510 NineT8 A Jan. 9, 2021, 1:29 a.m. OK GNU C++11 TESTS 3 15 0 900
103837944 Visitor01 A Jan. 9, 2021, 1:08 a.m. OK GNU C++11 TESTS 3 15 0 900
103820550 shashank_095 A Jan. 8, 2021, 6:26 p.m. OK GNU C++11 TESTS 3 15 0 900
103846486 vaibhavpratap85 A Jan. 9, 2021, 5:06 a.m. OK GNU C++11 TESTS 3 15 512000 900
103848997 chhajed7890 A Jan. 9, 2021, 5:51 a.m. OK GNU C++14 TESTS 3 15 0 900
103849112 komalhere A Jan. 9, 2021, 5:53 a.m. OK GNU C++14 TESTS 3 15 0 900
103846484 himanshu6 A Jan. 9, 2021, 5:06 a.m. OK GNU C++14 TESTS 3 15 0 900
103846137 VIRAT_SHARMA A Jan. 9, 2021, 4:58 a.m. OK GNU C++14 TESTS 3 15 0 900
103844684 antidote A Jan. 9, 2021, 4:25 a.m. OK GNU C++14 TESTS 3 15 0 900
103842405 dmdivyansh_113 A Jan. 9, 2021, 3:30 a.m. OK GNU C++14 TESTS 3 15 0 900
103842118 ram.18 A Jan. 9, 2021, 3:23 a.m. OK GNU C++14 TESTS 3 15 0 900
103840898 survival_001 A Jan. 9, 2021, 2:49 a.m. OK GNU C++14 TESTS 3 15 0 900
103840595 link_nlf A Jan. 9, 2021, 2:39 a.m. OK GNU C++14 TESTS 3 15 0 900
103839982 flpt0x A Jan. 9, 2021, 2:22 a.m. OK GNU C++14 TESTS 3 15 0 900
103846208 SShoney1 A Jan. 9, 2021, 4:59 a.m. OK GNU C++17 TESTS 3 0 0 900
103839361 zhoubenshan A Jan. 9, 2021, 2:01 a.m. OK GNU C++17 TESTS 3 0 0 900
103823091 0216dream A Jan. 8, 2021, 6:54 p.m. OK GNU C++17 TESTS 3 0 0 900
103822643 gray_coder101 A Jan. 8, 2021, 6:49 p.m. OK GNU C++17 TESTS 3 0 512000 900
103846343 Abdur_Rahim A Jan. 9, 2021, 5:03 a.m. OK GNU C++17 TESTS 3 15 0 900
103846474 _fire_fly_ A Jan. 9, 2021, 5:06 a.m. OK GNU C++17 TESTS 3 15 0 900
103846558 CavP1 A Jan. 9, 2021, 5:08 a.m. OK GNU C++17 TESTS 3 15 0 900
103846903 tvcv901 A Jan. 9, 2021, 5:15 a.m. OK GNU C++17 TESTS 3 15 0 900
103848477 201801133 A Jan. 9, 2021, 5:43 a.m. OK GNU C++17 TESTS 3 15 0 900
103849413 Miraizu A Jan. 9, 2021, 5:57 a.m. OK GNU C++17 TESTS 3 15 0 900
103818393 Randle A Jan. 8, 2021, 6:04 p.m. OK GNU C++17 (64) TESTS 3 0 0 900
103847775 Tzak A Jan. 9, 2021, 5:31 a.m. OK GNU C++17 (64) TESTS 3 0 512000 900
103843538 vincent97198 A Jan. 9, 2021, 3:57 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103845755 Chet8n A Jan. 9, 2021, 4:49 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103845562 DrinkMoreBoilingWater A Jan. 9, 2021, 4:45 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103845362 vipin__sharma A Jan. 9, 2021, 4:41 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103844065 ssquare_07 A Jan. 9, 2021, 4:09 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103840111 rniya A Jan. 9, 2021, 2:26 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103846914 Archi A Jan. 9, 2021, 5:15 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103848672 SorryNaCN A Jan. 9, 2021, 5:46 a.m. OK GNU C++17 (64) TESTS 3 15 0 900
103839814 0x3F A Jan. 9, 2021, 2:16 a.m. OK Go TESTS 3 15 204800 900
103844027 sam_code A Jan. 9, 2021, 4:08 a.m. OK Java 11 TESTS 3 155 0 900
103812421 ArcTanZ A Jan. 8, 2021, 5:12 p.m. OK Java 11 TESTS 3 155 0 900
103819900 reennn A Jan. 8, 2021, 6:19 p.m. OK Java 11 TESTS 3 156 0 900
103847110 anshum_it_is A Jan. 9, 2021, 5:19 a.m. OK Java 11 TESTS 3 170 0 900
103846679 RuthlessAggression A Jan. 9, 2021, 5:10 a.m. OK Java 11 TESTS 3 171 0 900
103825397 _prophet A Jan. 8, 2021, 7:25 p.m. OK Java 11 TESTS 3 171 0 900
103824530 vishrut19399 A Jan. 8, 2021, 7:13 p.m. OK Java 11 TESTS 3 171 0 900
103822234 PetrNguyen A Jan. 8, 2021, 6:45 p.m. OK Java 11 TESTS 3 171 0 900
103815384 HastaLaVistaLa A Jan. 8, 2021, 5:36 p.m. OK Java 11 TESTS 3 171 0 900
103813272 gssakash A Jan. 8, 2021, 5:18 p.m. OK Java 11 TESTS 3 171 0 900
103812740 supratikp A Jan. 8, 2021, 5:14 p.m. OK Java 8 TESTS 3 93 0 900
103826842 dmorolia A Jan. 8, 2021, 7:48 p.m. OK Java 8 TESTS 3 93 0 900
103823288 harshits337 A Jan. 8, 2021, 6:56 p.m. OK Java 8 TESTS 3 108 0 900
103822780 flyman3046 A Jan. 8, 2021, 6:51 p.m. OK Java 8 TESTS 3 108 0 900
103816148 unhackenyed A Jan. 8, 2021, 5:43 p.m. OK Java 8 TESTS 3 108 0 900
103806728 revanthreddy85 A Jan. 8, 2021, 4:31 p.m. OK Java 8 TESTS 3 108 0 900
103813028 Gupta-OP A Jan. 8, 2021, 5:16 p.m. OK Java 8 TESTS 3 108 0 900
103829434 Blowy A Jan. 8, 2021, 8:36 p.m. OK Java 8 TESTS 3 108 0 900
103845142 Peeyush24 A Jan. 9, 2021, 4:36 a.m. OK Java 8 TESTS 3 109 0 900
103847530 RonWonWon A Jan. 9, 2021, 5:27 a.m. OK Java 8 TESTS 3 109 0 900
103826359 Mahafuj A Jan. 8, 2021, 7:40 p.m. OK JavaScript TESTS 3 61 10956800 900
103821252 Karleone A Jan. 8, 2021, 6:34 p.m. OK Kotlin TESTS 3 109 0 900
103816415 catforce A Jan. 8, 2021, 5:45 p.m. OK Kotlin TESTS 3 124 0 900
103818062 raghav_0901 A Jan. 8, 2021, 6:01 p.m. OK Kotlin TESTS 3 155 0 900
103816204 arpit_malhotra A Jan. 8, 2021, 5:43 p.m. OK Kotlin TESTS 3 717 0 900
103813354 ustaritz A Jan. 8, 2021, 5:18 p.m. OK MS C++ 2017 TESTS 3 15 614400 900
103843380 Buzz_BEAR A Jan. 9, 2021, 3:53 a.m. OK MS C++ 2017 TESTS 3 30 512000 900
103847631 Bor_dialog A Jan. 9, 2021, 5:29 a.m. OK MS C++ 2017 TESTS 3 31 0 900
103810989 Nikhil4848 A Jan. 8, 2021, 5:04 p.m. OK MS C++ 2017 TESTS 3 31 614400 900
103822906 rp202910 A Jan. 8, 2021, 6:52 p.m. OK MS C++ 2017 TESTS 3 93 0 900
103846255 panyamtarun15 A Jan. 9, 2021, 5:01 a.m. OK MS C++ 2017 TESTS 3 93 0 900
103841135 Agumon A Jan. 9, 2021, 2:56 a.m. OK MS C++ 2017 TESTS 3 93 0 900
103836632 MANISH___negi A Jan. 9, 2021, 12:22 a.m. OK MS C++ 2017 TESTS 3 93 0 900
103835054 FatahChan A Jan. 8, 2021, 11:11 p.m. OK MS C++ 2017 TESTS 3 93 0 900
103829175 jivanijeet A Jan. 8, 2021, 8:30 p.m. OK MS C++ 2017 TESTS 3 93 0 900
103840630 DeathChanter A Jan. 9, 2021, 2:40 a.m. OK .NET Core C# TESTS 3 607 409600 900
103848196 samnoon A Jan. 9, 2021, 5:39 a.m. OK Node.js TESTS 3 62 11264000 900
103844963 sharma_utkarsh A Jan. 9, 2021, 4:32 a.m. OK PyPy 2 TESTS 3 61 819200 900
103822868 beethoven97 A Jan. 8, 2021, 6:52 p.m. OK PyPy 2 TESTS 3 62 7577600 900
103817251 sainad A Jan. 8, 2021, 5:53 p.m. OK PyPy 3 TESTS 3 77 1024000 900
103849319 tamaa A Jan. 9, 2021, 5:56 a.m. OK PyPy 3 TESTS 3 92 1024000 900
103820179 iamsarvesh A Jan. 8, 2021, 6:22 p.m. OK PyPy 3 TESTS 3 93 6246400 900
103819632 aditya48 A Jan. 8, 2021, 6:16 p.m. OK PyPy 3 TESTS 3 93 7680000 900
103845663 iafpilot A Jan. 9, 2021, 4:47 a.m. OK PyPy 3 TESTS 3 108 1024000 900
103839847 WhyManWhy A Jan. 9, 2021, 2:17 a.m. OK PyPy 3 TESTS 3 108 1024000 900
103840087 Ayushman_500 A Jan. 9, 2021, 2:25 a.m. OK PyPy 3 TESTS 3 108 1331200 900
103823873 mrinal2233 A Jan. 8, 2021, 7:04 p.m. OK PyPy 3 TESTS 3 108 1433600 900
103843498 DOOMJUICE A Jan. 9, 2021, 3:56 a.m. OK PyPy 3 TESTS 3 108 8192000 900
103816901 Apoorv_Rathore A Jan. 8, 2021, 5:50 p.m. OK PyPy 3 TESTS 3 108 8192000 900
103849297 phuocchubeo A Jan. 9, 2021, 5:56 a.m. OK Python 3 TESTS 3 46 409600 900
103847550 Nitin408 A Jan. 9, 2021, 5:27 a.m. OK Python 3 TESTS 3 46 409600 900
103849103 Laveen2001 A Jan. 9, 2021, 5:53 a.m. OK Python 3 TESTS 3 46 614400 900
103828322 prackode A Jan. 8, 2021, 8:13 p.m. OK Python 3 TESTS 3 46 716800 900
103818587 fancyviper007 A Jan. 8, 2021, 6:06 p.m. OK Python 3 TESTS 3 46 1433600 900
103826409 tayyrov A Jan. 8, 2021, 7:41 p.m. OK Python 3 TESTS 3 61 1331200 900
103825526 sh1194 A Jan. 8, 2021, 7:27 p.m. OK Python 3 TESTS 3 61 2048000 900
103845095 himika A Jan. 9, 2021, 4:35 a.m. OK Python 3 TESTS 3 62 716800 900
103832625 karim.cossentini A Jan. 8, 2021, 9:53 p.m. OK Python 3 TESTS 3 62 819200 900
103821653 abhisheka950 A Jan. 8, 2021, 6:38 p.m. OK Python 3 TESTS 3 62 4198400 900
103847909 kyon2326 A Jan. 9, 2021, 5:34 a.m. OK Ruby TESTS 3 248 819200 900
103802756 GraphTheory A Jan. 8, 2021, 4:24 p.m. OK Rust TESTS 3 46 0 900
103838721 GunDone A Jan. 9, 2021, 1:39 a.m. OK Scala TESTS 3 468 0 900

remove filters

Back to search problems