EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + 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
2124 EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) FINISHED False 10800 24593123 July 6, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 14478 ) C Subset Multiplication PROGRAMMING number theory

Alice has an array (a), consisting of (n) positive integers. The array satisfies the beautiful property that (a_i) divides (a_{i+1}) for each (1 \leq i \leq n - 1). Bob sees Alice's beautiful array and is jealous. To sabotage her, Bob first creates an array (b) of size (n) such that (b_i=a_i) for each (1 \leq i \leq n). Then, he chooses a positive integer (x) and multiplies some (possibly none, possibly all) elements in (b) by (x). Formally, he chooses a (possibly-empty) subset (S\subseteq\{1,2,\ldots,n\}), and for each (i\in S), he sets (b_i:=b_i\cdot x). You are given an array (b), but you don't know array (a) and the chosen number (x). Please output any integer (x) that Bob could choose, so that multiplying some subset of elements of the correct array (a) by (x) would result in array (b). It is guaranteed that the answer exists. If there are multiple possible integers, you can output any of them. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 2\cdot10^5)). The description of the test cases follows. The first line of each test case contains an integer (n) ((2 \leq n \leq 6\cdot10^5)) — the length of the array (b). The second line of each test case contains (n) integers (b_1,b_2,\ldots,b_n) ((1 \leq b_i \leq 10^9)) — denoting the array (b). It is guaranteed the array (b) can be obtained from some beautiful array (a) and some positive integer (x) as described in the statements. It is guaranteed that the sum of (n) over all test cases does not exceed (6\cdot 10^5). For each test case, output any possible value of (x) ((1 \leq x \leq 10^9)) on a new line. It is guaranteed at least one value of (x) exists. In the first test case, it is possible Bob selected (x=343) and (S=\{\}) (meaning he did not change the array (a) at all). In the t

Tutorials

EPIC Institute of Technology Round Summer 2025 (Codeforces Round 1036, Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
327854903 you-jin-plus C July 7, 2025, 1:59 a.m. OK C++17 (GCC 7-32) TESTS 19 218 102400
327811716 erbium84 C July 6, 2025, 4:47 p.m. OK C++17 (GCC 7-32) TESTS 19 218 102400
327867664 iamuncanny C July 7, 2025, 4:46 a.m. OK C++17 (GCC 7-32) TESTS 19 218 2457600
327853911 XG0000 C July 7, 2025, 1:41 a.m. OK C++17 (GCC 7-32) TESTS 19 218 2457600
327838915 gabriel88766 C July 6, 2025, 8:10 p.m. OK C++17 (GCC 7-32) TESTS 19 233 102400
327832729 ARISE C July 6, 2025, 7:05 p.m. OK C++17 (GCC 7-32) TESTS 19 233 1126400
327840931 limabeans C July 6, 2025, 8:39 p.m. OK C++17 (GCC 7-32) TESTS 19 234 0
327835489 duelist_1883 C July 6, 2025, 7:30 p.m. OK C++17 (GCC 7-32) TESTS 19 234 0
327865866 b_i_b C July 7, 2025, 4:21 a.m. OK C++17 (GCC 7-32) TESTS 19 234 102400
327854720 you-jin-plus C July 7, 2025, 1:56 a.m. OK C++17 (GCC 7-32) TESTS 19 234 102400
327857785 datpros1tg C July 7, 2025, 2:40 a.m. OK C++20 (GCC 13-64) TESTS 19 171 2457600
327855910 lostinimagination C July 7, 2025, 2:15 a.m. OK C++20 (GCC 13-64) TESTS 19 171 8089600
327855634 lxz20071231 C July 7, 2025, 2:12 a.m. OK C++20 (GCC 13-64) TESTS 19 186 102400
327842932 Omar_Hani C July 6, 2025, 9:14 p.m. OK C++20 (GCC 13-64) TESTS 19 186 1126400
327839449 SuuvannAroraa C July 6, 2025, 8:18 p.m. OK C++20 (GCC 13-64) TESTS 19 186 1126400
327813985 Kurai09 C July 6, 2025, 4:54 p.m. OK C++20 (GCC 13-64) TESTS 19 186 1126400
327816392 _ALSHR3 C July 6, 2025, 5:02 p.m. OK C++20 (GCC 13-64) TESTS 19 186 5939200
327870042 shrapnelzz C July 7, 2025, 5:06 a.m. OK C++20 (GCC 13-64) TESTS 19 187 102400
327869582 caprogers190 C July 7, 2025, 5:03 a.m. OK C++20 (GCC 13-64) TESTS 19 187 102400
327867851 jubair7 C July 7, 2025, 4:49 a.m. OK C++20 (GCC 13-64) TESTS 19 187 102400
327874460 maspy C July 7, 2025, 5:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 19 109 1433600
327873694 gsh C July 7, 2025, 5:26 a.m. OK C++23 (GCC 14-64, msys2) TESTS 19 171 102400
327871015 Touya C July 7, 2025, 5:12 a.m. OK C++23 (GCC 14-64, msys2) TESTS 19 171 102400
327837069 DarkSoul_1414 C July 6, 2025, 7:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 171 102400
327856647 Elysia_019 C July 7, 2025, 2:26 a.m. OK C++23 (GCC 14-64, msys2) TESTS 19 171 4812800
327836543 zzt_puddle C July 6, 2025, 7:41 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 171 4915200
327874475 suvam01 C July 7, 2025, 5:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 19 186 102400
327858186 jackylova_fan_fan_fan C July 7, 2025, 2:46 a.m. OK C++23 (GCC 14-64, msys2) TESTS 19 186 102400
327840577 blankKyo C July 6, 2025, 8:34 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 186 102400
327837378 fahimx51 C July 6, 2025, 7:51 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 186 102400
327823392 monish1406 C July 6, 2025, 5:28 p.m. OK GNU C11 TESTS 19 1062 4915200
327810716 This_Is_Amazing C July 6, 2025, 4:44 p.m. OK Java 21 TESTS 19 359 14540800
327813999 yash_hh2310 C July 6, 2025, 4:54 p.m. OK Java 21 TESTS 19 483 14848000
327838727 feonex C July 6, 2025, 8:08 p.m. OK Java 21 TESTS 19 484 36044800
327846406 bomakhamchha C July 6, 2025, 10:29 p.m. OK Java 21 TESTS 19 500 20275200
327809384 marcoJunior C July 6, 2025, 4:40 p.m. OK Java 21 TESTS 19 515 20070400
327871778 fatal-98 C July 7, 2025, 5:16 a.m. OK Java 21 TESTS 19 546 17817600
327818718 Only_Sanity C July 6, 2025, 5:11 p.m. OK Java 21 TESTS 19 561 20684800
327811313 Legend... C July 6, 2025, 4:45 p.m. OK Java 21 TESTS 19 562 19660800
327824636 Saucyy C July 6, 2025, 5:32 p.m. OK Java 21 TESTS 19 765 17920000
327875769 SaiTejaSensei C July 7, 2025, 5:48 a.m. OK Java 21 TESTS 19 780 20377600
327817304 .diplo__mat C July 6, 2025, 5:06 p.m. OK Java 8 TESTS 19 359 35635200
327820472 1998tarun C July 6, 2025, 5:17 p.m. OK Java 8 TESTS 19 374 39628800
327811449 tirthgohil1410 C July 6, 2025, 4:46 p.m. OK Java 8 TESTS 19 390 39833600
327840550 satyams_9001 C July 6, 2025, 8:33 p.m. OK Java 8 TESTS 19 890 142950400
327820312 2025_warrior C July 6, 2025, 5:17 p.m. OK Java 8 TESTS 19 1124 4096000
327809378 aysuh-tibrewal C July 6, 2025, 4:40 p.m. OK Java 8 TESTS 19 1890 0
327837839 Shubhu_513 C July 6, 2025, 7:56 p.m. OK Java 8 TESTS 19 2093 0
327821341 ckuhn222 C July 6, 2025, 5:20 p.m. OK Kotlin 1.9 TESTS 19 1796 6656000
327821742 AnatolyS C July 6, 2025, 5:22 p.m. OK Kotlin 1.9 TESTS 19 1858 0
327858478 Dias1177 C July 7, 2025, 2:50 a.m. OK PyPy 3 TESTS 19 2562 47411200
327862094 kong_mda C July 7, 2025, 3:35 a.m. OK PyPy 3 TESTS 19 2562 47616000
327848534 naman.iitd28 C July 6, 2025, 11:31 p.m. OK PyPy 3 TESTS 19 2609 50585600
327867499 _kingpin_ C July 7, 2025, 4:44 a.m. OK PyPy 3 TESTS 19 2639 47820800
327822065 rrr213 C July 6, 2025, 5:23 p.m. OK PyPy 3 TESTS 19 2671 47411200
327866529 maharaja C July 7, 2025, 4:31 a.m. OK PyPy 3-64 TESTS 19 218 67481600
327864367 samchen123 C July 7, 2025, 4:02 a.m. OK PyPy 3-64 TESTS 19 265 69427200
327839062 blue_clay C July 6, 2025, 8:12 p.m. OK PyPy 3-64 TESTS 19 296 80998400
327876919 shreyas2837 C July 7, 2025, 6 a.m. OK PyPy 3-64 TESTS 19 311 69632000
327875226 Kristiana C July 7, 2025, 5:42 a.m. OK PyPy 3-64 TESTS 19 312 69632000
327862295 thecodingraceteam C July 7, 2025, 3:37 a.m. OK PyPy 3-64 TESTS 19 312 69632000
327833889 bishoprunner C July 6, 2025, 7:15 p.m. OK PyPy 3-64 TESTS 19 312 69734400
327819326 nemesis-lance C July 6, 2025, 5:13 p.m. OK PyPy 3-64 TESTS 19 312 71168000
327877013 shreyas2837 C July 7, 2025, 6:01 a.m. OK PyPy 3-64 TESTS 19 327 69734400
327813722 porcelli C July 6, 2025, 4:53 p.m. OK PyPy 3-64 TESTS 19 328 80179200
327832932 cioppy C July 6, 2025, 7:07 p.m. OK Python 3 TESTS 19 421 74956800
327876750 siumkhn C July 7, 2025, 5:58 a.m. OK Python 3 TESTS 19 452 75366400
327824764 renatojrvcp C July 6, 2025, 5:32 p.m. OK Python 3 TESTS 19 593 74444800
327812457 Mohan_.12 C July 6, 2025, 4:49 p.m. OK Python 3 TESTS 19 624 74854400
327836287 MadhavPeddi C July 6, 2025, 7:39 p.m. OK Python 3 TESTS 19 781 75776000
327812302 redsurgence C July 6, 2025, 4:49 p.m. OK Python 3 TESTS 19 811 74752000
327867528 Anuj123321 C July 7, 2025, 4:45 a.m. OK Python 3 TESTS 19 874 74137600
327859679 harishkeerthimaans C July 7, 2025, 3:05 a.m. OK Python 3 TESTS 19 874 74137600
327854588 lucifer__09 C July 7, 2025, 1:54 a.m. OK Python 3 TESTS 19 874 74137600
327825455 code_with_ME43 C July 6, 2025, 5:34 p.m. OK Python 3 TESTS 19 952 74649600
327855986 0x81 C July 7, 2025, 2:16 a.m. OK Rust 2021 TESTS 19 202 14950400

remove filters

Back to search problems