Codeforces Round 891 (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
1857 Codeforces Round 891 (Div. 3) FINISHED False 8100 45761063 Aug. 7, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23382 ) B Maximum Rounding PROGRAMMING greedy implementation math

B'Given a natural number x . You can perform the following operation: Note that the positions are numbered from right to left, starting from zero. If the number has k digits, it is considered that the digit at the k -th position is equal to 0 . The rounding is done as follows: Your task is to make x as large as possible, if you can perform the operation as many times as you want. For example, if x is equal to 3451 , then if you choose consecutively: The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of positive integer x with a length of up to 2 cdot 10^5 . It is guaranteed that there are no leading zeros in the integer. It is guaranteed that the sum of the lengths of all integers x over all test cases does not exceed 2 cdot 10^5 . For each set of input data, output the maximum possible value of x after the operations. The number should not have leading zeros in its representation. In the first sample, it is better not to perform any operations. In the second sample, you can perform one operation and obtain 10 . In the third sample, you can choose k=1 or k=2 . In both cases the answer will be 100 . '...

Tutorials

119134

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
217776580 saudades B Aug. 8, 2023, 12:23 a.m. OK Clang++17 Diagnostics TESTS 6 467 21299200
217745231 girual2004 B Aug. 7, 2023, 5:26 p.m. OK GNU C11 TESTS 6 46 204800
217808771 zhaoyuze B Aug. 8, 2023, 5:18 a.m. OK GNU C11 TESTS 6 62 204800
217751640 jmawa1163 B Aug. 7, 2023, 6:09 p.m. OK GNU C11 TESTS 6 78 204800
217776058 Hanx16 B Aug. 8, 2023, 12:13 a.m. OK GNU C++14 TESTS 6 15 204800
217806648 CLOCKS_PER_SEC B Aug. 8, 2023, 4:55 a.m. OK GNU C++14 TESTS 6 15 204800
217809261 Sundar_2022 B Aug. 8, 2023, 5:23 a.m. OK GNU C++14 TESTS 6 15 204800
217808970 shivamagarwaloff B Aug. 8, 2023, 5:20 a.m. OK GNU C++14 TESTS 6 15 512000
217808361 suraj.xd B Aug. 8, 2023, 5:14 a.m. OK GNU C++14 TESTS 6 15 512000
217806718 MongoRolls B Aug. 8, 2023, 4:55 a.m. OK GNU C++14 TESTS 6 15 512000
217805970 9toothbrushes B Aug. 8, 2023, 4:47 a.m. OK GNU C++14 TESTS 6 15 512000
217801804 yaohaoyou B Aug. 8, 2023, 3:53 a.m. OK GNU C++14 TESTS 6 15 512000
217801324 Abhay5055 B Aug. 8, 2023, 3:48 a.m. OK GNU C++14 TESTS 6 15 512000
217800387 Hossam._.Ali B Aug. 8, 2023, 3:37 a.m. OK GNU C++14 TESTS 6 15 512000
217765771 rb003 B Aug. 7, 2023, 8:24 p.m. OK GNU C++17 TESTS 6 0 512000
217761293 MostafaMohamed537 B Aug. 7, 2023, 7:34 p.m. OK GNU C++17 TESTS 6 0 512000
217774172 Nolv B Aug. 7, 2023, 11:23 p.m. OK GNU C++17 TESTS 6 0 512000
217776010 hungntils B Aug. 8, 2023, 12:12 a.m. OK GNU C++17 TESTS 6 0 512000
217812162 op122_ B Aug. 8, 2023, 5:53 a.m. OK GNU C++17 TESTS 6 0 512000
217809907 Jayesh_M01 B Aug. 8, 2023, 5:30 a.m. OK GNU C++17 TESTS 6 15 512000
217809415 Maybe_A_Fighter B Aug. 8, 2023, 5:25 a.m. OK GNU C++17 TESTS 6 15 512000
217812354 Essamaraju B Aug. 8, 2023, 5:55 a.m. OK GNU C++17 TESTS 6 15 512000
217810557 1oneegame B Aug. 8, 2023, 5:37 a.m. OK GNU C++17 TESTS 6 15 512000
217810128 Samar.Mahmoud B Aug. 8, 2023, 5:33 a.m. OK GNU C++17 TESTS 6 15 512000
217761612 GoodFella B Aug. 7, 2023, 7:37 p.m. OK GNU C++17 (64) TESTS 6 0 716800
217758826 scotchtape13 B Aug. 7, 2023, 7:09 p.m. OK GNU C++17 (64) TESTS 6 0 716800
217752579 Akshat_Jaiswal B Aug. 7, 2023, 6:16 p.m. OK GNU C++17 (64) TESTS 6 0 716800
217773561 ccds B Aug. 7, 2023, 11:08 p.m. OK GNU C++17 (64) TESTS 6 0 1331200
217785955 Sy_03 B Aug. 8, 2023, 2:31 a.m. OK GNU C++17 (64) TESTS 6 15 512000
217811178 walilili B Aug. 8, 2023, 5:44 a.m. OK GNU C++17 (64) TESTS 6 15 512000
217803040 paulo_ar B Aug. 8, 2023, 4:08 a.m. OK GNU C++17 (64) TESTS 6 15 512000
217787450 Zeardoe B Aug. 8, 2023, 2:48 a.m. OK GNU C++17 (64) TESTS 6 15 512000
217786562 Shinigami_Saleh B Aug. 8, 2023, 2:37 a.m. OK GNU C++17 (64) TESTS 6 15 512000
217784482 obss B Aug. 8, 2023, 2:14 a.m. OK GNU C++17 (64) TESTS 6 15 512000
217778514 roshanVerma B Aug. 8, 2023, 1 a.m. OK GNU C++20 (64) TESTS 6 0 204800
217811670 Aryan_Codefc B Aug. 8, 2023, 5:48 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217809464 Rainandbow B Aug. 8, 2023, 5:25 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217808874 _invincible B Aug. 8, 2023, 5:19 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217808312 yl_neo B Aug. 8, 2023, 5:13 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217807659 Sazzad2026 B Aug. 8, 2023, 5:06 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217807275 BlueberryPieKyle B Aug. 8, 2023, 5:02 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217813034 l0oper B Aug. 8, 2023, 6:01 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217813102 Tang7777777 B Aug. 8, 2023, 6:02 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217812623 hnust_xiangjiasen B Aug. 8, 2023, 5:58 a.m. OK GNU C++20 (64) TESTS 6 0 512000
217749570 vlchebakov2004 B Aug. 7, 2023, 5:54 p.m. OK Go TESTS 6 15 1945600
217762119 botayhard B Aug. 7, 2023, 7:42 p.m. OK Go TESTS 6 15 7577600
217748084 vlchebakov2004 B Aug. 7, 2023, 5:44 p.m. OK Go TESTS 6 468 1945600
217798251 henrychenOutlook B Aug. 8, 2023, 3:13 a.m. OK Java 11 TESTS 6 186 0
217741996 polsage B Aug. 7, 2023, 5:09 p.m. OK Java 11 TESTS 6 202 0
217775829 Edge_Tree B Aug. 8, 2023, 12:08 a.m. OK Java 11 TESTS 6 202 40243200
217775788 Edge_Tree B Aug. 8, 2023, 12:08 a.m. OK Java 11 TESTS 6 202 40243200
217755949 TJ_Codes B Aug. 7, 2023, 6:44 p.m. OK Java 11 TESTS 6 233 0
217798901 dilip_2512 B Aug. 8, 2023, 3:20 a.m. OK Java 11 TESTS 6 280 0
217754749 Harwinvanak B Aug. 7, 2023, 6:33 p.m. OK Java 11 TESTS 6 280 0
217752724 Harwinvanak B Aug. 7, 2023, 6:17 p.m. OK Java 11 TESTS 6 295 0
217780830 Siddharth_78 B Aug. 8, 2023, 1:31 a.m. OK Java 11 TESTS 6 311 0
217759414 tej1562 B Aug. 7, 2023, 7:15 p.m. OK Java 11 TESTS 6 342 0
217798172 not_just_rr B Aug. 8, 2023, 3:12 a.m. OK Java 17 TESTS 6 155 307200
217762672 Akash_Sardar B Aug. 7, 2023, 7:48 p.m. OK Java 17 TESTS 6 187 0
217774556 yousef03 B Aug. 7, 2023, 11:33 p.m. OK Java 17 TESTS 6 202 307200
217801472 bachvnk B Aug. 8, 2023, 3:50 a.m. OK Java 17 TESTS 6 202 512000
217781757 anand_mishra_ B Aug. 8, 2023, 1:43 a.m. OK Java 17 TESTS 6 217 204800
217776400 InfinitePath B Aug. 8, 2023, 12:20 a.m. OK Java 17 TESTS 6 217 42188800
217756600 Suraj1607 B Aug. 7, 2023, 6:49 p.m. OK Java 17 TESTS 6 218 102400
217798830 Ausuka_Misaki B Aug. 8, 2023, 3:19 a.m. OK Java 17 TESTS 6 218 204800
217743215 Eslam_Ahmed B Aug. 7, 2023, 5:15 p.m. OK Java 17 TESTS 6 218 512000
217802776 Sinzy B Aug. 8, 2023, 4:05 a.m. OK Java 17 TESTS 6 218 614400
217784828 chuquwan9964 B Aug. 8, 2023, 2:19 a.m. OK Java 8 TESTS 6 108 0
217778721 bleach__ B Aug. 8, 2023, 1:03 a.m. OK Java 8 TESTS 6 108 0
217773481 Yousef_Badr B Aug. 7, 2023, 11:06 p.m. OK Java 8 TESTS 6 108 0
217773436 faresbadr316 B Aug. 7, 2023, 11:05 p.m. OK Java 8 TESTS 6 108 0
217745401 Sanat04 B Aug. 7, 2023, 5:27 p.m. OK Java 8 TESTS 6 109 0
217800819 QianCCC B Aug. 8, 2023, 3:42 a.m. OK Java 8 TESTS 6 124 0
217756247 Swilled7 B Aug. 7, 2023, 6:47 p.m. OK Java 8 TESTS 6 140 0
217744078 crudeCode B Aug. 7, 2023, 5:19 p.m. OK Java 8 TESTS 6 155 0
217753815 lakshay.sharma.ug21 B Aug. 7, 2023, 6:25 p.m. OK Java 8 TESTS 6 171 0
217807268 priyaroy3370 B Aug. 8, 2023, 5:02 a.m. OK Java 8 TESTS 6 202 0
217767003 y04_bia B Aug. 7, 2023, 8:40 p.m. OK Kotlin 1.6 TESTS 6 264 614400
217767145 maxK99 B Aug. 7, 2023, 8:42 p.m. OK MS C++ 2017 TESTS 6 31 614400
217745312 magedarafa114 B Aug. 7, 2023, 5:26 p.m. OK MS C++ 2017 TESTS 6 31 614400
217774255 BMW_CS_ B Aug. 7, 2023, 11:25 p.m. OK MS C++ 2017 TESTS 6 46 614400
217754712 Aneeba B Aug. 7, 2023, 6:33 p.m. OK MS C++ 2017 TESTS 6 46 614400
217750098 Raghadhany B Aug. 7, 2023, 5:58 p.m. OK MS C++ 2017 TESTS 6 93 614400
217745679 lihe12345678 B Aug. 7, 2023, 5:28 p.m. OK MS C++ 2017 TESTS 6 124 4505600
217778510 sandmn02 B Aug. 8, 2023, 1 a.m. OK MS C++ 2017 TESTS 6 373 1843200
217774847 lqj B Aug. 7, 2023, 11:42 p.m. OK MS C++ 2017 TESTS 6 1777 1843200
217749616 sumit_thakur B Aug. 7, 2023, 5:54 p.m. OK PyPy 3 TESTS 6 265 10752000
217807613 i2x B Aug. 8, 2023, 5:06 a.m. OK PyPy 3 TESTS 6 265 14028800
217747896 Cuber2113 B Aug. 7, 2023, 5:43 p.m. OK PyPy 3 TESTS 6 280 8908800
217744889 crescmoon B Aug. 7, 2023, 5:24 p.m. OK PyPy 3 TESTS 6 280 10240000
217784354 WalrusRamen21 B Aug. 8, 2023, 2:13 a.m. OK PyPy 3 TESTS 6 296 10342400
217741225 tu144x B Aug. 7, 2023, 5:06 p.m. OK PyPy 3 TESTS 6 311 17817600
217767037 _still_learning__ B Aug. 7, 2023, 8:40 p.m. OK PyPy 3 TESTS 6 358 9420800
217812137 Pro_Saps B Aug. 8, 2023, 5:53 a.m. OK PyPy 3 TESTS 6 358 10752000
217742034 crescmoon B Aug. 7, 2023, 5:09 p.m. OK PyPy 3 TESTS 6 389 9728000
217760266 xKRISHNAx B Aug. 7, 2023, 7:24 p.m. OK PyPy 3 TESTS 6 436 11878400
217758224 eugalt B Aug. 7, 2023, 7:04 p.m. OK PyPy 3-64 TESTS 6 77 10444800
217765272 ntarsis30 B Aug. 7, 2023, 8:18 p.m. OK PyPy 3-64 TESTS 6 93 10444800
217798987 b-baka B Aug. 8, 2023, 3:21 a.m. OK PyPy 3-64 TESTS 6 93 16486400
217796987 b-baka B Aug. 8, 2023, 3 a.m. OK PyPy 3-64 TESTS 6 93 16486400
217755561 l0stempl3 B Aug. 7, 2023, 6:41 p.m. OK PyPy 3-64 TESTS 6 108 5427200
217803589 Mahad_SundarSTEM B Aug. 8, 2023, 4:14 a.m. OK PyPy 3-64 TESTS 6 109 8192000
217798182 Youarenotgood B Aug. 8, 2023, 3:12 a.m. OK PyPy 3-64 TESTS 6 109 9318400
217758290 damya B Aug. 7, 2023, 7:05 p.m. OK PyPy 3-64 TESTS 6 109 16896000
217773727 lucifer1004 B Aug. 7, 2023, 11:12 p.m. OK PyPy 3-64 TESTS 6 124 9011200
217787305 MdAbedin B Aug. 8, 2023, 2:46 a.m. OK PyPy 3-64 TESTS 6 124 9318400
217759368 Pavan_kumar_Jangam B Aug. 7, 2023, 7:14 p.m. OK Python 3 TESTS 6 77 614400
217762852 yonesMohammad B Aug. 7, 2023, 7:50 p.m. OK Python 3 TESTS 6 77 6348800
217762820 YOUNES..GH.cpp B Aug. 7, 2023, 7:49 p.m. OK Python 3 TESTS 6 77 6348800
217810809 psydi3435 B Aug. 8, 2023, 5:40 a.m. OK Python 3 TESTS 6 92 512000
217805385 Hitesh_6291 B Aug. 8, 2023, 4:39 a.m. OK Python 3 TESTS 6 92 16691200
217812805 mafilala B Aug. 8, 2023, 5:59 a.m. OK Python 3 TESTS 6 93 614400
217808311 monkey_d_viper B Aug. 8, 2023, 5:13 a.m. OK Python 3 TESTS 6 93 614400
217772994 radaidehmohmmad86 B Aug. 7, 2023, 10:55 p.m. OK Python 3 TESTS 6 93 614400
217772987 ream04 B Aug. 7, 2023, 10:55 p.m. OK Python 3 TESTS 6 93 614400
217793217 ZhewenYu B Aug. 8, 2023, 2:50 a.m. OK Python 3 TESTS 6 93 819200
217745431 0x81 B Aug. 7, 2023, 5:27 p.m. OK Ruby 3 TESTS 6 327 4505600
217749446 MenezesDM B Aug. 7, 2023, 5:53 p.m. OK Rust 2021 TESTS 6 77 1740800

remove filters

Back to search problems