Educational Codeforces Round 179 (Rated for 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
2111 Educational Codeforces Round 179 (Rated for Div. 2) FINISHED False 7200 27444323 June 3, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 17794 ) B Fibonacci Cubes PROGRAMMING brute force dp implementation math

There are (n) Fibonacci cubes, where the side of the (i)-th cube is equal to (f_{i}), where (f_{i}) is the (i)-th Fibonacci number. In this problem, the Fibonacci numbers are defined as follows: (f_{1} = 1) (f_{2} = 2) (f_{i} = f_{i - 1} + f_{i - 2}) for (i > 2) There are also (m) empty boxes, where the (i)-th box has a width of (w_{i}), a length of (l_{i}), and a height of (h_{i}). For each of the (m) boxes, you need to determine whether all the cubes can fit inside that box. The cubes must be placed in the box following these rules: The cubes can only be stacked in the box such that the sides of the cubes are parallel to the sides of the box; Every cube must be placed either on the bottom of the box or on top of other cubes in such a way that all space below the cube is occupied; A larger cube cannot be placed on top of a smaller cube. Each test consists of several test cases. The first line contains a single integer (t) ((1 \le t \le 10^{3})) — the number of test cases. The description of the test cases follows. In the first line of each test case, there are two integers (n) and (m) ((2 \le n \le 10, 1 \le m \le 2 \cdot 10^{5})) — the number of cubes and the number of empty boxes. The next (m) lines of each test case contain (3) integers (w_{i}), (l_{i}), and (h_{i}) ((1 \le w_{i}, l_{i}, h_{i} \le 150)) — the dimensions of the (i)-th box. Additional constraints on the input: The sum of (m) across all test cases does not exceed (2 \cdot 10^{5}). For each test case, output a string of length (m), where the (i)-th character is equal to " 1 " if all (n) cubes can fit into the (i)-th box; otherwise, the (i)-th character is equal to " 0 ". In the first test case, only one box is suitable. The cubes can be placed in it as follows:

Tutorials

Educational Codeforces Round 179 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
322879173 Saran416 B June 4, 2025, 3:14 p.m. OK C++17 (GCC 7-32) TESTS 12 125 0
322885497 Anninda B June 4, 2025, 4:08 p.m. OK C++17 (GCC 7-32) TESTS 12 139 0
322913105 Maher00110 B June 4, 2025, 9:18 p.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322905886 LucasCGar B June 4, 2025, 7:21 p.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322895983 dp29032006 B June 4, 2025, 5:40 p.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322895821 Subbu1809 B June 4, 2025, 5:39 p.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322893948 SAB_2408 B June 4, 2025, 5:22 p.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322890421 lockenkey B June 4, 2025, 4:51 p.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322889318 vayunjain.221ec164 B June 4, 2025, 4:41 p.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322940861 satyam.gupta45 B June 5, 2025, 5:57 a.m. OK C++17 (GCC 7-32) TESTS 12 140 0
322788536 aeh6141 B June 4, 2025, 1:30 a.m. OK C++20 (GCC 13-64) TESTS 12 109 0
322878104 _shin B June 4, 2025, 3:06 p.m. OK C++20 (GCC 13-64) TESTS 12 109 102400
322929374 unknownn_04 B June 5, 2025, 3:51 a.m. OK C++20 (GCC 13-64) TESTS 12 109 2867200
322923123 HuiLuo B June 5, 2025, 2:14 a.m. OK C++20 (GCC 13-64) TESTS 12 124 0
322932112 Pulkitpkpk B June 5, 2025, 4:27 a.m. OK C++20 (GCC 13-64) TESTS 12 124 0
322915969 adham_saeed B June 4, 2025, 10:28 p.m. OK C++20 (GCC 13-64) TESTS 12 124 0
322902074 atickisrak B June 4, 2025, 6:35 p.m. OK C++20 (GCC 13-64) TESTS 12 124 0
322866864 thescammer04 B June 4, 2025, 1:39 p.m. OK C++20 (GCC 13-64) TESTS 12 124 0
322856973 KailnX B June 4, 2025, 12:24 p.m. OK C++20 (GCC 13-64) TESTS 12 124 0
322856605 Pinaka B June 4, 2025, 12:21 p.m. OK C++20 (GCC 13-64) TESTS 12 124 0
322892373 Dev_Vaghani B June 4, 2025, 5:08 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 109 0
322910719 mednour844 B June 4, 2025, 8:29 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322901089 DBP_Heaven B June 4, 2025, 6:25 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322894354 submissionsjp B June 4, 2025, 5:26 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322868270 kamyak B June 4, 2025, 1:49 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322866470 SodaBubble B June 4, 2025, 1:37 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322862565 HackerGupta069 B June 4, 2025, 1:07 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322854296 Rohan_Padhy B June 4, 2025, 12:06 p.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322838649 SL0NYARA B June 4, 2025, 10:07 a.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322836087 srivastavaprakhar7727 B June 4, 2025, 9:49 a.m. OK C++23 (GCC 14-64, msys2) TESTS 12 124 0
322827748 gurjot008 B June 4, 2025, 8:54 a.m. OK GNU C11 TESTS 12 842 921600
322833191 Shafiq.9996 B June 4, 2025, 9:28 a.m. OK GNU C11 TESTS 12 843 102400
322820385 nahida520 B June 4, 2025, 8:02 a.m. OK GNU C11 TESTS 12 874 102400
322820699 gurjot008 B June 4, 2025, 8:04 a.m. OK GNU C11 TESTS 12 906 819200
322937949 VaishCodes B June 5, 2025, 5:29 a.m. OK GNU C11 TESTS 12 1014 921600
322803366 tekka_ity B June 4, 2025, 5:22 a.m. OK Java 21 TESTS 12 249 1331200
322921216 HarhsSoni B June 5, 2025, 1:28 a.m. OK Java 21 TESTS 12 281 6656000
322824920 Ronit0211 B June 4, 2025, 8:34 a.m. OK Java 21 TESTS 12 359 819200
322794931 keshav_.agg B June 4, 2025, 3:31 a.m. OK Java 21 TESTS 12 359 1228800
322831579 priyaroy3370 B June 4, 2025, 9:17 a.m. OK Java 21 TESTS 12 374 8089600
322825109 ajaykm000563 B June 4, 2025, 8:35 a.m. OK Java 21 TESTS 12 390 614400
322795812 yashjaiswal2509 B June 4, 2025, 3:45 a.m. OK Java 21 TESTS 12 390 1024000
322845597 GoodBoy20 B June 4, 2025, 11:01 a.m. OK Java 21 TESTS 12 390 1126400
322833206 marcoJunior B June 4, 2025, 9:28 a.m. OK Java 21 TESTS 12 390 1331200
322827805 vineetiwari B June 4, 2025, 8:54 a.m. OK Java 21 TESTS 12 390 1638400
322787976 arpande97 B June 4, 2025, 1:16 a.m. OK Java 8 TESTS 12 171 0
322842595 Pranav_45 B June 4, 2025, 10:37 a.m. OK Java 8 TESTS 12 218 0
322889674 Akshatgupta069_069 B June 4, 2025, 4:44 p.m. OK Java 8 TESTS 12 218 0
322789516 one_minus_one B June 4, 2025, 1:55 a.m. OK Java 8 TESTS 12 234 0
322916464 Potato_Pc B June 4, 2025, 10:42 p.m. OK Java 8 TESTS 12 390 0
322802573 sadgirpooja20 B June 4, 2025, 5:14 a.m. OK Java 8 TESTS 12 780 0
322882084 Ishaan__23 B June 4, 2025, 3:38 p.m. OK Java 8 TESTS 12 780 4198400
322802150 saxenaanandita76 B June 4, 2025, 5:09 a.m. OK Java 8 TESTS 12 812 0
322802389 arnabpachal2004 B June 4, 2025, 5:12 a.m. OK Java 8 TESTS 12 827 0
322874787 wawa333666 B June 4, 2025, 2:39 p.m. OK Java 8 TESTS 12 905 0
322892737 abhu.krish59 B June 4, 2025, 5:11 p.m. OK PyPy 3 TESTS 12 1093 26112000
322941670 DSKroc B June 5, 2025, 6:04 a.m. OK PyPy 3 TESTS 12 1718 12595200
322862713 sambodhi7 B June 4, 2025, 1:08 p.m. OK PyPy 3 TESTS 12 1734 12595200
322790354 hxu10 B June 4, 2025, 2:13 a.m. OK PyPy 3-64 TESTS 12 186 12492800
322798095 gardengnome B June 4, 2025, 4:19 a.m. OK PyPy 3-64 TESTS 12 202 7884800
322786677 hundunlilun1 B June 4, 2025, 12:41 a.m. OK PyPy 3-64 TESTS 12 202 11161600
322841985 akioweh B June 4, 2025, 10:33 a.m. OK PyPy 3-64 TESTS 12 202 13516800
322798033 gardengnome B June 4, 2025, 4:18 a.m. OK PyPy 3-64 TESTS 12 218 9318400
322905444 rameshiitd B June 4, 2025, 7:15 p.m. OK PyPy 3-64 TESTS 12 218 11776000
322858520 Sunny_5491 B June 4, 2025, 12:36 p.m. OK PyPy 3-64 TESTS 12 233 10752000
322835421 JUNLINE B June 4, 2025, 9:44 a.m. OK PyPy 3-64 TESTS 12 234 11571200
322886889 shash4321 B June 4, 2025, 4:20 p.m. OK PyPy 3-64 TESTS 12 249 16384000
322853703 Kabish07 B June 4, 2025, 12:01 p.m. OK PyPy 3-64 TESTS 12 264 35430400
322849754 Jiraiya6741 B June 4, 2025, 11:31 a.m. OK Python 3 TESTS 12 296 1536000
322817743 shanks_jr10 B June 4, 2025, 7:42 a.m. OK Python 3 TESTS 12 311 5324800
322788381 cmath11 B June 4, 2025, 1:26 a.m. OK Python 3 TESTS 12 328 921600
322862255 acye B June 4, 2025, 1:05 p.m. OK Python 3 TESTS 12 593 24064000
322835826 eugalt B June 4, 2025, 9:47 a.m. OK Python 3 TESTS 12 609 5836800
322895753 eugalt B June 4, 2025, 5:38 p.m. OK Python 3 TESTS 12 609 5939200
322788395 cmath11 B June 4, 2025, 1:27 a.m. OK Python 3 TESTS 12 686 1126400
322833664 eugalt B June 4, 2025, 9:32 a.m. OK Python 3 TESTS 12 687 7475200
322803388 BooMeR1OP B June 4, 2025, 5:22 a.m. OK Python 3 TESTS 12 780 57856000
322803723 BooMeR1OP B June 4, 2025, 5:26 a.m. OK Python 3 TESTS 12 936 57958400
322901755 DanielAnker B June 4, 2025, 6:31 p.m. OK Rust 2021 TESTS 12 93 0
322833075 ton B June 4, 2025, 9:27 a.m. OK Rust 2021 TESTS 12 93 0
322817549 Playnext B June 4, 2025, 7:41 a.m. OK Rust 2021 TESTS 12 108 0
322819392 Playnext B June 4, 2025, 7:55 a.m. OK Rust 2021 TESTS 12 109 102400
322882506 battlmonstr B June 4, 2025, 3:42 p.m. OK Rust 2021 TESTS 12 124 102400
322795993 0x81 B June 4, 2025, 3:48 a.m. OK Rust 2021 TESTS 12 124 102400
322840711 silicalet B June 4, 2025, 10:23 a.m. OK Rust 2021 TESTS 12 156 47923200

remove filters

Back to search problems