Contest 2050 and Codeforces Round 718 (Div. 1 + 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
1517 Contest 2050 and Codeforces Round 718 (Div. 1 + Div. 2) FINISHED False 9900 118077863 April 23, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25758 ) A Sum of 2050 PROGRAMMING greedy math

B'A number is called 2050-number if it is 2050 , 20500 , ..., ( 2050 cdot 10^k for integer k ge 0 ). Given a number n , you are asked to represent n as the sum of some (not necessarily distinct) 2050-numbers. Compute the minimum number of 2050-numbers required for that. The first line contains a single integer T ( 1 <= T <= q 1 ,000 ) denoting the number of test cases. The only line of each test case contains a single integer n ( 1 <= n <= 10^{18} ) denoting the number to be represented. For each test case, output the minimum number of 2050-numbers in one line. If n cannot be represented as the sum of 2050-numbers, output -1 instead. In the third case, 4100 = 2050 + 2050 . In the fifth case, 22550 = 20500 + 2050 . '...

Tutorials

Contest 2050 and Codeforces Round #718 (Div.1 + Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
114044775 likhita_11 A April 23, 2021, 5:53 p.m. OK Clang++17 Diagnostics TESTS 7 46 0
114053306 spinxfr A April 23, 2021, 7:57 p.m. OK D TESTS 7 30 0
114041025 Sudershan018 A April 23, 2021, 5:14 p.m. OK GNU C11 TESTS 7 15 0
114050541 ADITYA_17 A April 23, 2021, 7:09 p.m. OK GNU C11 TESTS 7 15 0
114050992 murali_33 A April 23, 2021, 7:17 p.m. OK GNU C11 TESTS 7 15 0
114051857 Joker1010123 A April 23, 2021, 7:31 p.m. OK GNU C11 TESTS 7 15 0
114065674 JUBHAI A April 24, 2021, 1:45 a.m. OK GNU C11 TESTS 7 15 0
114072892 kavya682002 A April 24, 2021, 4:39 a.m. OK GNU C11 TESTS 7 15 0
114076378 Cccc23333 A April 24, 2021, 5:37 a.m. OK GNU C11 TESTS 7 15 0
114035220 SriBharath555 A April 23, 2021, 4:48 p.m. OK GNU C11 TESTS 7 15 0
114033358 hnust_tanghao A April 23, 2021, 4:40 p.m. OK GNU C11 TESTS 7 15 0
114038572 winnyrebbeca05 A April 23, 2021, 5:03 p.m. OK GNU C11 TESTS 7 15 0
114072073 liuzhangda A April 24, 2021, 4:23 a.m. OK GNU C++11 TESTS 7 15 0
114078196 zlx111 A April 24, 2021, 6:03 a.m. OK GNU C++11 TESTS 7 15 0
114078156 rmnjtiwari A April 24, 2021, 6:03 a.m. OK GNU C++11 TESTS 7 15 0
114077792 vishalanilmishra26 A April 24, 2021, 5:58 a.m. OK GNU C++11 TESTS 7 15 0
114077228 Andy2009 A April 24, 2021, 5:49 a.m. OK GNU C++11 TESTS 7 15 0
114075692 L_ryusaki_912 A April 24, 2021, 5:26 a.m. OK GNU C++11 TESTS 7 15 0
114073603 HalfAnElephant A April 24, 2021, 4:52 a.m. OK GNU C++11 TESTS 7 15 0
114072685 syksykCCC A April 24, 2021, 4:35 a.m. OK GNU C++11 TESTS 7 15 0
114072344 Clo91eaf A April 24, 2021, 4:29 a.m. OK GNU C++11 TESTS 7 15 0
114071818 cozidle A April 24, 2021, 4:19 a.m. OK GNU C++11 TESTS 7 15 0
114040945 51D A April 23, 2021, 5:13 p.m. OK GNU C++14 TESTS 7 0 0
114077401 Anticipate A April 24, 2021, 5:52 a.m. OK GNU C++14 TESTS 7 15 0
114077644 hasan_mahmud007 A April 24, 2021, 5:56 a.m. OK GNU C++14 TESTS 7 15 0
114077846 Anuj_0911 A April 24, 2021, 5:58 a.m. OK GNU C++14 TESTS 7 15 0
114076744 madhavan_raja A April 24, 2021, 5:42 a.m. OK GNU C++14 TESTS 7 15 0
114077393 sai_teja154 A April 24, 2021, 5:52 a.m. OK GNU C++14 TESTS 7 15 0
114076645 dragon_blade A April 24, 2021, 5:40 a.m. OK GNU C++14 TESTS 7 15 0
114077321 inazuma_11 A April 24, 2021, 5:51 a.m. OK GNU C++14 TESTS 7 15 0
114077895 _Sabib_ A April 24, 2021, 5:59 a.m. OK GNU C++14 TESTS 7 15 0
114076650 victor142 A April 24, 2021, 5:40 a.m. OK GNU C++14 TESTS 7 15 0
114077855 aasourav A April 24, 2021, 5:58 a.m. OK GNU C++17 TESTS 7 15 0
114077408 Louis2803 A April 24, 2021, 5:52 a.m. OK GNU C++17 TESTS 7 15 0
114077257 pupsik.mhd A April 24, 2021, 5:50 a.m. OK GNU C++17 TESTS 7 15 0
114076958 GotuZeno A April 24, 2021, 5:45 a.m. OK GNU C++17 TESTS 7 15 0
114076885 huuminh365 A April 24, 2021, 5:44 a.m. OK GNU C++17 TESTS 7 15 0
114076610 Enshrewd26 A April 24, 2021, 5:40 a.m. OK GNU C++17 TESTS 7 15 0
114076503 himanshupanwar A April 24, 2021, 5:38 a.m. OK GNU C++17 TESTS 7 15 0
114076442 Letscode_sundar A April 24, 2021, 5:38 a.m. OK GNU C++17 TESTS 7 15 0
114078068 jaehyunp312 A April 24, 2021, 6:01 a.m. OK GNU C++17 TESTS 7 15 0
114077453 srishtik_16 A April 24, 2021, 5:53 a.m. OK GNU C++17 TESTS 7 15 0
114075819 Aman_j1 A April 24, 2021, 5:28 a.m. OK GNU C++17 (64) TESTS 7 15 0
114077331 kshittiz21 A April 24, 2021, 5:51 a.m. OK GNU C++17 (64) TESTS 7 15 0
114076214 NoPainNoGain A April 24, 2021, 5:34 a.m. OK GNU C++17 (64) TESTS 7 15 0
114076193 prabhAmbrose A April 24, 2021, 5:34 a.m. OK GNU C++17 (64) TESTS 7 15 0
114075764 Railgun A April 24, 2021, 5:28 a.m. OK GNU C++17 (64) TESTS 7 15 0
114074862 adityasonani A April 24, 2021, 5:13 a.m. OK GNU C++17 (64) TESTS 7 15 0
114074489 njwrz A April 24, 2021, 5:07 a.m. OK GNU C++17 (64) TESTS 7 15 0
114073991 alif_cse_ju A April 24, 2021, 4:58 a.m. OK GNU C++17 (64) TESTS 7 15 0
114072811 shubh1908 A April 24, 2021, 4:38 a.m. OK GNU C++17 (64) TESTS 7 15 0
114071643 golden.duck A April 24, 2021, 4:15 a.m. OK GNU C++17 (64) TESTS 7 15 0
114071335 z20124528 A April 24, 2021, 4:09 a.m. OK Go TESTS 7 31 0
114056078 yousef_soliman A April 23, 2021, 8:41 p.m. OK Go TESTS 7 77 0
114037150 sainageswar A April 23, 2021, 4:57 p.m. OK Go TESTS 7 78 0
114077216 saurabh_kl A April 24, 2021, 5:49 a.m. OK Java 11 TESTS 7 156 0
114068843 ramuked A April 24, 2021, 3:15 a.m. OK Java 11 TESTS 7 171 0
114075122 Akash_Singh_Panwar A April 24, 2021, 5:17 a.m. OK Java 11 TESTS 7 171 0
114046887 godfather9 A April 23, 2021, 6:13 p.m. OK Java 11 TESTS 7 171 0
114044996 _merlin_ A April 23, 2021, 5:56 p.m. OK Java 11 TESTS 7 171 0
114033423 bittubittu A April 23, 2021, 4:40 p.m. OK Java 11 TESTS 7 171 0
114075396 Andwerp A April 24, 2021, 5:22 a.m. OK Java 11 TESTS 7 186 0
114057319 Kunal_30 A April 23, 2021, 9:04 p.m. OK Java 11 TESTS 7 186 0
114058213 kareem3id A April 23, 2021, 9:23 p.m. OK Java 11 TESTS 7 186 0
114058775 Log_ZOOM A April 23, 2021, 9:36 p.m. OK Java 11 TESTS 7 186 0
114047152 less_ordinary A April 23, 2021, 6:17 p.m. OK Java 8 TESTS 7 93 0
114036187 spambell A April 23, 2021, 4:52 p.m. OK Java 8 TESTS 7 93 0
114067077 Toinfinity A April 24, 2021, 2:27 a.m. OK Java 8 TESTS 7 108 0
114075009 vicky2810 A April 24, 2021, 5:16 a.m. OK Java 8 TESTS 7 108 0
114045010 VishuTomar A April 23, 2021, 5:56 p.m. OK Java 8 TESTS 7 108 0
114055725 mihirsharma624 A April 23, 2021, 8:35 p.m. OK Java 8 TESTS 7 109 0
114031779 picografix A April 23, 2021, 4:33 p.m. OK Java 8 TESTS 7 109 0
114073339 vaishnav_firebolt A April 24, 2021, 4:47 a.m. OK Java 8 TESTS 7 109 0
114050447 Java A April 23, 2021, 7:08 p.m. OK Java 8 TESTS 7 109 0
114070311 Avatar A April 24, 2021, 3:48 a.m. OK Java 8 TESTS 7 124 0
114049845 sylvyrfysh A April 23, 2021, 6:58 p.m. OK Kotlin TESTS 7 93 0
114068151 pallav12 A April 24, 2021, 2:57 a.m. OK Kotlin TESTS 7 139 0
114056785 koper A April 23, 2021, 8:54 p.m. OK Kotlin TESTS 7 140 0
114071732 felix_vetsper A April 24, 2021, 4:17 a.m. OK Kotlin TESTS 7 140 0
114034650 aRaha_0_0 A April 23, 2021, 4:45 p.m. OK Mono C# TESTS 7 46 0
114045312 fr0st A April 23, 2021, 5:58 p.m. OK Mono C# TESTS 7 46 102400
114076942 MadinaN A April 24, 2021, 5:45 a.m. OK MS C++ TESTS 7 30 0
114058991 nour.tofi.it A April 23, 2021, 9:41 p.m. OK MS C++ TESTS 7 30 0
114032424 huan1024 A April 23, 2021, 4:36 p.m. OK MS C++ TESTS 7 31 0
114029558 Vlad2d00 A April 23, 2021, 4:25 p.m. OK MS C++ 2017 TESTS 7 15 0
114045736 t0t_samij_lv3n0k A April 23, 2021, 6:02 p.m. OK MS C++ 2017 TESTS 7 15 0
114033927 NishthaUpadhyay A April 23, 2021, 4:42 p.m. OK MS C++ 2017 TESTS 7 15 0
114066397 Score12122 A April 24, 2021, 2:07 a.m. OK MS C++ 2017 TESTS 7 15 307200
114069230 Shashankmankala A April 24, 2021, 3:25 a.m. OK MS C++ 2017 TESTS 7 15 307200
114040105 glam_rider_0703 A April 23, 2021, 5:10 p.m. OK MS C++ 2017 TESTS 7 30 0
114033436 henanshtanwar2001 A April 23, 2021, 4:40 p.m. OK MS C++ 2017 TESTS 7 30 0
114030124 the_killah A April 23, 2021, 4:27 p.m. OK MS C++ 2017 TESTS 7 30 0
114037353 zenroychance A April 23, 2021, 4:58 p.m. OK MS C++ 2017 TESTS 7 31 0
114031757 piyushpathak3004 A April 23, 2021, 4:33 p.m. OK MS C++ 2017 TESTS 7 31 0
114067594 sakapon A April 24, 2021, 2:41 a.m. OK .NET Core C# TESTS 7 77 204800
114070291 sakapon A April 24, 2021, 3:48 a.m. OK .NET Core C# TESTS 7 77 204800
114047830 tysonmashuq A April 23, 2021, 6:29 p.m. OK .NET Core C# TESTS 7 92 0
114056907 Rafiqul_islam_robin A April 23, 2021, 8:56 p.m. OK .NET Core C# TESTS 7 93 0
114050726 didicoding A April 23, 2021, 7:12 p.m. OK Node.js TESTS 7 62 1228800
114054431 micaelillos A April 23, 2021, 8:13 p.m. OK Node.js TESTS 7 62 1331200
114051694 lebron87 A April 23, 2021, 7:29 p.m. OK PyPy 2 TESTS 7 170 9318400
114044548 _aadiupadhyay_ A April 23, 2021, 5:51 p.m. OK PyPy 3 TESTS 7 108 1843200
114049295 evoxtorm A April 23, 2021, 6:49 p.m. OK PyPy 3 TESTS 7 108 2048000
114070851 codicon A April 24, 2021, 4 a.m. OK PyPy 3 TESTS 7 108 2457600
114070477 colicon A April 24, 2021, 3:52 a.m. OK PyPy 3 TESTS 7 108 2457600
114052436 snape_here A April 23, 2021, 7:41 p.m. OK PyPy 3 TESTS 7 109 2355200
114060256 Leggasick A April 23, 2021, 10:16 p.m. OK PyPy 3 TESTS 7 124 2150400
114047311 sreeram_2310 A April 23, 2021, 6:19 p.m. OK PyPy 3 TESTS 7 124 2867200
114055524 freakbuoyancy A April 23, 2021, 8:31 p.m. OK PyPy 3 TESTS 7 124 3379200
114044060 Ruski_Bratwurst A April 23, 2021, 5:47 p.m. OK PyPy 3 TESTS 7 124 3481600
114037276 UIT19522424 A April 23, 2021, 4:57 p.m. OK PyPy 3 TESTS 7 124 3584000
114035090 khajamohiuddin A April 23, 2021, 4:47 p.m. OK Python 2 TESTS 7 77 102400
114072865 seema_123 A April 24, 2021, 4:39 a.m. OK Python 3 TESTS 7 46 0
114047095 dundidipesh A April 23, 2021, 6:16 p.m. OK Python 3 TESTS 7 46 0
114032118 jlinjiang A April 23, 2021, 4:34 p.m. OK Python 3 TESTS 7 46 0
114050267 Nihar_17 A April 23, 2021, 7:05 p.m. OK Python 3 TESTS 7 61 0
114071797 liuruyi A April 24, 2021, 4:18 a.m. OK Python 3 TESTS 7 61 0
114070948 prashant-2-4-4 A April 24, 2021, 4:01 a.m. OK Python 3 TESTS 7 61 0
114068957 hakish1234 A April 24, 2021, 3:18 a.m. OK Python 3 TESTS 7 61 0
114077124 hogrider A April 24, 2021, 5:48 a.m. OK Python 3 TESTS 7 62 0
114071965 prathyushathota32 A April 24, 2021, 4:21 a.m. OK Python 3 TESTS 7 62 0
114072101 skate1512 A April 24, 2021, 4:24 a.m. OK Python 3 TESTS 7 62 0

remove filters

Back to search problems