Codeforces Round 671 (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
1419 Codeforces Round 671 (Div. 2) FINISHED False 7200 131297099 Sept. 19, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16313 ) B Stairs PROGRAMMING brute force constructive algorithms greedy implementation math two pointers

B"Jett is tired after destroying the town and she wants to have a rest. She likes high places, that's why for having a rest she wants to get high and she decided to craft staircases. A staircase is a squared figure that consists of square cells. Each staircase consists of an arbitrary number of stairs. If a staircase has n stairs, then it is made of n columns, the first column is 1 cell high, the second column is 2 cells high, ldots , the n -th column if n cells high. The lowest cells of all stairs must be in the same row. A staircase with n stairs is called nice, if it may be covered by n disjoint squares made of cells. All squares should fully consist of cells of a staircase. Find out the maximal number of different nice staircases, that can be built, using no more than x cells, in total. No cell can be used more than once. The first line contains a single integer t (1 <= t <= 1000) -- the number of test cases. The description of each test case contains a single integer x (1 <= x <= 10^{18}) -- the number of cells for building staircases. For each test case output a single integer -- the number of different nice staircases, that can be built, using not more than x cells, in total. In the first test case, it is possible to build only one staircase, that consists of 1 stair. It's nice. That's why the answer is 1 . In the second test case, it is possible to build two different nice staircases: one consists of 1 stair, and another consists of 3 stairs. This will cost 7 cells. In this case, there is one cell left, but it is not possible to use it for building any nice staircases, that have not been built yet. That's why the answer is 2 . In the third test case, it is possible to build only one of two nice staircases: with 1 stair or with 3 stairs. In the first case, there will be 5 cells left, that may be used"...

Tutorials

Codeforces Round #671 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
93267816 dbdxzwh B Sept. 19, 2020, 4:33 p.m. OK GNU C11 TESTS 60 31 0
93275717 aryanpandeya B Sept. 19, 2020, 6:46 p.m. OK GNU C11 TESTS 60 31 0
93289766 eugalt B Sept. 19, 2020, 11:17 p.m. OK GNU C11 TESTS 60 31 0
93294107 KCSB B Sept. 20, 2020, 2:12 a.m. OK GNU C11 TESTS 60 46 0
93297746 i_love_Lisa B Sept. 20, 2020, 3:44 a.m. OK GNU C++11 TESTS 60 30 0
93300564 i_love_Lisa B Sept. 20, 2020, 4:41 a.m. OK GNU C++11 TESTS 60 31 0
93304853 rgnerdplayer B Sept. 20, 2020, 5:53 a.m. OK GNU C++11 TESTS 60 31 0
93301435 Rohit323615 B Sept. 20, 2020, 4:57 a.m. OK GNU C++11 TESTS 60 31 0
93301232 jyotikrjc B Sept. 20, 2020, 4:54 a.m. OK GNU C++11 TESTS 60 31 0
93301184 Opcode B Sept. 20, 2020, 4:53 a.m. OK GNU C++11 TESTS 60 31 0
93300751 275307894a B Sept. 20, 2020, 4:44 a.m. OK GNU C++11 TESTS 60 31 0
93304630 liningyuan19 B Sept. 20, 2020, 5:50 a.m. OK GNU C++11 TESTS 60 31 0
93303153 nkdanta1 B Sept. 20, 2020, 5:28 a.m. OK GNU C++11 TESTS 60 31 0
93301617 shimakaze1104 B Sept. 20, 2020, 5:01 a.m. OK GNU C++11 TESTS 60 31 0
93303958 melted_ice B Sept. 20, 2020, 5:41 a.m. OK GNU C++14 TESTS 60 31 0
93302813 Rock2000 B Sept. 20, 2020, 5:22 a.m. OK GNU C++14 TESTS 60 31 0
93301195 parth8302 B Sept. 20, 2020, 4:53 a.m. OK GNU C++14 TESTS 60 31 0
93300426 madhav.agrawal B Sept. 20, 2020, 4:38 a.m. OK GNU C++14 TESTS 60 31 0
93300384 anonymous.hack.4261 B Sept. 20, 2020, 4:37 a.m. OK GNU C++14 TESTS 60 31 0
93299806 laxmansharma14999 B Sept. 20, 2020, 4:25 a.m. OK GNU C++14 TESTS 60 31 0
93305104 Player0109 B Sept. 20, 2020, 5:57 a.m. OK GNU C++14 TESTS 60 31 0
93305069 anshuman10398 B Sept. 20, 2020, 5:57 a.m. OK GNU C++14 TESTS 60 31 0
93304311 utsav_shah B Sept. 20, 2020, 5:45 a.m. OK GNU C++14 TESTS 60 31 0
93304235 hp_stormbreaker21 B Sept. 20, 2020, 5:44 a.m. OK GNU C++14 TESTS 60 31 0
93304557 nk007 B Sept. 20, 2020, 5:50 a.m. OK GNU C++17 TESTS 60 31 0
93304979 krrishh683 B Sept. 20, 2020, 5:55 a.m. OK GNU C++17 TESTS 60 31 0
93304961 aagam_jain B Sept. 20, 2020, 5:55 a.m. OK GNU C++17 TESTS 60 31 0
93304912 mfg1 B Sept. 20, 2020, 5:54 a.m. OK GNU C++17 TESTS 60 31 0
93304737 Ahmed_Allawati B Sept. 20, 2020, 5:52 a.m. OK GNU C++17 TESTS 60 31 0
93304107 vdy B Sept. 20, 2020, 5:43 a.m. OK GNU C++17 TESTS 60 31 0
93304091 karngyan B Sept. 20, 2020, 5:42 a.m. OK GNU C++17 TESTS 60 31 0
93303647 IbraheemJanajreh B Sept. 20, 2020, 5:36 a.m. OK GNU C++17 TESTS 60 31 0
93303589 verybadatit B Sept. 20, 2020, 5:35 a.m. OK GNU C++17 TESTS 60 31 0
93303422 ankurkayal B Sept. 20, 2020, 5:32 a.m. OK GNU C++17 TESTS 60 31 0
93300627 smigwump B Sept. 20, 2020, 4:42 a.m. OK GNU C++17 (64) TESTS 60 31 0
93296447 IQ2 B Sept. 20, 2020, 3:14 a.m. OK GNU C++17 (64) TESTS 60 31 0
93296345 Theofratus B Sept. 20, 2020, 3:12 a.m. OK GNU C++17 (64) TESTS 60 31 0
93296307 Anachor B Sept. 20, 2020, 3:11 a.m. OK GNU C++17 (64) TESTS 60 31 0
93296049 6520 B Sept. 20, 2020, 3:04 a.m. OK GNU C++17 (64) TESTS 60 31 0
93295734 AlexPanda B Sept. 20, 2020, 2:55 a.m. OK GNU C++17 (64) TESTS 60 31 0
93301192 kevinyang B Sept. 20, 2020, 4:53 a.m. OK GNU C++17 (64) TESTS 60 31 0
93301698 jaga__daku B Sept. 20, 2020, 5:02 a.m. OK GNU C++17 (64) TESTS 60 31 0
93303438 agarwal.kunal2305 B Sept. 20, 2020, 5:32 a.m. OK GNU C++17 (64) TESTS 60 31 0
93303442 _sad_ B Sept. 20, 2020, 5:32 a.m. OK GNU C++17 (64) TESTS 60 31 0
93291637 2fid B Sept. 20, 2020, 12:47 a.m. OK Go TESTS 60 77 102400
93284405 clyring B Sept. 19, 2020, 8:42 p.m. OK Haskell TESTS 60 31 102400
93287989 _prophet B Sept. 19, 2020, 10:07 p.m. OK Java 11 TESTS 60 187 0
93277631 srjvastri8 B Sept. 19, 2020, 7:03 p.m. OK Java 11 TESTS 60 187 0
93301065 tusharrr B Sept. 20, 2020, 4:50 a.m. OK Java 11 TESTS 60 202 0
93304508 anshum_it_is B Sept. 20, 2020, 5:49 a.m. OK Java 11 TESTS 60 202 0
93287072 AnanthDhruva B Sept. 19, 2020, 9:43 p.m. OK Java 11 TESTS 60 202 0
93272874 nadaabdo588 B Sept. 19, 2020, 6:29 p.m. OK Java 11 TESTS 60 202 0
93277730 Kimo_Fathy B Sept. 19, 2020, 7:04 p.m. OK Java 11 TESTS 60 218 0
93302695 nisarg_01 B Sept. 20, 2020, 5:20 a.m. OK Java 11 TESTS 60 233 0
93289551 Mhmmd.itani B Sept. 19, 2020, 11:07 p.m. OK Java 11 TESTS 60 233 0
93288272 AnuragPatra B Sept. 19, 2020, 10:17 p.m. OK Java 11 TESTS 60 233 0
93296304 Pranay2516 B Sept. 20, 2020, 3:11 a.m. OK Java 8 TESTS 60 109 0
93279644 nandit B Sept. 19, 2020, 7:25 p.m. OK Java 8 TESTS 60 109 0
93267267 TheSawan B Sept. 19, 2020, 4:32 p.m. OK Java 8 TESTS 60 124 0
93302392 ashraybharambe B Sept. 20, 2020, 5:14 a.m. OK Java 8 TESTS 60 124 0
93299975 MubtasimShahriar B Sept. 20, 2020, 4:28 a.m. OK Java 8 TESTS 60 124 0
93282068 kadintang1 B Sept. 19, 2020, 7:59 p.m. OK Java 8 TESTS 60 124 0
93273023 nietzschewalrus779 B Sept. 19, 2020, 6:29 p.m. OK Java 8 TESTS 60 124 0
93272651 rational_fool B Sept. 19, 2020, 6:28 p.m. OK Java 8 TESTS 60 124 0
93284421 R3KT B Sept. 19, 2020, 8:42 p.m. OK Java 8 TESTS 60 140 0
93293357 prasoon006 B Sept. 20, 2020, 1:49 a.m. OK Java 8 TESTS 60 140 0
93299539 Spheniscine B Sept. 20, 2020, 4:19 a.m. OK Kotlin TESTS 60 124 0
93298447 Spheniscine B Sept. 20, 2020, 3:58 a.m. OK Kotlin TESTS 60 124 0
93268031 0xf0d0 B Sept. 19, 2020, 4:33 p.m. OK Kotlin TESTS 60 124 0
93279630 Higins33 B Sept. 19, 2020, 7:25 p.m. OK Mono C# TESTS 60 62 0
93278132 hhsaffar B Sept. 19, 2020, 7:08 p.m. OK Mono C# TESTS 60 62 409600
93282376 Awa149 B Sept. 19, 2020, 8:04 p.m. OK MS C++ 2017 TESTS 60 31 0
93293293 Educated_GUCCI B Sept. 20, 2020, 1:47 a.m. OK MS C++ 2017 TESTS 60 31 0
93294833 shebao B Sept. 20, 2020, 2:32 a.m. OK MS C++ 2017 TESTS 60 31 0
93265239 dixmw34 B Sept. 19, 2020, 4:28 p.m. OK MS C++ 2017 TESTS 60 46 0
93284606 chaudhary_19 B Sept. 19, 2020, 8:47 p.m. OK PyPy 2 TESTS 60 155 2764800
93272526 vaibhavsarda B Sept. 19, 2020, 6:27 p.m. OK PyPy 3 TESTS 60 156 2048000
93268597 shameles B Sept. 19, 2020, 4:34 p.m. OK PyPy 3 TESTS 60 171 2150400
93298433 tusshar B Sept. 20, 2020, 3:58 a.m. OK PyPy 3 TESTS 60 171 2867200
93274918 abeast_1651 B Sept. 19, 2020, 6:40 p.m. OK PyPy 3 TESTS 60 171 3481600
93277217 Nifer B Sept. 19, 2020, 6:59 p.m. OK PyPy 3 TESTS 60 186 3481600
93291536 HokageItachi B Sept. 20, 2020, 12:41 a.m. OK PyPy 3 TESTS 60 202 67993600
93277768 jxzhang B Sept. 19, 2020, 7:04 p.m. OK PyPy 3 TESTS 60 217 4096000
93264873 Pradyuman_verma B Sept. 19, 2020, 4:27 p.m. OK PyPy 3 TESTS 60 218 3072000
93289397 rmhasan B Sept. 19, 2020, 11:01 p.m. OK PyPy 3 TESTS 60 218 3379200
93277930 polarstern B Sept. 19, 2020, 7:06 p.m. OK PyPy 3 TESTS 60 218 3379200
93290012 Darooha B Sept. 19, 2020, 11:31 p.m. OK Python 2 TESTS 60 171 102400
93303748 siddharthpogul1999 B Sept. 20, 2020, 5:37 a.m. OK Python 2 TESTS 60 186 102400
93289984 FahimSifnatul B Sept. 19, 2020, 11:30 p.m. OK Python 3 TESTS 60 109 512000
93301537 ksk_17 B Sept. 20, 2020, 4:59 a.m. OK Python 3 TESTS 60 124 0
93300448 DebRC B Sept. 20, 2020, 4:38 a.m. OK Python 3 TESTS 60 124 0
93287844 deadguy B Sept. 19, 2020, 10:03 p.m. OK Python 3 TESTS 60 124 0
93284614 rr.justpractice B Sept. 19, 2020, 8:47 p.m. OK Python 3 TESTS 60 124 0
93276831 swagsy2000 B Sept. 19, 2020, 6:55 p.m. OK Python 3 TESTS 60 124 0
93289929 black_trees B Sept. 19, 2020, 11:26 p.m. OK Python 3 TESTS 60 124 307200
93289889 eugalt B Sept. 19, 2020, 11:25 p.m. OK Python 3 TESTS 60 124 307200
93285332 Lithosphere B Sept. 19, 2020, 9:04 p.m. OK Python 3 TESTS 60 124 307200
93266418 cschill B Sept. 19, 2020, 4:30 p.m. OK Python 3 TESTS 60 124 307200
93281016 Yujin B Sept. 19, 2020, 7:43 p.m. OK Ruby TESTS 60 530 1024000

remove filters

Back to search problems