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
( 19133 ) A Deranged Deletions PROGRAMMING constructive algorithms sortings

Call an array (b) of length (m) a derangement if the following property holds: Let (c) be an array of length (m) such that (c_i = b_i) over all (1 \leq i \leq m). Sort (c) in non-decreasing order. If (b_i\neq c_i) over all (1\leq i \leq m), then (b) is a derangement . For example, If (b = 4,8,3,1), then (c = 1, 3, 4, 8) after getting sorted. Since (b_i \neq c_i) in all positions, (b) is a derangement . If (b = 3,2,1), then (c = 1, 2, 3) after getting sorted. Since (b_2 = c_2), (b) is not a derangement . You are given an array (a) of length (n). In one operation, you can delete an element from (a). The order of the remaining elements is preserved after each deletion. Output whether it is possible to perform some (possibly none) operations such that the remaining elements form a derangement . If it is possible, output any possible remaining array. The remaining array must be non-empty. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 100)). The description of the test cases follows. The first line of each test case contains an integer (n) ((1 \leq n \leq 100)) — the length of array (a). The second line of each test case contains (n) integers (a_1, a_2, \ldots, a_n) ((1 \leq a_i \leq n)) — denoting the array (a). For each test case, on a new line, if it is possible to perform operations such that the remaining array is a derangement , output YES . Otherwise, output NO . You can output in any case (upper or lower). For example, the strings "yEs" , "yes" , "Yes" , and "YES" will be recognized as positive responses. If your response was positive, output two more lines in the following format: The first line should contain an integer (k) ((1 \leq k \leq n)), the number of elements that remain in the array. The second line should contain (d_1, d_2 \ldots, d_k), the elem

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
327854725 _Rahim_17 A July 7, 2025, 1:56 a.m. OK C# 10 TESTS 4 93 1228800
327871533 spartza A July 7, 2025, 5:15 a.m. OK C++17 (GCC 7-32) TESTS 4 30 102400
327876669 alokkumar25062005 A July 7, 2025, 5:58 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327875943 sujalmeshram A July 7, 2025, 5:50 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327859117 Phantom_7 A July 7, 2025, 2:58 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327858390 mogulus_tt A July 7, 2025, 2:49 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327854875 Tarun_gautam A July 7, 2025, 1:59 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327851950 nikki_p05 A July 7, 2025, 12:59 a.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327840873 Ayush0130 A July 6, 2025, 8:38 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327838268 Link6384 A July 6, 2025, 8:02 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327834404 Divy_8745 A July 6, 2025, 7:19 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0
327857555 Etherift A July 7, 2025, 2:38 a.m. OK C++20 (GCC 13-64) TESTS 4 30 0
327831466 Lonelyper A July 6, 2025, 6:54 p.m. OK C++20 (GCC 13-64) TESTS 4 30 0
327842048 3rian A July 6, 2025, 8:57 p.m. OK C++20 (GCC 13-64) TESTS 4 30 102400
327862803 HrsilmalanI A July 7, 2025, 3:44 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
327857741 muerruxing A July 7, 2025, 2:40 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
327855960 XiaoXiiiiiiiiiiiiii A July 7, 2025, 2:16 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
327850703 zkxttk A July 7, 2025, 12:33 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0
327845937 Omar_Farhan A July 6, 2025, 10:18 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
327839594 Pramag_IIITD A July 6, 2025, 8:20 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
327832647 KG31 A July 6, 2025, 7:04 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0
327863483 yoCandy A July 7, 2025, 3:51 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
327859260 N0.ONE A July 7, 2025, 3 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
327837809 winbywiner A July 6, 2025, 7:56 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
327832782 umang_agg_11 A July 6, 2025, 7:05 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 0
327833157 ankitkhatua A July 6, 2025, 7:08 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 102400
327819464 ankur_ankur A July 6, 2025, 5:13 p.m. OK C++23 (GCC 14-64, msys2) TESTS 4 30 102400
327866438 AaryanModi780 A July 7, 2025, 4:30 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 31 0
327866200 adityagarg006 A July 7, 2025, 4:25 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 31 0
327865977 Worstcoder20 A July 7, 2025, 4:23 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 31 0
327861918 Ak_m7uslim A July 7, 2025, 3:33 a.m. OK C++23 (GCC 14-64, msys2) TESTS 4 31 0
327839410 MNMOutis A July 6, 2025, 8:17 p.m. OK GNU C11 TESTS 4 124 0
327876998 yashjaiswal2509 A July 7, 2025, 6:01 a.m. OK Java 21 TESTS 4 233 204800
327833154 tirean A July 6, 2025, 7:08 p.m. OK Java 21 TESTS 4 233 1126400
327836717 anand_mishra_ A July 6, 2025, 7:43 p.m. OK Java 21 TESTS 4 234 102400
327839296 Shubham0_5 A July 6, 2025, 8:15 p.m. OK Java 21 TESTS 4 234 1024000
327868358 goalboy A July 7, 2025, 4:55 a.m. OK Java 21 TESTS 4 249 1126400
327864666 tekka_ity A July 7, 2025, 4:05 a.m. OK Java 21 TESTS 4 249 1228800
327858529 Horridbeast A July 7, 2025, 2:51 a.m. OK Java 21 TESTS 4 264 409600
327858322 iamboojux A July 7, 2025, 2:48 a.m. OK Java 21 TESTS 4 264 1638400
327812723 jeetgoyal80 A July 6, 2025, 4:50 p.m. OK Java 21 TESTS 4 265 0
327860866 ayush9441 A July 7, 2025, 3:20 a.m. OK Java 21 TESTS 4 265 512000
327838811 satyams_9001 A July 6, 2025, 8:09 p.m. OK Java 8 TESTS 4 124 6656000
327809163 Destroyer0069 A July 6, 2025, 4:39 p.m. OK Java 8 TESTS 4 140 0
327842375 Shafat04 A July 6, 2025, 9:04 p.m. OK Java 8 TESTS 4 155 0
327859912 NikhilKushwah A July 7, 2025, 3:08 a.m. OK Java 8 TESTS 4 156 0
327876314 singha0391 A July 7, 2025, 5:54 a.m. OK Java 8 TESTS 4 202 0
327810331 AnatolyS A July 6, 2025, 4:42 p.m. OK Kotlin 1.9 TESTS 4 234 1945600
327814351 rohitnadakarni A July 6, 2025, 4:55 p.m. OK PyPy 3 TESTS 4 124 2662400
327812092 gigadev99 A July 6, 2025, 4:48 p.m. OK PyPy 3-64 TESTS 4 62 1638400
327864316 samchen123 A July 7, 2025, 4:01 a.m. OK PyPy 3-64 TESTS 4 77 1433600
327867820 Satyam_Singh019 A July 7, 2025, 4:48 a.m. OK PyPy 3-64 TESTS 4 77 1638400
327865681 9thJune2006 A July 7, 2025, 4:18 a.m. OK PyPy 3-64 TESTS 4 77 1638400
327856729 anuj_m A July 7, 2025, 2:27 a.m. OK PyPy 3-64 TESTS 4 77 1638400
327850342 jeroenodb A July 7, 2025, 12:26 a.m. OK PyPy 3-64 TESTS 4 77 1638400
327844318 PeCoP A July 6, 2025, 9:42 p.m. OK PyPy 3-64 TESTS 4 77 1638400
327843764 Nipun_Kapoor A July 6, 2025, 9:31 p.m. OK PyPy 3-64 TESTS 4 77 1638400
327831779 AAE A July 6, 2025, 6:58 p.m. OK PyPy 3-64 TESTS 4 77 1638400
327838138 yiren429 A July 6, 2025, 8 p.m. OK PyPy 3-64 TESTS 4 77 1740800
327837401 eugalt A July 6, 2025, 7:51 p.m. OK Python 3 TESTS 4 61 204800
327836793 mr_fkey A July 6, 2025, 7:44 p.m. OK Python 3 TESTS 4 61 204800
327812199 codeforyash A July 6, 2025, 4:48 p.m. OK Python 3 TESTS 4 61 204800
327816248 dev-Koushal A July 6, 2025, 5:02 p.m. OK Python 3 TESTS 4 61 307200
327818962 khushvantchahar A July 6, 2025, 5:12 p.m. OK Python 3 TESTS 4 62 0
327853651 Cipher_In_ A July 7, 2025, 1:36 a.m. OK Python 3 TESTS 4 62 204800
327845268 zoro.luffy A July 6, 2025, 10:02 p.m. OK Python 3 TESTS 4 62 204800
327838496 divy27 A July 6, 2025, 8:04 p.m. OK Python 3 TESTS 4 62 204800
327834012 eugalt A July 6, 2025, 7:16 p.m. OK Python 3 TESTS 4 62 204800
327832666 amod_24 A July 6, 2025, 7:04 p.m. OK Python 3 TESTS 4 62 204800
327852924 0x81 A July 7, 2025, 1:21 a.m. OK Rust 2021 TESTS 4 46 0
327840389 JKS_007 A July 6, 2025, 8:31 p.m. OK Rust 2021 TESTS 4 61 0

remove filters

Back to search problems