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
( 11909 ) D Creating a Schedule PROGRAMMING constructive algorithms data structures greedy sortings

A new semester is about to begin, and it is necessary to create a schedule for the first day. There are a total of (n) groups and (m) classrooms in the faculty. It is also known that each group has exactly (6) classes on the first day, and the (k)-th class of each group takes place at the same time. Each class must be held in a classroom, and at the same time, there cannot be classes for more than one group in the same classroom. Each classroom has its own index (at least three digits), and all digits of this index, except for the last two, indicate the floor on which the classroom is located. For example, classroom (479) is located on the (4)-th floor, while classroom (31415) is on the (314)-th floor. Between floors, one can move by stairs; for any floor (x > 1), one can either go down to floor (x - 1) or go up to floor (x + 1); from the first floor, one can only go up to the second; from the floor (10^7) (which is the last one), it is possible to go only to the floor (9999999). The faculty's dean's office has decided to create the schedule in such a way that students move as much as possible between floors, meaning that the total number of movements between floors across all groups should be maximized . When the students move from one floor to another floor, they take the shortest path. For example, if there are (n = 2) groups and (m = 4) classrooms (479, 290, 478, 293), the schedule can be arranged as follows: In such a schedule, the groups will move between the (2)nd and (4)th floors each time, resulting in a total of (20) movements between floors. Help the dean's office create any suitable schedule! 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. The first line of each test case contains two integers (n) and (m) ($$$1 \le n \le

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
322925869 bubbarob19 D June 5, 2025, 3:04 a.m. OK C++17 (GCC 7-32) TESTS 14 140 0
322789354 prabalpratik D June 4, 2025, 1:51 a.m. OK C++17 (GCC 7-32) TESTS 14 140 0
322786144 Rachit_19 D June 4, 2025, 12:21 a.m. OK C++17 (GCC 7-32) TESTS 14 140 0
322941424 krishna7777 D June 5, 2025, 6:02 a.m. OK C++17 (GCC 7-32) TESTS 14 140 102400
322871572 xiaowang524 D June 4, 2025, 2:14 p.m. OK C++17 (GCC 7-32) TESTS 14 140 409600
322794275 AA-2007 D June 4, 2025, 3:21 a.m. OK C++17 (GCC 7-32) TESTS 14 140 3993600
322890832 SenoWaheed D June 4, 2025, 4:55 p.m. OK C++17 (GCC 7-32) TESTS 14 155 0
322880293 Ram_2809 D June 4, 2025, 3:24 p.m. OK C++17 (GCC 7-32) TESTS 14 155 0
322862850 Din_ED D June 4, 2025, 1:09 p.m. OK C++17 (GCC 7-32) TESTS 14 155 0
322833410 knlydv D June 4, 2025, 9:30 a.m. OK C++17 (GCC 7-32) TESTS 14 155 0
322867640 coderseaorcus D June 4, 2025, 1:45 p.m. OK C++20 (GCC 13-64) TESTS 14 108 0
322851474 liuxurui D June 4, 2025, 11:45 a.m. OK C++20 (GCC 13-64) TESTS 14 108 0
322798985 WjhisTyAhzh D June 4, 2025, 4:32 a.m. OK C++20 (GCC 13-64) TESTS 14 108 0
322796433 lignht D June 4, 2025, 3:55 a.m. OK C++20 (GCC 13-64) TESTS 14 108 0
322913482 Uznik_Postmoderna D June 4, 2025, 9:26 p.m. OK C++20 (GCC 13-64) TESTS 14 108 102400
322898940 KitijaK D June 4, 2025, 6:06 p.m. OK C++20 (GCC 13-64) TESTS 14 108 102400
322880690 sridhanush1208 D June 4, 2025, 3:27 p.m. OK C++20 (GCC 13-64) TESTS 14 108 102400
322880635 SURU_SRI_MUKHESH D June 4, 2025, 3:27 p.m. OK C++20 (GCC 13-64) TESTS 14 108 102400
322836096 rhineofts D June 4, 2025, 9:49 a.m. OK C++20 (GCC 13-64) TESTS 14 108 102400
322791673 jai_hanumant D June 4, 2025, 2:37 a.m. OK C++20 (GCC 13-64) TESTS 14 108 102400
322831969 3203248681 D June 4, 2025, 9:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 93 102400
322798301 arafat03 D June 4, 2025, 4:22 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 0
322795792 MatinalCosmos D June 4, 2025, 3:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 0
322921104 CrimsonViper_07 D June 5, 2025, 1:26 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 102400
322857537 rkbhati0105 D June 4, 2025, 12:29 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 102400
322853799 Fahmid_rng D June 4, 2025, 12:02 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 102400
322802089 TWlLlGHT D June 4, 2025, 5:09 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 102400
322795041 link1k D June 4, 2025, 3:33 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 102400
322790449 Amane D June 4, 2025, 2:15 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 102400
322893632 naitikpatel325 D June 4, 2025, 5:19 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 108 819200
322924744 nahida520 D June 5, 2025, 2:47 a.m. OK GNU C11 TESTS 14 749 512000
322857449 yashjaiswal2509 D June 4, 2025, 12:28 p.m. OK Java 21 TESTS 14 374 18124800
322787919 man-ray D June 4, 2025, 1:15 a.m. OK Java 21 TESTS 14 390 1228800
322898284 bhanageviraj D June 4, 2025, 6 p.m. OK Java 21 TESTS 14 436 7782400
322797336 keshav_.agg D June 4, 2025, 4:07 a.m. OK Java 21 TESTS 14 453 4300800
322833577 SohamJoshi25 D June 4, 2025, 9:31 a.m. OK Java 21 TESTS 14 468 1126400
322852461 GoodBoy20 D June 4, 2025, 11:52 a.m. OK Java 21 TESTS 14 468 1228800
322854793 jindal2004keshav D June 4, 2025, 12:08 p.m. OK Java 21 TESTS 14 468 26828800
322795933 __Aviral__ D June 4, 2025, 3:47 a.m. OK Java 21 TESTS 14 515 1536000
322872521 69stranger69 D June 4, 2025, 2:22 p.m. OK Java 21 TESTS 14 530 2150400
322855631 parmarvaishnavi021 D June 4, 2025, 12:15 p.m. OK Java 21 TESTS 14 546 18227200
322922165 NischayCodes D June 5, 2025, 1:53 a.m. OK Java 8 TESTS 14 342 44748800
322846500 Manoj_mk D June 4, 2025, 11:08 a.m. OK Java 8 TESTS 14 390 9113600
322887819 Akshatgupta069_069 D June 4, 2025, 4:28 p.m. OK Java 8 TESTS 14 874 4915200
322939112 Manoj_mk D June 5, 2025, 5:41 a.m. OK Java 8 TESTS 14 1436 0
322935327 Manoj_mk D June 5, 2025, 5:03 a.m. OK Java 8 TESTS 14 1436 12800000
322846676 Manoj_mk D June 4, 2025, 11:09 a.m. OK Java 8 TESTS 14 1499 12800000
322836543 late_night_order D June 4, 2025, 9:52 a.m. OK Java 8 TESTS 14 1609 15462400
322836378 late_night_order D June 4, 2025, 9:51 a.m. OK Java 8 TESTS 14 1702 15360000
322845749 Manoj_mk D June 4, 2025, 11:02 a.m. OK Java 8 TESTS 14 2468 43520000
322925472 cai_lian_2023 D June 5, 2025, 2:59 a.m. OK Java 8 TESTS 14 2499 102400
322840032 Tgupta D June 4, 2025, 10:18 a.m. OK PyPy 3 TESTS 14 905 19456000
322849315 sc2uderia D June 4, 2025, 11:28 a.m. OK PyPy 3 TESTS 14 1155 11980800
322859462 OpKos D June 4, 2025, 12:43 p.m. OK PyPy 3-64 TESTS 14 202 27955200
322799962 gardengnome D June 4, 2025, 4:44 a.m. OK PyPy 3-64 TESTS 14 202 28876800
322816981 minuki646 D June 4, 2025, 7:37 a.m. OK PyPy 3-64 TESTS 14 233 14233600
322894998 Anirban2046 D June 4, 2025, 5:31 p.m. OK PyPy 3-64 TESTS 14 233 14540800
322782427 anejmeldeen D June 3, 2025, 10:10 p.m. OK PyPy 3-64 TESTS 14 234 19148800
322787144 hundunlilun1 D June 4, 2025, 12:54 a.m. OK PyPy 3-64 TESTS 14 249 13312000
322840273 maharaja D June 4, 2025, 10:20 a.m. OK PyPy 3-64 TESTS 14 249 13824000
322881072 magnetCodes D June 4, 2025, 3:30 p.m. OK PyPy 3-64 TESTS 14 249 14131200
322920270 galois777 D June 5, 2025, 1:02 a.m. OK PyPy 3-64 TESTS 14 249 22630400
322856446 akkisinghvi28 D June 4, 2025, 12:20 p.m. OK PyPy 3-64 TESTS 14 264 14028800
322841710 svrmalaviya D June 4, 2025, 10:31 a.m. OK Python 3 TESTS 14 312 13209600
322793123 eMD0gG D June 4, 2025, 3:02 a.m. OK Python 3 TESTS 14 312 13516800
322777204 ChatIsThisReal D June 3, 2025, 8:46 p.m. OK Python 3 TESTS 14 390 9420800
322776896 ChatIsThisReal D June 3, 2025, 8:40 p.m. OK Python 3 TESTS 14 405 9625600
322837839 utch1 D June 4, 2025, 10:01 a.m. OK Python 3 TESTS 14 406 13414400
322857353 Jiraiya6741 D June 4, 2025, 12:27 p.m. OK Python 3 TESTS 14 655 14336000
322838714 ___a_s_1_2___ D June 4, 2025, 10:07 a.m. OK Python 3 TESTS 14 733 13107200
322835032 denisvlasov D June 4, 2025, 9:41 a.m. OK Python 3 TESTS 14 733 20275200
322858579 ashvathhb D June 4, 2025, 12:37 p.m. OK Python 3 TESTS 14 734 13312000
322840415 saiss D June 4, 2025, 10:21 a.m. OK Python 3 TESTS 14 952 12902400
322802965 0x81 D June 4, 2025, 5:18 a.m. OK Rust 2021 TESTS 14 249 307200
322903092 DanielAnker D June 4, 2025, 6:46 p.m. OK Rust 2021 TESTS 14 265 409600
322819580 Playnext D June 4, 2025, 7:56 a.m. OK Rust 2021 TESTS 14 281 0

remove filters

Back to search problems