Codeforces Round 617 (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
1296 Codeforces Round 617 (Div. 3) FINISHED False 7200 150996299 Feb. 4, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30424 ) B Food Buying PROGRAMMING math 1000

B'Mishka wants to buy some food in the nearby shop. Initially, he has s burles on his card. Mishka can perform the following operation any number of times (possibly, zero): choose some positive integer number 1 <= x <= s , buy food that costs exactly x burles and obtain lfloor frac{x}{10} rfloor burles as a cashback (in other words, Mishka spends x burles and obtains lfloor frac{x}{10} rfloor back). The operation lfloor frac{a}{b} rfloor means a divided by b rounded down. It is guaranteed that you can always buy some food that costs x for any possible value of x . Your task is to say the maximum number of burles Mishka can spend if he buys food optimally. For example, if Mishka has s=19 burles then the maximum number of burles he can spend is 21 . Firstly, he can spend x=10 burles, obtain 1 burle as a cashback. Now he has s=10 burles, so can spend x=10 burles, obtain 1 burle as a cashback and spend it too. You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The next t lines describe test cases. Each test case is given on a separate line and consists of one integer s ( 1 <= s <= 10^9 ) -- the number of burles Mishka initially has. For each test case print the answer on it -- the maximum number of burles Mishka can spend if he buys food optimally. '...

Tutorials

Codeforces Round #617 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70357913 rahul5720 B Feb. 5, 2020, 12:39 p.m. OK Clang++17 Diagnostics TESTS 4 46 0 1000
70628233 Super_Bug B Feb. 9, 2020, 1:55 p.m. OK Clang++17 Diagnostics TESTS 4 171 0 1000
70417945 Aks303sri B Feb. 6, 2020, 7:44 a.m. OK Clang++17 Diagnostics TESTS 4 171 0 1000
70382127 ftiasch B Feb. 5, 2020, 5:21 p.m. OK D TESTS 4 31 0 1000
70529935 adozer B Feb. 7, 2020, 9:44 p.m. OK FPC TESTS 4 61 0 1000
71048015 OtherPhantasy B Feb. 14, 2020, 9:03 a.m. OK FPC TESTS 4 62 0 1000
70529472 carolxide B Feb. 7, 2020, 9:26 p.m. OK FPC TESTS 4 62 0 1000
70426230 HQT2003 B Feb. 6, 2020, 10:09 a.m. OK FPC TESTS 4 77 409600 1000
70554519 flightyman B Feb. 8, 2020, 9:58 a.m. OK GNU C11 TESTS 4 46 0 1000
70529845 NoobM B Feb. 7, 2020, 9:41 p.m. OK GNU C11 TESTS 4 46 0 1000
71096979 __sherlock B Feb. 15, 2020, 5:19 a.m. OK GNU C11 TESTS 4 46 0 1000
71084732 GauravSamaria B Feb. 14, 2020, 8:35 p.m. OK GNU C11 TESTS 4 46 0 1000
70930959 lhxly1973 B Feb. 13, 2020, 5:06 a.m. OK GNU C11 TESTS 4 46 0 1000
70821361 itian B Feb. 12, 2020, 4:01 a.m. OK GNU C11 TESTS 4 46 0 1000
70782998 Luna_4444 B Feb. 11, 2020, 11:23 a.m. OK GNU C11 TESTS 4 46 0 1000
70752310 Efat1531 B Feb. 10, 2020, 7:31 p.m. OK GNU C11 TESTS 4 46 0 1000
70620699 vjudge3 B Feb. 9, 2020, 11:27 a.m. OK GNU C11 TESTS 4 46 0 1000
70609377 vjudge4 B Feb. 9, 2020, 7:57 a.m. OK GNU C11 TESTS 4 46 0 1000
70925647 ThoseBygones B Feb. 13, 2020, 2:20 a.m. OK GNU C++11 TESTS 4 15 0 1000
70564553 _ShadowSong B Feb. 8, 2020, 12:50 p.m. OK GNU C++11 TESTS 4 15 0 1000
70576723 DanielPaz B Feb. 8, 2020, 3:59 p.m. OK GNU C++11 TESTS 4 15 0 1000
70577987 lgwza B Feb. 8, 2020, 4:21 p.m. OK GNU C++11 TESTS 4 15 0 1000
70601200 litangxingxing B Feb. 9, 2020, 4:46 a.m. OK GNU C++11 TESTS 4 15 0 1000
70797633 V4yne B Feb. 11, 2020, 3:58 p.m. OK GNU C++11 TESTS 4 15 0 1000
70817173 Moaz.5R B Feb. 12, 2020, 12:53 a.m. OK GNU C++11 TESTS 4 15 0 1000
70818586 Karry5307 B Feb. 12, 2020, 2:07 a.m. OK GNU C++11 TESTS 4 15 0 1000
71045127 henry-tb B Feb. 14, 2020, 8:11 a.m. OK GNU C++11 TESTS 4 15 0 1000
70932507 luogu_bot3 B Feb. 13, 2020, 5:38 a.m. OK GNU C++11 TESTS 4 15 0 1000
70327999 Asurudo B Feb. 5, 2020, 4:29 a.m. OK GNU C++14 TESTS 4 0 0 1000
71077713 NeetyaP B Feb. 14, 2020, 5:54 p.m. OK GNU C++14 TESTS 4 15 0 1000
71071496 Dormi B Feb. 14, 2020, 4:01 p.m. OK GNU C++14 TESTS 4 15 0 1000
70942083 pr3pony B Feb. 13, 2020, 8:45 a.m. OK GNU C++14 TESTS 4 15 0 1000
70910712 Wolverine_99 B Feb. 12, 2020, 6:12 p.m. OK GNU C++14 TESTS 4 15 0 1000
70840866 sharepoLOVEDDD B Feb. 12, 2020, 11:56 a.m. OK GNU C++14 TESTS 4 15 0 1000
70824834 vjudge3 B Feb. 12, 2020, 5:57 a.m. OK GNU C++14 TESTS 4 15 0 1000
70823149 sp_lari B Feb. 12, 2020, 5:06 a.m. OK GNU C++14 TESTS 4 15 0 1000
70813297 breno B Feb. 11, 2020, 9:29 p.m. OK GNU C++14 TESTS 4 15 0 1000
70806751 deepaa28 B Feb. 11, 2020, 6:44 p.m. OK GNU C++14 TESTS 4 15 0 1000
70929309 b.moogii09 B Feb. 13, 2020, 4:21 a.m. OK GNU C++17 TESTS 4 15 0 1000
71093188 anuban12240 B Feb. 15, 2020, 3:13 a.m. OK GNU C++17 TESTS 4 15 0 1000
71092936 Frozen13 B Feb. 15, 2020, 3:02 a.m. OK GNU C++17 TESTS 4 15 0 1000
71080229 Mona_Ahmed B Feb. 14, 2020, 6:45 p.m. OK GNU C++17 TESTS 4 15 0 1000
71077094 jeff_seid B Feb. 14, 2020, 5:42 p.m. OK GNU C++17 TESTS 4 15 0 1000
71068451 avisharma B Feb. 14, 2020, 3:14 p.m. OK GNU C++17 TESTS 4 15 0 1000
71057786 pathos B Feb. 14, 2020, 12:37 p.m. OK GNU C++17 TESTS 4 15 0 1000
71050518 jineshj2800 B Feb. 14, 2020, 9:48 a.m. OK GNU C++17 TESTS 4 15 0 1000
71049194 ask-a-toast B Feb. 14, 2020, 9:23 a.m. OK GNU C++17 TESTS 4 15 0 1000
71023853 luffytaro B Feb. 13, 2020, 9:55 p.m. OK GNU C++17 TESTS 4 15 0 1000
70728501 abc057lhx B Feb. 10, 2020, 12:37 p.m. OK Go TESTS 4 358 0 1000
70726330 abc057lhx B Feb. 10, 2020, 11:59 a.m. OK Go TESTS 4 373 0 1000
70308692 mamun224 B Feb. 4, 2020, 6:33 p.m. OK Go TESTS 4 373 0 1000
70511929 mminaev B Feb. 7, 2020, 3:07 p.m. OK Go TESTS 4 405 0 1000
70317948 Anonymous B Feb. 4, 2020, 9:53 p.m. OK Java 11 TESTS 4 155 0 1000
70332290 lightseba B Feb. 5, 2020, 6:18 a.m. OK Java 11 TESTS 4 171 0 1000
70458670 WaheguruAnurag B Feb. 6, 2020, 6:06 p.m. OK Java 11 TESTS 4 186 0 1000
70293052 Hemose B Feb. 4, 2020, 4:23 p.m. OK Java 11 TESTS 4 186 0 1000
70302626 bleh0.5 B Feb. 4, 2020, 5:10 p.m. OK Java 11 TESTS 4 187 0 1000
70300356 zekigurbuz B Feb. 4, 2020, 4:50 p.m. OK Java 11 TESTS 4 187 0 1000
70472698 enricogi B Feb. 7, 2020, 1:39 a.m. OK Java 11 TESTS 4 202 0 1000
70350150 nickleoden299 B Feb. 5, 2020, 10:41 a.m. OK Java 11 TESTS 4 202 0 1000
70298339 potatmen B Feb. 4, 2020, 4:37 p.m. OK Java 11 TESTS 4 217 0 1000
70292553 bub1999 B Feb. 4, 2020, 4:21 p.m. OK Java 11 TESTS 4 217 0 1000
70611329 Foenic B Feb. 9, 2020, 8:32 a.m. OK Java 8 TESTS 4 93 0 1000
70691673 eslam.221 B Feb. 9, 2020, 8:03 p.m. OK Java 8 TESTS 4 108 0 1000
70616093 Whiplash99 B Feb. 9, 2020, 10:02 a.m. OK Java 8 TESTS 4 108 0 1000
70611054 paramvirsingh1 B Feb. 9, 2020, 8:27 a.m. OK Java 8 TESTS 4 108 0 1000
70519354 Abd_Alqader_Alnajjar B Feb. 7, 2020, 5:21 p.m. OK Java 8 TESTS 4 108 0 1000
70413720 nukala_krupani B Feb. 6, 2020, 6:19 a.m. OK Java 8 TESTS 4 108 0 1000
70365018 jxin31415 B Feb. 5, 2020, 2 p.m. OK Java 8 TESTS 4 108 0 1000
70351575 nandit B Feb. 5, 2020, 11:06 a.m. OK Java 8 TESTS 4 108 0 1000
70310712 robinz62 B Feb. 4, 2020, 7:08 p.m. OK Java 8 TESTS 4 108 0 1000
70300873 conquerorArpit B Feb. 4, 2020, 4:54 p.m. OK Java 8 TESTS 4 108 0 1000
70312072 iskander.samerkhanov B Feb. 4, 2020, 7:31 p.m. OK JavaScript TESTS 4 77 2252800 1000
71009210 jhonber B Feb. 13, 2020, 5:01 p.m. OK JavaScript TESTS 4 92 2150400 1000
70327672 Spheniscine B Feb. 5, 2020, 4:18 a.m. OK Kotlin TESTS 4 124 0 1000
70327633 Spheniscine B Feb. 5, 2020, 4:17 a.m. OK Kotlin TESTS 4 124 0 1000
70301325 formalist B Feb. 4, 2020, 4:58 p.m. OK Kotlin TESTS 4 124 0 1000
70796504 badcw B Feb. 11, 2020, 3:39 p.m. OK Kotlin TESTS 4 186 0 1000
70345437 SlavaG B Feb. 5, 2020, 9:30 a.m. OK Kotlin TESTS 4 187 0 1000
70781240 KanhuKeNanu B Feb. 11, 2020, 10:45 a.m. OK Kotlin TESTS 4 202 0 1000
70353773 cmplx-xyttmt B Feb. 5, 2020, 11:41 a.m. OK Kotlin TESTS 4 217 0 1000
70419133 KanhuKeNanu B Feb. 6, 2020, 8:07 a.m. OK Kotlin TESTS 4 218 0 1000
70625139 hamtory B Feb. 9, 2020, 12:58 p.m. OK Kotlin TESTS 4 249 0 1000
70509680 wsx9735 B Feb. 7, 2020, 2:31 p.m. OK Kotlin TESTS 4 342 0 1000
71022612 Mosyagin B Feb. 13, 2020, 9:09 p.m. OK Mono C# TESTS 4 46 1126400 1000
70357319 htspur B Feb. 5, 2020, 12:32 p.m. OK Mono C# TESTS 4 61 307200 1000
70613631 TrinidadTobago B Feb. 9, 2020, 9:15 a.m. OK Mono C# TESTS 4 77 2969600 1000
70294278 1champ10n B Feb. 4, 2020, 4:26 p.m. OK Mono C# TESTS 4 93 614400 1000
70326510 pye B Feb. 5, 2020, 3:43 a.m. OK Mono C# TESTS 4 93 1331200 1000
70781270 Grebatof B Feb. 11, 2020, 10:46 a.m. OK Mono C# TESTS 4 108 614400 1000
71009240 renser B Feb. 13, 2020, 5:01 p.m. OK Mono C# TESTS 4 108 614400 1000
70348455 TRR B Feb. 5, 2020, 10:12 a.m. OK Mono C# TESTS 4 108 716800 1000
70528005 voledyhil B Feb. 7, 2020, 8:38 p.m. OK Mono C# TESTS 4 108 819200 1000
70373149 1champ10n B Feb. 5, 2020, 3:43 p.m. OK Mono C# TESTS 4 109 614400 1000
70342244 vjudge5 B Feb. 5, 2020, 8:43 a.m. OK MS C++ TESTS 4 15 0 1000
70341992 vjudge4 B Feb. 5, 2020, 8:39 a.m. OK MS C++ TESTS 4 15 0 1000
70708134 x_y B Feb. 10, 2020, 6:02 a.m. OK MS C++ TESTS 4 30 0 1000
70406591 vjudge4 B Feb. 6, 2020, 2:40 a.m. OK MS C++ TESTS 4 31 0 1000
70544939 Prashant94157 B Feb. 8, 2020, 7:09 a.m. OK MS C++ TESTS 4 31 0 1000
70406977 vjudge3 B Feb. 6, 2020, 2:57 a.m. OK MS C++ TESTS 4 31 0 1000
70789588 sdibt3 B Feb. 11, 2020, 1:23 p.m. OK MS C++ TESTS 4 31 0 1000
70578383 vjudge1 B Feb. 8, 2020, 4:27 p.m. OK MS C++ TESTS 4 31 0 1000
70716410 vjudge5 B Feb. 10, 2020, 8:41 a.m. OK MS C++ TESTS 4 46 0 1000
70761977 vjudge4 B Feb. 11, 2020, 2:16 a.m. OK MS C++ TESTS 4 46 0 1000
70512908 cleverxia B Feb. 7, 2020, 3:22 p.m. OK MS C++ 2017 TESTS 4 15 0 1000
70714745 Iftty B Feb. 10, 2020, 8:08 a.m. OK MS C++ 2017 TESTS 4 15 0 1000
70482469 EatingMelonPublic B Feb. 7, 2020, 6:24 a.m. OK MS C++ 2017 TESTS 4 30 0 1000
70411199 vjudge4 B Feb. 6, 2020, 5:18 a.m. OK MS C++ 2017 TESTS 4 30 0 1000
70406705 vjudge1 B Feb. 6, 2020, 2:45 a.m. OK MS C++ 2017 TESTS 4 30 0 1000
70622324 gaffwc B Feb. 9, 2020, 11:59 a.m. OK MS C++ 2017 TESTS 4 30 0 1000
70780544 hwangganzi B Feb. 11, 2020, 10:29 a.m. OK MS C++ 2017 TESTS 4 31 0 1000
70842902 sladkayaKlubnichka B Feb. 12, 2020, 12:36 p.m. OK MS C++ 2017 TESTS 4 31 0 1000
71021114 Mr_Doctor B Feb. 13, 2020, 8:25 p.m. OK MS C++ 2017 TESTS 4 31 0 1000
71045093 YinChuanSheng B Feb. 14, 2020, 8:11 a.m. OK MS C++ 2017 TESTS 4 31 0 1000
70424609 santhisrikh B Feb. 6, 2020, 9:43 a.m. OK Node.js TESTS 4 280 6348800 1000
70438367 MrCriss1 B Feb. 6, 2020, 1:27 p.m. OK PascalABC.NET TESTS 4 514 102400 1000
70489372 NierKool B Feb. 7, 2020, 8:29 a.m. OK PascalABC.NET TESTS 4 514 102400 1000
70689107 MAKARonin B Feb. 9, 2020, 7:05 p.m. OK PHP TESTS 4 62 0 1000
70430506 Kiral55 B Feb. 6, 2020, 11:20 a.m. OK PHP TESTS 4 77 0 1000
70460391 mayakin B Feb. 6, 2020, 6:31 p.m. OK PHP TESTS 4 78 0 1000
70481223 reyad B Feb. 7, 2020, 6 a.m. OK PHP TESTS 4 78 0 1000
70513412 yoralbayev B Feb. 7, 2020, 3:31 p.m. OK PHP TESTS 4 93 0 1000
70804644 ngtien2 B Feb. 11, 2020, 6 p.m. OK PyPy 2 TESTS 4 295 1024000 1000
70627858 sc.chrismoon B Feb. 9, 2020, 1:48 p.m. OK PyPy 2 TESTS 4 483 8396800 1000
70302480 Executed2211 B Feb. 4, 2020, 5:08 p.m. OK PyPy 3 TESTS 4 155 2662400 1000
70391304 sirgavila B Feb. 5, 2020, 7:15 p.m. OK PyPy 3 TESTS 4 170 3174400 1000
70309448 apoorvwatsky B Feb. 4, 2020, 6:45 p.m. OK PyPy 3 TESTS 4 171 3174400 1000
70574054 Affe B Feb. 8, 2020, 3:09 p.m. OK PyPy 3 TESTS 4 171 3686400 1000
70366257 thekushalghosh B Feb. 5, 2020, 2:14 p.m. OK PyPy 3 TESTS 4 186 4096000 1000
70465721 Anshtyagi000 B Feb. 6, 2020, 8:23 p.m. OK PyPy 3 TESTS 4 202 4096000 1000
70292763 Sriniwas B Feb. 4, 2020, 4:22 p.m. OK PyPy 3 TESTS 4 217 3891200 1000
70569804 desertfrog B Feb. 8, 2020, 2:06 p.m. OK PyPy 3 TESTS 4 218 4403200 1000
70439531 FahimSifnatul B Feb. 6, 2020, 1:44 p.m. OK PyPy 3 TESTS 4 234 4300800 1000
70577186 ondrei B Feb. 8, 2020, 4:07 p.m. OK PyPy 3 TESTS 4 264 5939200 1000
70474535 zdrosb B Feb. 7, 2020, 2:55 a.m. OK Python 2 TESTS 4 187 0 1000
70342472 bsr011 B Feb. 5, 2020, 8:46 a.m. OK Python 2 TESTS 4 233 409600 1000
70704759 LucasStevenson B Feb. 10, 2020, 4:40 a.m. OK Python 3 TESTS 4 139 307200 1000
70843127 divyamohan123 B Feb. 12, 2020, 12:40 p.m. OK Python 3 TESTS 4 140 307200 1000
70408872 grey_name_king B Feb. 6, 2020, 4:05 a.m. OK Python 3 TESTS 4 155 307200 1000
70625761 ultrahee12 B Feb. 9, 2020, 1:09 p.m. OK Python 3 TESTS 4 155 409600 1000
70577463 darkon B Feb. 8, 2020, 4:11 p.m. OK Python 3 TESTS 4 155 819200 1000
70843073 Anwarrezk B Feb. 12, 2020, 12:39 p.m. OK Python 3 TESTS 4 156 409600 1000
71044439 jokerking B Feb. 14, 2020, 7:59 a.m. OK Python 3 TESTS 4 170 0 1000
70347140 ngoctrh B Feb. 5, 2020, 9:53 a.m. OK Python 3 TESTS 4 170 307200 1000
70381460 Parag_AP B Feb. 5, 2020, 5:12 p.m. OK Python 3 TESTS 4 170 409600 1000
70592349 ahak B Feb. 8, 2020, 9:04 p.m. OK Python 3 TESTS 4 171 0 1000
70517674 kobae964 B Feb. 7, 2020, 4:51 p.m. OK Rust TESTS 4 30 307200 1000
70568494 terraformer B Feb. 8, 2020, 1:48 p.m. OK Rust TESTS 4 140 0 1000
70617454 ttn.blackstar B Feb. 9, 2020, 10:25 a.m. OK Scala TESTS 4 499 0 1000

remove filters

Back to search problems