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
( 38053 ) B Same Parity Summands PROGRAMMING constructive algorithms math 1200

B'You are given two positive integers n ( 1 <= n <= 10^9 ) and k ( 1 <= k <= 100 ). Represent the number n as the sum of k positive integers of the same parity (have the same remainder when divided by 2 ). In other words, find a_1, a_2, ldots, a_k such that all a_i>0 , n = a_1 + a_2 + ldots + a_k and either all a_i are even or all a_i are odd at the same time. If such a representation does not exist, then report it. The first line contains an integer t ( 1 <= t <= 1000 ) -- the number of test cases in the input. Next, t test cases are given, one per line. Each test case is two positive integers n ( 1 <= n <= 10^9 ) and k ( 1 <= k <= 100 ). For each test case print: The letters in the words YES and NO can be printed in any case. '...

Tutorials

77161

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
79801277 ASHUMITTAL B May 12, 2020, 5:31 a.m. OK Clang++17 Diagnostics TESTS 4 61 0 1200
80776801 chncg B May 20, 2020, 1:33 p.m. OK Clang++17 Diagnostics TESTS 4 109 0 1200
80452902 Gassa B May 17, 2020, 9:05 a.m. OK D TESTS 4 30 4710400 1200
80022870 Maciej B May 14, 2020, 12:36 a.m. OK GNU C11 TESTS 4 62 3686400 1200
79679677 ja1467 B May 10, 2020, 6 p.m. OK GNU C11 TESTS 4 62 3686400 1200
79906143 Shady235 B May 12, 2020, 5:05 p.m. OK GNU C11 TESTS 4 62 3686400 1200
80655704 vjudge1 B May 19, 2020, 5:11 a.m. OK GNU C11 TESTS 4 77 0 1200
81433313 PStatiC B May 26, 2020, 3:44 a.m. OK GNU C11 TESTS 4 77 0 1200
80688117 vjudge5 B May 19, 2020, 12:43 p.m. OK GNU C11 TESTS 4 78 0 1200
80692823 vjudge2 B May 19, 2020, 1:36 p.m. OK GNU C11 TESTS 4 78 0 1200
80810443 kaushik_rai B May 20, 2020, 11:04 p.m. OK GNU C11 TESTS 4 78 0 1200
81044543 kopil_das B May 23, 2020, 7:42 p.m. OK GNU C11 TESTS 4 78 0 1200
80659565 sahaj_vijay666 B May 19, 2020, 6:15 a.m. OK GNU C11 TESTS 4 78 0 1200
80975522 countercurrent-time B May 23, 2020, 12:17 a.m. OK GNU C++11 TESTS 4 15 0 1200
80998328 zhanglichen B May 23, 2020, 8:46 a.m. OK GNU C++11 TESTS 4 15 0 1200
81057837 Aluss B May 24, 2020, 3:32 a.m. OK GNU C++11 TESTS 4 15 0 1200
81710826 s_r_rayhan B May 28, 2020, 1:45 p.m. OK GNU C++11 TESTS 4 15 0 1200
81337613 Y0528 B May 25, 2020, 12:16 a.m. OK GNU C++11 TESTS 4 15 0 1200
81698613 4markumar B May 28, 2020, 11:13 a.m. OK GNU C++11 TESTS 4 15 0 1200
81670381 Payphone--X B May 28, 2020, 4:59 a.m. OK GNU C++11 TESTS 4 15 0 1200
81663753 Jiang-Shan B May 28, 2020, 2:23 a.m. OK GNU C++11 TESTS 4 15 0 1200
81540899 Mgd1MA B May 26, 2020, 4:22 p.m. OK GNU C++11 TESTS 4 15 0 1200
81436762 Sanjida1903070 B May 26, 2020, 5:02 a.m. OK GNU C++11 TESTS 4 15 0 1200
81708699 raghunadh_g B May 28, 2020, 1:19 p.m. OK GNU C++14 TESTS 4 15 0 1200
81669176 tiwari188 B May 28, 2020, 4:33 a.m. OK GNU C++14 TESTS 4 15 0 1200
81596117 best_me B May 27, 2020, 8:12 a.m. OK GNU C++14 TESTS 4 15 0 1200
81450005 AlmightyJ B May 26, 2020, 8:12 a.m. OK GNU C++14 TESTS 4 15 0 1200
81382828 AmiCiaFortySeven B May 25, 2020, 12:33 p.m. OK GNU C++14 TESTS 4 15 0 1200
81373819 natan.misztal B May 25, 2020, 10:47 a.m. OK GNU C++14 TESTS 4 15 0 1200
81258238 subhojitz123 B May 24, 2020, 2:26 p.m. OK GNU C++14 TESTS 4 15 0 1200
81018900 kartikey134 B May 23, 2020, 1:44 p.m. OK GNU C++14 TESTS 4 15 0 1200
81005056 Scut82 B May 23, 2020, 10:25 a.m. OK GNU C++14 TESTS 4 15 0 1200
81003640 Scut82 B May 23, 2020, 10:04 a.m. OK GNU C++14 TESTS 4 15 0 1200
81297209 pimukthee B May 24, 2020, 3:21 p.m. OK GNU C++17 TESTS 4 0 0 1200
81661873 c5xheavy B May 28, 2020, 1:20 a.m. OK GNU C++17 TESTS 4 15 0 1200
81713704 ehsanul.karim.talha B May 28, 2020, 2:20 p.m. OK GNU C++17 TESTS 4 15 0 1200
81707667 dev_ankitp B May 28, 2020, 1:06 p.m. OK GNU C++17 TESTS 4 15 0 1200
81668870 zero_dark B May 28, 2020, 4:26 a.m. OK GNU C++17 TESTS 4 15 0 1200
81646000 monkeyOnTypewriter B May 27, 2020, 5:58 p.m. OK GNU C++17 TESTS 4 15 0 1200
81622494 ShwetKhatri B May 27, 2020, 1:22 p.m. OK GNU C++17 TESTS 4 15 0 1200
81475498 yash_agarl_ B May 26, 2020, 1:35 p.m. OK GNU C++17 TESTS 4 15 0 1200
81426630 _shamim B May 26, 2020, 12:20 a.m. OK GNU C++17 TESTS 4 15 0 1200
81394095 csgrandeur B May 25, 2020, 2:49 p.m. OK GNU C++17 TESTS 4 15 0 1200
80750298 vjudge2 B May 20, 2020, 7:30 a.m. OK GNU C++17 (64) TESTS 4 15 0 1200
80836992 Niajul B May 21, 2020, 9:14 a.m. OK GNU C++17 (64) TESTS 4 15 0 1200
80851272 meetpr8 B May 21, 2020, 12:26 p.m. OK GNU C++17 (64) TESTS 4 15 0 1200
80854786 rsk0315 B May 21, 2020, 1:12 p.m. OK GNU C++17 (64) TESTS 4 15 0 1200
80892161 granddaifuku B May 22, 2020, 12:16 a.m. OK GNU C++17 (64) TESTS 4 15 0 1200
81052872 jainbot27 B May 23, 2020, 11:55 p.m. OK GNU C++17 (64) TESTS 4 15 0 1200
81162942 dravil_rhino B May 24, 2020, 9:42 a.m. OK GNU C++17 (64) TESTS 4 15 0 1200
81419629 vjudge4 B May 25, 2020, 8:16 p.m. OK GNU C++17 (64) TESTS 4 15 0 1200
81563484 menna_tallah B May 26, 2020, 8:35 p.m. OK GNU C++17 (64) TESTS 4 15 0 1200
81634652 Stiff_Subset B May 27, 2020, 3:37 p.m. OK GNU C++17 (64) TESTS 4 15 0 1200
79809016 muravjov B May 12, 2020, 10:58 a.m. OK Go TESTS 4 31 10649600 1200
79922576 pepradere B May 12, 2020, 8:40 p.m. OK Go TESTS 4 31 15155200 1200
80612211 devesh08 B May 18, 2020, 2:37 p.m. OK Java 11 TESTS 4 170 23961600 1200
80285174 an1rudh B May 16, 2020, 6:32 a.m. OK Java 11 TESTS 4 170 23961600 1200
81352055 manojbhatt B May 25, 2020, 6:07 a.m. OK Java 11 TESTS 4 171 0 1200
80959308 mayank_dave B May 22, 2020, 5:52 p.m. OK Java 11 TESTS 4 186 0 1200
79982056 gAyan17 B May 13, 2020, 1:05 p.m. OK Java 11 TESTS 4 186 24166400 1200
80079183 pheonix_ B May 14, 2020, 2:33 p.m. OK Java 11 TESTS 4 186 24473600 1200
79772063 zenlyj B May 11, 2020, 5:52 p.m. OK Java 11 TESTS 4 187 24166400 1200
79679522 nickleoden299 B May 10, 2020, 5:58 p.m. OK Java 11 TESTS 4 187 24371200 1200
80559340 Bisoye B May 17, 2020, 11:55 p.m. OK Java 11 TESTS 4 202 24473600 1200
80559060 Bisoye B May 17, 2020, 11:44 p.m. OK Java 11 TESTS 4 202 24576000 1200
81199004 ingyu1008 B May 24, 2020, 12:43 p.m. OK Java 8 TESTS 4 93 0 1200
80973294 Oopsimbad B May 22, 2020, 10:39 p.m. OK Java 8 TESTS 4 93 0 1200
79986375 Oland B May 13, 2020, 1:54 p.m. OK Java 8 TESTS 4 93 20480000 1200
79679763 Lorderot B May 10, 2020, 6:01 p.m. OK Java 8 TESTS 4 93 20480000 1200
81450024 adhi_2311 B May 26, 2020, 8:12 a.m. OK Java 8 TESTS 4 108 0 1200
80878437 tsumit023 B May 21, 2020, 6:04 p.m. OK Java 8 TESTS 4 108 0 1200
80263580 MohammadAmjad B May 15, 2020, 9:12 p.m. OK Java 8 TESTS 4 108 20480000 1200
79692899 MahmoudJobeel B May 10, 2020, 9:50 p.m. OK Java 8 TESTS 4 108 20480000 1200
80235324 labdhi B May 15, 2020, 2:33 p.m. OK Java 8 TESTS 4 108 20582400 1200
80300797 Piratik12 B May 16, 2020, 9:45 a.m. OK Java 8 TESTS 4 108 20582400 1200
80891429 vbrigand B May 21, 2020, 11:45 p.m. OK JavaScript TESTS 4 62 1638400 1200
80229723 Killer45 B May 15, 2020, 1:28 p.m. OK Kotlin TESTS 4 124 20684800 1200
79866733 lenphuong B May 12, 2020, 2:02 p.m. OK Kotlin TESTS 4 155 21811200 1200
80926109 gevmart B May 22, 2020, 10:53 a.m. OK Kotlin TESTS 4 171 0 1200
79677796 weekens B May 10, 2020, 5:36 p.m. OK Kotlin TESTS 4 186 22425600 1200
80190631 tabr B May 15, 2020, 4:35 a.m. OK Kotlin TESTS 4 202 22937600 1200
81650448 Danzev B May 27, 2020, 7:16 p.m. OK Kotlin TESTS 4 218 0 1200
80864694 Clowyy B May 21, 2020, 3:03 p.m. OK Kotlin TESTS 4 218 0 1200
80809540 jmrh_1 B May 20, 2020, 10:25 p.m. OK Kotlin TESTS 4 218 0 1200
79712251 treasuryonly B May 11, 2020, 6:43 a.m. OK Mono C# TESTS 4 61 9318400 1200
80041134 AsadulloProgrammist B May 14, 2020, 7:03 a.m. OK Mono C# TESTS 4 61 11468800 1200
80693226 Resharper_0165 B May 19, 2020, 1:41 p.m. OK Mono C# TESTS 4 62 4198400 1200
80693687 vkb2013 B May 19, 2020, 1:46 p.m. OK Mono C# TESTS 4 62 4198400 1200
80646654 itt828 B May 19, 2020, 12:59 a.m. OK Mono C# TESTS 4 62 4608000 1200
80646264 itt828 B May 19, 2020, 12:45 a.m. OK Mono C# TESTS 4 62 4608000 1200
80610163 tjktnrVK B May 18, 2020, 2:13 p.m. OK Mono C# TESTS 4 62 10547200 1200
80270913 sakapon B May 16, 2020, 1:32 a.m. OK Mono C# TESTS 4 62 13414400 1200
80244905 ksandr1v B May 15, 2020, 4:29 p.m. OK Mono C# TESTS 4 92 9830400 1200
80405542 Shambhav B May 16, 2020, 6:30 p.m. OK Mono C# TESTS 4 93 8499200 1200
80522233 vjudge3 B May 17, 2020, 1:06 p.m. OK MS C++ TESTS 4 30 3891200 1200
80737819 vjudge2 B May 20, 2020, 3:32 a.m. OK MS C++ TESTS 4 31 0 1200
80668421 Hokage. B May 19, 2020, 8:24 a.m. OK MS C++ TESTS 4 31 0 1200
80294449 vjudge5 B May 16, 2020, 8:25 a.m. OK MS C++ TESTS 4 31 3891200 1200
79917213 Vermihunter B May 12, 2020, 7:14 p.m. OK MS C++ TESTS 4 31 3891200 1200
79735079 vjudge5 B May 11, 2020, 11:51 a.m. OK MS C++ TESTS 4 31 3891200 1200
79996881 vjudge1 B May 13, 2020, 3:38 p.m. OK MS C++ TESTS 4 31 4096000 1200
80767228 vjudge5 B May 20, 2020, 11:26 a.m. OK MS C++ TESTS 4 46 0 1200
80292928 guanyin1433223 B May 16, 2020, 8:06 a.m. OK MS C++ 2017 TESTS 4 15 3686400 1200
79744967 Litore B May 11, 2020, 12:30 p.m. OK MS C++ 2017 TESTS 4 15 3686400 1200
80042256 folivtr B May 14, 2020, 7:17 a.m. OK MS C++ 2017 TESTS 4 15 3686400 1200
79970386 naitsabes.ezluhcs B May 13, 2020, 10:50 a.m. OK MS C++ 2017 TESTS 4 15 3686400 1200
80687396 vjudge4 B May 19, 2020, 12:35 p.m. OK MS C++ 2017 TESTS 4 30 0 1200
80692027 vjudge3 B May 19, 2020, 1:28 p.m. OK MS C++ 2017 TESTS 4 30 0 1200
80739321 vjudge3 B May 20, 2020, 4:12 a.m. OK MS C++ 2017 TESTS 4 30 0 1200
80926457 Still_Theory B May 22, 2020, 10:58 a.m. OK MS C++ 2017 TESTS 4 30 0 1200
80522685 shio B May 17, 2020, 1:13 p.m. OK MS C++ 2017 TESTS 4 30 3686400 1200
80604626 vjudge4 B May 18, 2020, 1:07 p.m. OK MS C++ 2017 TESTS 4 30 3686400 1200
80701878 amibane B May 19, 2020, 3:09 p.m. OK Node.js TESTS 4 93 2457600 1200
80891665 vbrigand B May 21, 2020, 11:57 p.m. OK Node.js TESTS 4 109 2048000 1200
79712028 cyborgs B May 11, 2020, 6:40 a.m. OK Node.js TESTS 4 187 15257600 1200
79755057 arpit2438735 B May 11, 2020, 2:31 p.m. OK Node.js TESTS 4 187 15872000 1200
79718540 jainsakshi94 B May 11, 2020, 8:14 a.m. OK Node.js TESTS 4 202 15257600 1200
79715047 mishagam B May 11, 2020, 7:22 a.m. OK Ocaml TESTS 4 15 3891200 1200
81041009 PetrK B May 23, 2020, 6:45 p.m. OK PascalABC.NET TESTS 4 311 409600 1200
81449421 mironenko B May 26, 2020, 8:05 a.m. OK PascalABC.NET TESTS 4 420 0 1200
80853727 cYxSH1 B May 21, 2020, 12:58 p.m. OK PascalABC.NET TESTS 4 436 0 1200
81446668 02041505Zaharova B May 26, 2020, 7:27 a.m. OK PascalABC.NET TESTS 4 436 102400 1200
79781964 Khaled_Mohamed B May 11, 2020, 8:39 p.m. OK PHP TESTS 4 93 0 1200
80806877 chaudhary_19 B May 20, 2020, 8:55 p.m. OK PyPy 2 TESTS 4 109 2355200 1200
79919565 timf1089 B May 12, 2020, 7:49 p.m. OK PyPy 2 TESTS 4 140 25702400 1200
79750156 itsme297 B May 11, 2020, 1:34 p.m. OK PyPy 2 TESTS 4 421 26419200 1200
79728643 pranavdv B May 11, 2020, 10:33 a.m. OK PyPy 3 TESTS 4 155 20172800 1200
79698965 TheMisfits B May 11, 2020, 1:23 a.m. OK PyPy 3 TESTS 4 155 22323200 1200
80062126 neweekoff B May 14, 2020, 11:13 a.m. OK PyPy 3 TESTS 4 155 24166400 1200
79716432 panamavan B May 11, 2020, 7:42 a.m. OK PyPy 3 TESTS 4 170 22528000 1200
79719948 bit_2 B May 11, 2020, 8:37 a.m. OK PyPy 3 TESTS 4 171 24166400 1200
81566755 sixpacksexy B May 26, 2020, 10:03 p.m. OK PyPy 3 TESTS 4 186 3072000 1200
79798755 mada_abdo B May 12, 2020, 4:42 a.m. OK PyPy 3 TESTS 4 186 3072000 1200
79784490 ratan_2001 B May 11, 2020, 9:33 p.m. OK PyPy 3 TESTS 4 186 3174400 1200
81691386 caow B May 28, 2020, 9:40 a.m. OK PyPy 3 TESTS 4 186 3379200 1200
81058029 dntxs B May 24, 2020, 3:39 a.m. OK PyPy 3 TESTS 4 186 3379200 1200
79670777 hungnt0597 B May 10, 2020, 4:05 p.m. OK Python 2 TESTS 4 171 6451200 1200
81057675 shobonvip B May 24, 2020, 3:27 a.m. OK Python 3 TESTS 4 93 307200 1200
80871748 SubhankarNag B May 21, 2020, 4:30 p.m. OK Python 3 TESTS 4 93 307200 1200
80708876 lakshyamittalaka B May 19, 2020, 4:31 p.m. OK Python 3 TESTS 4 93 307200 1200
79747340 master11941140 B May 11, 2020, 1 p.m. OK Python 3 TESTS 4 93 6656000 1200
80556282 ice11667 B May 17, 2020, 9:55 p.m. OK Python 3 TESTS 4 93 6963200 1200
80525343 trymyworst B May 17, 2020, 1:49 p.m. OK Python 3 TESTS 4 93 6963200 1200
80247541 n.a.borisov B May 15, 2020, 5:02 p.m. OK Python 3 TESTS 4 93 6963200 1200
80205476 Rametago B May 15, 2020, 8:33 a.m. OK Python 3 TESTS 4 93 6963200 1200
80044301 CopperHawk B May 14, 2020, 7:41 a.m. OK Python 3 TESTS 4 93 6963200 1200
80006933 divyansh_io B May 13, 2020, 5:37 p.m. OK Python 3 TESTS 4 93 6963200 1200
80829095 eugene.l B May 21, 2020, 7:25 a.m. OK Ruby TESTS 4 61 0 1200
79700398 IvanDyachenko B May 11, 2020, 2:13 a.m. OK Scala TESTS 4 576 40038400 1200

remove filters

Back to search problems