Codeforces Round 640 (Div. 4)

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
1352 Codeforces Round 640 (Div. 4) FINISHED False 7200 142788299 May 9, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 81104 ) A Sum of Round Numbers PROGRAMMING implementation math 800

B'A positive (strictly greater than zero) integer is called round if it is of the form d00...0. In other words, a positive integer is round if all its digits except the leftmost (most significant) are equal to zero. In particular, all numbers from 1 to 9 (inclusive) are round. For example, the following numbers are round: 4000 , 1 , 9 , 800 , 90 . The following numbers are not round: 110 , 707 , 222 , 1001 . You are given a positive integer n ( 1 <= n <= 10^4 ). Represent the number n as a sum of round numbers using the minimum number of summands (addends). In other words, you need to represent the given number n as a sum of the least number of terms, each of which is a round number. The first line contains an integer t ( 1 <= t <= 10^4 ) -- the number of test cases in the input. Then t test cases follow. Each test case is a line containing an integer n ( 1 <= n <= 10^4 ). Print t answers to the test cases. Each answer must begin with an integer k -- the minimum number of summands. Next, k terms must follow, each of which is a round number, and their sum is n . The terms can be printed in any order. If there are several answers, print any of them. '...

Tutorials

77161

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
80844439 Jayce_Tang A May 21, 2020, 11 a.m. OK Clang++17 Diagnostics TESTS 7 280 0 800
80776928 chncg A May 20, 2020, 1:35 p.m. OK Clang++17 Diagnostics TESTS 7 343 0 800
80730897 BitcherofBlaviken A May 19, 2020, 11:47 p.m. OK Clang++17 Diagnostics TESTS 7 374 1024000 800
79799588 ASHUMITTAL A May 12, 2020, 5:01 a.m. OK Clang++17 Diagnostics TESTS 7 498 0 800
80452871 Gassa A May 17, 2020, 9:05 a.m. OK D TESTS 7 46 6656000 800
80452877 Gassa A May 17, 2020, 9:05 a.m. OK D TESTS 7 62 18432000 800
80453047 quoca3vx12 A May 17, 2020, 9:08 a.m. OK FPC TESTS 7 156 3481600 800
80403202 NathanWien A May 16, 2020, 6:01 p.m. OK FPC TESTS 7 170 3379200 800
79954129 ghosthunterk A May 13, 2020, 7:33 a.m. OK FPC TESTS 7 171 3481600 800
80268691 luogu_bot3 A May 16, 2020, 12:01 a.m. OK FPC TESTS 7 405 3481600 800
80268686 luogu_bot5 A May 16, 2020, midnight OK FPC TESTS 7 405 3481600 800
79781148 xMoosad A May 11, 2020, 8:22 p.m. OK GNU C11 TESTS 7 31 0 800
80010750 Proskurnikov A May 13, 2020, 6:27 p.m. OK GNU C11 TESTS 7 46 3686400 800
79809721 u1904054 A May 12, 2020, 11:08 a.m. OK GNU C11 TESTS 7 156 3788800 800
79785916 nik_j0ker A May 11, 2020, 10:12 p.m. OK GNU C11 TESTS 7 171 0 800
80638970 SaifurRahman656 A May 18, 2020, 8:38 p.m. OK GNU C11 TESTS 7 171 0 800
80643441 vpnishants2507 A May 18, 2020, 10:52 p.m. OK GNU C11 TESTS 7 171 0 800
80956701 shreya_1812 A May 22, 2020, 5:17 p.m. OK GNU C11 TESTS 7 171 0 800
80299930 As-Sami A May 16, 2020, 9:34 a.m. OK GNU C11 TESTS 7 171 3686400 800
80195150 RHasanR A May 15, 2020, 6:05 a.m. OK GNU C11 TESTS 7 171 3686400 800
80404191 5HaR1ar_The_N00b A May 16, 2020, 6:13 p.m. OK GNU C11 TESTS 7 171 3686400 800
80662558 SunAngela A May 19, 2020, 6:59 a.m. OK GNU C++11 TESTS 7 15 0 800
80993458 Remembers A May 23, 2020, 7:30 a.m. OK GNU C++11 TESTS 7 15 0 800
80772213 vjudge3 A May 20, 2020, 12:30 p.m. OK GNU C++11 TESTS 7 15 819200 800
79663666 Minded A May 10, 2020, 2:45 p.m. OK GNU C++11 TESTS 7 15 3686400 800
79706665 zhengqy2005 A May 11, 2020, 4:58 a.m. OK GNU C++11 TESTS 7 15 3686400 800
79755228 bharath_chandra A May 11, 2020, 2:33 p.m. OK GNU C++11 TESTS 7 15 3686400 800
79906326 rafsan35 A May 12, 2020, 5:07 p.m. OK GNU C++11 TESTS 7 15 3891200 800
79707664 CC104956 A May 11, 2020, 5:21 a.m. OK GNU C++11 TESTS 7 15 3891200 800
79694052 arielnarciso A May 10, 2020, 10:27 p.m. OK GNU C++11 TESTS 7 15 3891200 800
80189359 luogu_bot3 A May 15, 2020, 4:09 a.m. OK GNU C++11 TESTS 7 15 3891200 800
81615770 noiem A May 27, 2020, 12:10 p.m. OK GNU C++14 TESTS 7 15 0 800
80814554 vjudge5 A May 21, 2020, 1:58 a.m. OK GNU C++14 TESTS 7 15 0 800
81428469 ctuu A May 26, 2020, 1:24 a.m. OK GNU C++14 TESTS 7 15 204800 800
79700344 Twxy_Spe A May 11, 2020, 2:11 a.m. OK GNU C++14 TESTS 7 15 3686400 800
80287756 vjudge4 A May 16, 2020, 7:03 a.m. OK GNU C++14 TESTS 7 15 3686400 800
80719155 Subon34 A May 19, 2020, 6:41 p.m. OK GNU C++14 TESTS 7 30 0 800
80796735 vjudge5 A May 20, 2020, 5:50 p.m. OK GNU C++14 TESTS 7 30 0 800
81596791 vjudge2 A May 27, 2020, 8:19 a.m. OK GNU C++14 TESTS 7 30 0 800
81580688 miserable_life A May 27, 2020, 4:44 a.m. OK GNU C++14 TESTS 7 30 102400 800
81693151 In_The_End_9 A May 28, 2020, 10:01 a.m. OK GNU C++14 TESTS 7 30 102400 800
80965002 my_way A May 22, 2020, 7:18 p.m. OK GNU C++17 TESTS 7 15 0 800
81012322 Dariush_M A May 23, 2020, 12:02 p.m. OK GNU C++17 TESTS 7 15 0 800
81174058 Bitong A May 24, 2020, 12:13 p.m. OK GNU C++17 TESTS 7 15 0 800
81459559 shatty A May 26, 2020, 10:20 a.m. OK GNU C++17 TESTS 7 15 0 800
80836188 ansustdi A May 21, 2020, 9:04 a.m. OK GNU C++17 TESTS 7 15 102400 800
80762325 taher_r A May 20, 2020, 10:21 a.m. OK GNU C++17 TESTS 7 15 1638400 800
79786631 ali.zine A May 11, 2020, 10:36 p.m. OK GNU C++17 TESTS 7 15 2048000 800
80274368 _Asmaa A May 16, 2020, 3:20 a.m. OK GNU C++17 TESTS 7 15 3686400 800
79720028 Wi_Tubbs A May 11, 2020, 8:38 a.m. OK GNU C++17 TESTS 7 15 3891200 800
79756360 codingoo A May 11, 2020, 2:45 p.m. OK GNU C++17 TESTS 7 15 3891200 800
81633937 Stiff_Subset A May 27, 2020, 3:29 p.m. OK GNU C++17 (64) TESTS 7 15 0 800
81604624 frakk A May 27, 2020, 9:57 a.m. OK GNU C++17 (64) TESTS 7 15 0 800
80231164 Ainur_Mukhtarow A May 15, 2020, 1:46 p.m. OK GNU C++17 (64) TESTS 7 15 4300800 800
79816088 zezs3535 A May 12, 2020, 12:30 p.m. OK GNU C++17 (64) TESTS 7 15 4300800 800
79946986 shiro53 A May 13, 2020, 6:04 a.m. OK GNU C++17 (64) TESTS 7 15 4300800 800
81592820 vabuff A May 27, 2020, 7:30 a.m. OK GNU C++17 (64) TESTS 7 30 0 800
81013348 Apelsinus A May 23, 2020, 12:17 p.m. OK GNU C++17 (64) TESTS 7 30 0 800
79790442 Tzak A May 12, 2020, 12:53 a.m. OK GNU C++17 (64) TESTS 7 30 0 800
79787399 anzuof A May 11, 2020, 11:03 p.m. OK GNU C++17 (64) TESTS 7 30 0 800
80303086 vjudge2 A May 16, 2020, 10:13 a.m. OK GNU C++17 (64) TESTS 7 30 4198400 800
80808070 vchilikov A May 20, 2020, 9:32 p.m. OK Go TESTS 7 31 102400 800
80204803 sflechie A May 15, 2020, 8:24 a.m. OK Go TESTS 7 31 10649600 800
81331360 fc-lib-xyz A May 24, 2020, 8:29 p.m. OK Go TESTS 7 46 0 800
79728318 shihabmridha A May 11, 2020, 10:29 a.m. OK Go TESTS 7 46 10649600 800
79720769 ccppjsrb A May 11, 2020, 8:50 a.m. OK Go TESTS 7 46 11571200 800
79806339 muravjov A May 12, 2020, 10:20 a.m. OK Go TESTS 7 61 10649600 800
79708419 oleg.shtykov A May 11, 2020, 5:36 a.m. OK Go TESTS 7 62 10649600 800
79788060 pepradere A May 11, 2020, 11:27 p.m. OK Go TESTS 7 265 102400 800
80223425 swetoslaw2142 A May 15, 2020, 12:13 p.m. OK Go TESTS 7 265 10649600 800
80698414 arpit_malhotra A May 19, 2020, 2:35 p.m. OK Go TESTS 7 342 102400 800
81003632 XOR-star A May 23, 2020, 10:04 a.m. OK Haskell TESTS 7 46 102400 800
80529948 Tbhuiyan A May 17, 2020, 2:43 p.m. OK Haskell TESTS 7 46 13824000 800
79803081 ramesh.baskaran A May 12, 2020, 8:57 a.m. OK Haskell TESTS 7 62 13824000 800
81453658 zhupeijun A May 26, 2020, 9 a.m. OK Java 11 TESTS 7 186 0 800
80930658 mayank_dave A May 22, 2020, 11:51 a.m. OK Java 11 TESTS 7 187 0 800
79736090 yb1717 A May 11, 2020, 12:03 p.m. OK Java 11 TESTS 7 187 24064000 800
79809627 devesh08 A May 12, 2020, 11:06 a.m. OK Java 11 TESTS 7 187 24166400 800
81350378 manojbhatt A May 25, 2020, 5:42 a.m. OK Java 11 TESTS 7 202 0 800
79756863 an1rudh A May 11, 2020, 2:50 p.m. OK Java 11 TESTS 7 202 24064000 800
79676764 nickleoden299 A May 10, 2020, 5:22 p.m. OK Java 11 TESTS 7 202 24064000 800
80447582 arran A May 17, 2020, 8:06 a.m. OK Java 11 TESTS 7 217 24064000 800
79686700 spiritbreaker_17 A May 10, 2020, 7:45 p.m. OK Java 11 TESTS 7 217 24064000 800
80857112 Clowyy A May 21, 2020, 1:39 p.m. OK Java 11 TESTS 7 218 0 800
80992900 bwang1008 A May 23, 2020, 7:21 a.m. OK Java 8 TESTS 7 93 0 800
81443899 prakharshriv A May 26, 2020, 6:49 a.m. OK Java 8 TESTS 7 108 0 800
80807319 AFouad204 A May 20, 2020, 9:06 p.m. OK Java 8 TESTS 7 108 0 800
79671920 Lorderot A May 10, 2020, 4:20 p.m. OK Java 8 TESTS 7 108 20582400 800
81172527 ingyu1008 A May 24, 2020, 11:52 a.m. OK Java 8 TESTS 7 109 0 800
80877213 tsumit023 A May 21, 2020, 5:45 p.m. OK Java 8 TESTS 7 109 0 800
80797216 nonatomicgames A May 20, 2020, 5:57 p.m. OK Java 8 TESTS 7 109 0 800
80712188 sanbayev01 A May 19, 2020, 5:12 p.m. OK Java 8 TESTS 7 109 0 800
79801276 SNUmonster A May 12, 2020, 5:31 a.m. OK Java 8 TESTS 7 124 0 800
81025724 KingKai A May 23, 2020, 3:14 p.m. OK Java 8 TESTS 7 124 0 800
79976128 flackus A May 13, 2020, 11:55 a.m. OK JavaScript TESTS 7 108 7987200 800
79974826 flackus A May 13, 2020, 11:40 a.m. OK JavaScript TESTS 7 108 8089600 800
80854135 vbrigand A May 21, 2020, 1:04 p.m. OK JavaScript TESTS 7 124 2457600 800
79974336 flackus A May 13, 2020, 11:35 a.m. OK JavaScript TESTS 7 124 8089600 800
80561372 M4ycon A May 18, 2020, 1:20 a.m. OK JavaScript TESTS 7 124 10342400 800
79691290 notAProgrammer_NAP A May 10, 2020, 9:08 p.m. OK JavaScript TESTS 7 233 8294400 800
80227935 Killer45 A May 15, 2020, 1:08 p.m. OK Kotlin TESTS 7 140 21094400 800
80299424 FeehamSzYr A May 16, 2020, 9:28 a.m. OK Kotlin TESTS 7 264 20787200 800
81361669 __fr__y__ A May 25, 2020, 8:17 a.m. OK Kotlin TESTS 7 280 0 800
80891332 gevmart A May 21, 2020, 11:40 p.m. OK Kotlin TESTS 7 280 0 800
79862856 lenphuong A May 12, 2020, 1:53 p.m. OK Kotlin TESTS 7 280 21913600 800
80190020 tabr A May 15, 2020, 4:23 a.m. OK Kotlin TESTS 7 296 21913600 800
81573217 pawanacharya070 A May 27, 2020, 2:05 a.m. OK Kotlin TESTS 7 358 0 800
80809326 jmrh_1 A May 20, 2020, 10:17 p.m. OK Kotlin TESTS 7 358 0 800
79934021 CepGamer A May 13, 2020, 2:04 a.m. OK Kotlin TESTS 7 374 21708800 800
79715727 cdkakade A May 11, 2020, 7:32 a.m. OK Kotlin TESTS 7 405 21299200 800
80270391 sakapon A May 16, 2020, 1:15 a.m. OK Mono C# TESTS 7 62 15667200 800
80274443 sakapon A May 16, 2020, 3:21 a.m. OK Mono C# TESTS 7 62 15667200 800
79713077 treasuryonly A May 11, 2020, 6:55 a.m. OK Mono C# TESTS 7 77 12083200 800
80610164 itt828 A May 18, 2020, 2:13 p.m. OK Mono C# TESTS 7 109 11366400 800
80684277 Resharper_0165 A May 19, 2020, 11:56 a.m. OK Mono C# TESTS 7 124 3276800 800
80685338 vkb2013 A May 19, 2020, 12:09 p.m. OK Mono C# TESTS 7 124 3276800 800
80547969 Khazmadu A May 17, 2020, 6:48 p.m. OK Mono C# TESTS 7 124 11366400 800
80612571 itt828 A May 18, 2020, 2:41 p.m. OK Mono C# TESTS 7 124 11366400 800
80217275 jigmee89 A May 15, 2020, 11 a.m. OK Mono C# TESTS 7 124 15052800 800
80039713 AsadulloProgrammist A May 14, 2020, 6:46 a.m. OK Mono C# TESTS 7 140 11161600 800
80664908 Hokage. A May 19, 2020, 7:36 a.m. OK MS C++ TESTS 7 30 102400 800
80521939 vjudge2 A May 17, 2020, 1:02 p.m. OK MS C++ TESTS 7 30 3891200 800
79735020 vjudge1 A May 11, 2020, 11:50 a.m. OK MS C++ TESTS 7 30 3891200 800
80289657 vjudge1 A May 16, 2020, 7:26 a.m. OK MS C++ TESTS 7 31 3891200 800
80288610 vjudge5 A May 16, 2020, 7:13 a.m. OK MS C++ TESTS 7 46 3891200 800
80589524 Niks9171 A May 18, 2020, 9:58 a.m. OK MS C++ TESTS 7 62 3891200 800
79913888 Vermihunter A May 12, 2020, 6:30 p.m. OK MS C++ TESTS 7 92 3891200 800
79963637 JasminI A May 13, 2020, 9:29 a.m. OK MS C++ TESTS 7 108 4096000 800
80062400 KapBelka A May 14, 2020, 11:17 a.m. OK MS C++ TESTS 7 124 4198400 800
81168823 Amuses A May 24, 2020, 11:02 a.m. OK MS C++ 2017 TESTS 7 30 0 800
80901403 deuslovelt A May 22, 2020, 4:40 a.m. OK MS C++ 2017 TESTS 7 31 0 800
79682328 xsc A May 10, 2020, 6:38 p.m. OK MS C++ 2017 TESTS 7 31 3686400 800
80223379 Beef_Charisma A May 15, 2020, 12:13 p.m. OK MS C++ 2017 TESTS 7 31 3686400 800
80291750 guanyin1433223 A May 16, 2020, 7:52 a.m. OK MS C++ 2017 TESTS 7 31 3686400 800
79868483 vjudge1 A May 12, 2020, 2:06 p.m. OK MS C++ 2017 TESTS 7 31 3788800 800
79969323 naitsabes.ezluhcs A May 13, 2020, 10:38 a.m. OK MS C++ 2017 TESTS 7 31 3993600 800
80077424 vjudge1 A May 14, 2020, 2:12 p.m. OK MS C++ 2017 TESTS 7 31 4505600 800
81629077 outersky A May 27, 2020, 2:36 p.m. OK MS C++ 2017 TESTS 7 46 0 800
80923587 Still_Theory A May 22, 2020, 10:16 a.m. OK MS C++ 2017 TESTS 7 46 0 800
80700290 amibane A May 19, 2020, 2:54 p.m. OK Node.js TESTS 7 265 5427200 800
81106366 prosidom101 A May 24, 2020, 6:41 a.m. OK Node.js TESTS 7 280 5427200 800
80174628 WbxOne A May 14, 2020, 8:56 p.m. OK Node.js TESTS 7 373 22323200 800
80174299 WbxOne A May 14, 2020, 8:49 p.m. OK Node.js TESTS 7 405 22732800 800
80077112 Bazagazeal A May 14, 2020, 2:09 p.m. OK Node.js TESTS 7 436 22425600 800
80526754 PetrK A May 17, 2020, 2:06 p.m. OK PascalABC.NET TESTS 7 702 23859200 800
81451761 02041505Tofan A May 26, 2020, 8:34 a.m. OK PascalABC.NET TESTS 7 873 0 800
81447655 02041505Zaharova A May 26, 2020, 7:41 a.m. OK PascalABC.NET TESTS 7 888 102400 800
79786978 Khaled_Mohamed A May 11, 2020, 10:48 p.m. OK PHP TESTS 7 373 512000 800
80806691 chaudhary_19 A May 20, 2020, 8:50 p.m. OK PyPy 2 TESTS 7 171 4300800 800
79919024 timf1089 A May 12, 2020, 7:41 p.m. OK PyPy 2 TESTS 7 390 25088000 800
79745528 itsme297 A May 11, 2020, 12:37 p.m. OK PyPy 2 TESTS 7 686 27033600 800
80655163 sandychn A May 19, 2020, 4:59 a.m. OK PyPy 3 TESTS 7 186 4198400 800
79698614 TheMisfits A May 11, 2020, 1:11 a.m. OK PyPy 3 TESTS 7 186 26624000 800
80846075 populationzero A May 21, 2020, 11:20 a.m. OK PyPy 3 TESTS 7 202 4505600 800
79714898 panamavan A May 11, 2020, 7:20 a.m. OK PyPy 3 TESTS 7 202 25088000 800
79729742 jaeworld A May 11, 2020, 10:48 a.m. OK PyPy 3 TESTS 7 202 26931200 800
80651354 _viru_ A May 19, 2020, 3:27 a.m. OK PyPy 3 TESTS 7 233 7577600 800
80203248 UD_xlinsist A May 15, 2020, 8:03 a.m. OK PyPy 3 TESTS 7 233 26931200 800
79674477 taxijjang A May 10, 2020, 4:53 p.m. OK PyPy 3 TESTS 7 233 29286400 800
79878174 megabluejay A May 12, 2020, 2:29 p.m. OK PyPy 3 TESTS 7 233 30617600 800
79783263 dibyendu415 A May 11, 2020, 9:04 p.m. OK PyPy 3 TESTS 7 280 4915200 800
80262460 alex256gordon A May 15, 2020, 8:44 p.m. OK Python 2 TESTS 7 218 6451200 800
79667806 hungnt0597 A May 10, 2020, 3:29 p.m. OK Python 2 TESTS 7 280 6656000 800
80889875 problem_solver_ A May 21, 2020, 9:52 p.m. OK Python 3 TESTS 7 155 307200 800
80916648 problem_solver_ A May 22, 2020, 8:41 a.m. OK Python 3 TESTS 7 155 307200 800
80889706 problem_solver_ A May 21, 2020, 9:45 p.m. OK Python 3 TESTS 7 155 307200 800
79815866 cecilwang A May 12, 2020, 12:28 p.m. OK Python 3 TESTS 7 155 6963200 800
80015462 cesmecelik A May 13, 2020, 8:13 p.m. OK Python 3 TESTS 7 156 6963200 800
80377335 tuanyuki A May 16, 2020, 1:59 p.m. OK Python 3 TESTS 7 156 7270400 800
79677987 cowboy A May 10, 2020, 5:38 p.m. OK Python 3 TESTS 7 156 7270400 800
80916779 problem_solver_ A May 22, 2020, 8:43 a.m. OK Python 3 TESTS 7 171 307200 800
80889314 problem_solver_ A May 21, 2020, 9:32 p.m. OK Python 3 TESTS 7 171 307200 800
80889050 problem_solver_ A May 21, 2020, 9:24 p.m. OK Python 3 TESTS 7 171 307200 800
81583814 megachuhancer A May 27, 2020, 5:36 a.m. OK Ruby TESTS 7 93 204800 800
79710904 freshnewname A May 11, 2020, 6:21 a.m. OK Rust TESTS 7 30 4812800 800
79769926 freshnewname A May 11, 2020, 5:21 p.m. OK Rust TESTS 7 31 3788800 800
79710968 ving.xia A May 11, 2020, 6:23 a.m. OK Rust TESTS 7 31 3788800 800
79708329 freshnewname A May 11, 2020, 5:34 a.m. OK Rust TESTS 7 46 5120000 800
79706421 freshnewname A May 11, 2020, 4:52 a.m. OK Rust TESTS 7 124 3788800 800
79699890 TomazGomes A May 11, 2020, 1:56 a.m. OK Rust TESTS 7 202 3788800 800
79699064 TomazGomes A May 11, 2020, 1:27 a.m. OK Rust TESTS 7 202 3788800 800
79699783 TomazGomes A May 11, 2020, 1:52 a.m. OK Rust TESTS 7 217 3788800 800
79794401 Vadilla A May 12, 2020, 2:53 a.m. OK Rust TESTS 7 233 307200 800
79706713 freshnewname A May 11, 2020, 4:59 a.m. OK Rust TESTS 7 514 3788800 800
79662604 kushwaha_vi A May 10, 2020, 2:33 p.m. OK Scala TESTS 7 390 38092800 800
79700293 IvanDyachenko A May 11, 2020, 2:10 a.m. OK Scala TESTS 7 670 39628800 800
79936814 vuthuy.uet A May 13, 2020, 3:08 a.m. OK Scala TESTS 7 670 39833600 800

remove filters

Back to search problems