Codeforces Round 673 (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
1417 Codeforces Round 673 (Div. 2) FINISHED False 7200 130604099 Sept. 27, 2020, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18300 ) A Copy-paste PROGRAMMING greedy math 800

B" -- That'll do it. BThero is a powerful magician. He has got n piles of candies, the i -th pile initially contains a_i candies. BThero can cast a copy-paste spell as follows: BThero can cast this spell any number of times he wants to -- but unfortunately, if some pile contains strictly more than k candies, he loses his magic power. What is the maximum number of times BThero can cast the spell without losing his power? The first line contains one integer T ( 1 <= T <= 500 ) -- the number of test cases. Each test case consists of two lines: It is guaranteed that the sum of n over all test cases does not exceed 1000 , and the sum of k over all test cases does not exceed 10^4 . For each test case, print one integer -- the maximum number of times BThero can cast the spell without losing his magic power. In the first test case we get either a = [1, 2] or a = [2, 1] after casting the spell for the first time, and it is impossible to cast it again. "...

Tutorials

Codeforces Round #673 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
94048268 mayeed A Sept. 28, 2020, 4:51 a.m. OK GNU C11 TESTS 3 15 0 800
94016290 Ankit_ag_007 A Sept. 27, 2020, 4:56 p.m. OK GNU C11 TESTS 3 15 0 800
94012337 ayushdh A Sept. 27, 2020, 4:44 p.m. OK GNU C11 TESTS 3 15 0 800
94008327 shreeraagav2012 A Sept. 27, 2020, 4:31 p.m. OK GNU C11 TESTS 3 15 0 800
94021173 physics0523 A Sept. 27, 2020, 5:41 p.m. OK GNU C11 TESTS 3 15 2048000 800
94010576 yogeshk01 A Sept. 27, 2020, 4:39 p.m. OK GNU C11 TESTS 3 31 0 800
94025519 namanbhatia11111 A Sept. 27, 2020, 6:24 p.m. OK GNU C11 TESTS 3 31 0 800
94007477 shubhammank A Sept. 27, 2020, 4:29 p.m. OK GNU C11 TESTS 3 31 409600 800
94047595 zx0210 A Sept. 28, 2020, 4:37 a.m. OK GNU C++11 TESTS 3 15 0 800
94046560 kkaallii A Sept. 28, 2020, 4:17 a.m. OK GNU C++11 TESTS 3 15 0 800
94050673 autistic_boy A Sept. 28, 2020, 5:33 a.m. OK GNU C++11 TESTS 3 15 0 800
94050560 _ageofsagittarius A Sept. 28, 2020, 5:32 a.m. OK GNU C++11 TESTS 3 15 0 800
94050543 IULeeJiEun A Sept. 28, 2020, 5:31 a.m. OK GNU C++11 TESTS 3 15 0 800
94051987 vectorishere A Sept. 28, 2020, 5:55 a.m. OK GNU C++11 TESTS 3 15 0 800
94050502 OneQz A Sept. 28, 2020, 5:31 a.m. OK GNU C++11 TESTS 3 15 0 800
94050381 TeeHandSome A Sept. 28, 2020, 5:29 a.m. OK GNU C++11 TESTS 3 15 0 800
94049693 DoTran A Sept. 28, 2020, 5:17 a.m. OK GNU C++11 TESTS 3 15 0 800
94048733 TheLoneWolf12 A Sept. 28, 2020, 5 a.m. OK GNU C++11 TESTS 3 15 0 800
94049807 zobaer_1803006 A Sept. 28, 2020, 5:19 a.m. OK GNU C++14 TESTS 3 15 0 800
94049737 rayhan_ A Sept. 28, 2020, 5:17 a.m. OK GNU C++14 TESTS 3 15 0 800
94052409 alox A Sept. 28, 2020, 6:01 a.m. OK GNU C++14 TESTS 3 15 0 800
94052099 vibhugautam A Sept. 28, 2020, 5:56 a.m. OK GNU C++14 TESTS 3 15 0 800
94051851 janmansh A Sept. 28, 2020, 5:53 a.m. OK GNU C++14 TESTS 3 15 0 800
94050980 kevingo A Sept. 28, 2020, 5:39 a.m. OK GNU C++14 TESTS 3 15 0 800
94050793 SRIKANTH A Sept. 28, 2020, 5:35 a.m. OK GNU C++14 TESTS 3 15 0 800
94050766 Autron A Sept. 28, 2020, 5:35 a.m. OK GNU C++14 TESTS 3 15 0 800
94050395 abhi023 A Sept. 28, 2020, 5:29 a.m. OK GNU C++14 TESTS 3 15 0 800
94050345 sanskar_kush11 A Sept. 28, 2020, 5:28 a.m. OK GNU C++14 TESTS 3 15 0 800
94029012 aman333 A Sept. 27, 2020, 7:20 p.m. OK GNU C++17 TESTS 3 0 0 800
94025195 ninja21 A Sept. 27, 2020, 6:20 p.m. OK GNU C++17 TESTS 3 0 0 800
94029335 Theo_S A Sept. 27, 2020, 7:26 p.m. OK GNU C++17 TESTS 3 0 102400 800
94051670 KopoJIb_MaMok A Sept. 28, 2020, 5:50 a.m. OK GNU C++17 TESTS 3 0 204800 800
94032837 AIMON A Sept. 27, 2020, 8:50 p.m. OK GNU C++17 TESTS 3 0 819200 800
94051717 rahulchhabra882 A Sept. 28, 2020, 5:51 a.m. OK GNU C++17 TESTS 3 15 0 800
94051494 pks001 A Sept. 28, 2020, 5:47 a.m. OK GNU C++17 TESTS 3 15 0 800
94051638 Hatodi A Sept. 28, 2020, 5:50 a.m. OK GNU C++17 TESTS 3 15 0 800
94052467 sqqq23 A Sept. 28, 2020, 6:02 a.m. OK GNU C++17 TESTS 3 15 0 800
94052053 adrsh23 A Sept. 28, 2020, 5:56 a.m. OK GNU C++17 TESTS 3 15 0 800
94024256 MateoCV A Sept. 27, 2020, 6:08 p.m. OK GNU C++17 (64) TESTS 3 0 0 800
94049268 anshulsaraf A Sept. 28, 2020, 5:09 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94052196 Arnav04 A Sept. 28, 2020, 5:58 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94051664 i_am_noob A Sept. 28, 2020, 5:50 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94050235 Bondo A Sept. 28, 2020, 5:26 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94045270 kailashraturi01 A Sept. 28, 2020, 3:48 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94045160 anishpathak121 A Sept. 28, 2020, 3:46 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94043917 souravrax A Sept. 28, 2020, 3:17 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94040911 israil445 A Sept. 28, 2020, 1:51 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94040761 mahbubhasanmht A Sept. 28, 2020, 1:46 a.m. OK GNU C++17 (64) TESTS 3 15 0 800
94046110 anshuman1305 A Sept. 28, 2020, 4:08 a.m. OK Java 11 TESTS 3 139 0 800
94043598 Prathmesh13 A Sept. 28, 2020, 3:08 a.m. OK Java 11 TESTS 3 155 0 800
94021048 gssakash A Sept. 27, 2020, 5:41 p.m. OK Java 11 TESTS 3 155 0 800
94047903 codego144 A Sept. 28, 2020, 4:44 a.m. OK Java 11 TESTS 3 155 0 800
94036260 skittles1412 A Sept. 27, 2020, 10:38 p.m. OK Java 11 TESTS 3 156 0 800
94021139 sanju2504 A Sept. 27, 2020, 5:41 p.m. OK Java 11 TESTS 3 156 0 800
94050798 shrinidhi99 A Sept. 28, 2020, 5:36 a.m. OK Java 11 TESTS 3 171 0 800
94048761 a1000 A Sept. 28, 2020, 5 a.m. OK Java 11 TESTS 3 171 0 800
94046163 sam_code A Sept. 28, 2020, 4:09 a.m. OK Java 11 TESTS 3 171 0 800
94045592 typewriter999 A Sept. 28, 2020, 3:56 a.m. OK Java 11 TESTS 3 171 0 800
94037867 yesbutno1685 A Sept. 27, 2020, 11:56 p.m. OK Java 8 TESTS 3 77 0 800
94047274 ss1237 A Sept. 28, 2020, 4:31 a.m. OK Java 8 TESTS 3 93 0 800
94042500 MagentaCobra A Sept. 28, 2020, 2:41 a.m. OK Java 8 TESTS 3 93 0 800
94042222 Manan8686 A Sept. 28, 2020, 2:32 a.m. OK Java 8 TESTS 3 93 0 800
94035795 over_flow A Sept. 27, 2020, 10:19 p.m. OK Java 8 TESTS 3 93 0 800
94033418 over_flow A Sept. 27, 2020, 9:05 p.m. OK Java 8 TESTS 3 93 0 800
94029000 shinchan_nohara A Sept. 27, 2020, 7:20 p.m. OK Java 8 TESTS 3 93 0 800
94026934 Utkarshn101 A Sept. 27, 2020, 6:44 p.m. OK Java 8 TESTS 3 93 0 800
94024189 O-infinity A Sept. 27, 2020, 6:07 p.m. OK Java 8 TESTS 3 93 0 800
94023435 Akash_kunwar A Sept. 27, 2020, 5:58 p.m. OK Java 8 TESTS 3 93 0 800
94031521 sid9406 A Sept. 27, 2020, 8:15 p.m. OK Kotlin TESTS 3 124 1331200 800
94028123 azukun A Sept. 27, 2020, 7:03 p.m. OK Mono C# TESTS 3 46 3788800 800
94050626 Baobab0304 A Sept. 28, 2020, 5:33 a.m. OK MS C++ 2017 TESTS 3 15 0 800
94047048 HippyTD A Sept. 28, 2020, 4:27 a.m. OK MS C++ 2017 TESTS 3 15 0 800
94047953 HippyTD A Sept. 28, 2020, 4:45 a.m. OK MS C++ 2017 TESTS 3 30 0 800
94050806 htija A Sept. 28, 2020, 5:36 a.m. OK MS C++ 2017 TESTS 3 30 0 800
94048028 HippyTD A Sept. 28, 2020, 4:46 a.m. OK MS C++ 2017 TESTS 3 31 0 800
94047445 HippyTD A Sept. 28, 2020, 4:34 a.m. OK MS C++ 2017 TESTS 3 31 0 800
94031804 ilya_totl A Sept. 27, 2020, 8:21 p.m. OK MS C++ 2017 TESTS 3 31 0 800
94024594 Frobis A Sept. 27, 2020, 6:12 p.m. OK MS C++ 2017 TESTS 3 31 0 800
94043533 Asthebel99 A Sept. 28, 2020, 3:06 a.m. OK MS C++ 2017 TESTS 3 31 0 800
94048090 HippyTD A Sept. 28, 2020, 4:48 a.m. OK MS C++ 2017 TESTS 3 31 0 800
94037887 yumtam A Sept. 27, 2020, 11:57 p.m. OK PyPy 2 TESTS 3 93 204800 800
94028619 tphung21 A Sept. 27, 2020, 7:13 p.m. OK PyPy 3 TESTS 3 109 0 800
94051893 RaZoR_191 A Sept. 28, 2020, 5:53 a.m. OK PyPy 3 TESTS 3 124 0 800
94034489 Achilles221B A Sept. 27, 2020, 9:35 p.m. OK PyPy 3 TESTS 3 124 0 800
94025169 dx_dy_dz A Sept. 27, 2020, 6:19 p.m. OK PyPy 3 TESTS 3 124 0 800
94049386 F-2018 A Sept. 28, 2020, 5:11 a.m. OK PyPy 3 TESTS 3 124 1126400 800
94044246 DimmyT A Sept. 28, 2020, 3:25 a.m. OK PyPy 3 TESTS 3 124 1126400 800
94035230 Sofianelewin A Sept. 27, 2020, 9:59 p.m. OK PyPy 3 TESTS 3 124 1126400 800
94031040 luciferstern A Sept. 27, 2020, 8:03 p.m. OK PyPy 3 TESTS 3 124 1126400 800
94030185 alex_code A Sept. 27, 2020, 7:45 p.m. OK PyPy 3 TESTS 3 124 1126400 800
94027349 uttharapally.chandra A Sept. 27, 2020, 6:51 p.m. OK PyPy 3 TESTS 3 124 1126400 800

remove filters

Back to search problems