ICM Technex 2018 and Codeforces Round 463 (Div. 1 + Div. 2, combined)

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
932 ICM Technex 2018 and Codeforces Round 463 (Div. 1 + Div. 2, combined) FINISHED False 7200 218474663 Feb. 15, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4060 ) C Permutation Cycle PROGRAMMING brute force constructive algorithms 1600

B'For a permutation P[1... N] of integers from 1 to N, function f is defined as follows: Let g(i) be the minimum positive integer j such that f(i, xe2 x80 x89j) xe2 x80 x89= xe2 x80 x89i. We can show such j always exists. For given N, xe2 x80 x89A, xe2 x80 x89B, find a permutation P of integers from 1 to N such that for 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N, g(i) equals either A or B. The only line contains three integers N, xe2 x80 x89A, xe2 x80 x89B (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89A, xe2 x80 x89B xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N). If no such permutation exists, output -1. Otherwise, output a permutation of integers from 1 to N. In the first example, g(1) xe2 x80 x89= xe2 x80 x89g(6) xe2 x80 x89= xe2 x80 x89g(7) xe2 x80 x89= xe2 x80 x89g(9) xe2 x80 x89= xe2 x80 x892 and g(2) xe2 x80 x89= xe2 x80 x89g(3) xe2 x80 x89= xe2 x80 x89g(4) xe2 x80 x89= xe2 x80 x89g(5) xe2 x80 x89= xe2 x80 x89g(8) xe2 x80 x89= xe2 x80 x895 In the second example, g(1) xe2 x80 x89= xe2 x80 x89g(2) xe2 x80 x89= xe2 x80 x89g(3) xe2 x80 x89= xe2 x80 x891 '...

Tutorials

57796

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
35301003 Gassa C Feb. 15, 2018, 2:53 p.m. OK D TESTS 69 218 14540800 1600
69903315 hos.lyric C Jan. 31, 2020, 1:33 p.m. OK D TESTS 69 451 4198400 1600
35303853 ruban C Feb. 15, 2018, 3:06 p.m. OK Delphi TESTS 69 218 2560000 1600
35308263 1353055672 C Feb. 15, 2018, 3:35 p.m. OK FPC TESTS 69 1559 1638400 1600
35317836 bsgnl952 C Feb. 15, 2018, 6:53 p.m. OK FPC TESTS 69 1637 1638400 1600
35304994 zhrrrr C Feb. 15, 2018, 3:12 p.m. OK FPC TESTS 69 1653 5632000 1600
39291235 BILLZHOU C June 16, 2018, 3:49 p.m. OK FPC TESTS 69 1747 0 1600
35317024 slavik228 C Feb. 15, 2018, 6:38 p.m. OK FPC TESTS 69 1762 5632000 1600
35303969 bsgnl952 C Feb. 15, 2018, 3:07 p.m. OK FPC TESTS 69 1809 1638400 1600
35334914 pk1210 C Feb. 16, 2018, 11:17 a.m. OK GNU C TESTS 69 217 5836800 1600
35339959 b00merang C Feb. 16, 2018, 2:12 p.m. OK GNU C TESTS 69 218 1843200 1600
35311627 aniket.shrimal C Feb. 15, 2018, 4:02 p.m. OK GNU C TESTS 69 218 5836800 1600
35306027 psb0623 C Feb. 15, 2018, 3:20 p.m. OK GNU C TESTS 69 218 5836800 1600
35309034 coderbd C Feb. 15, 2018, 3:41 p.m. OK GNU C TESTS 69 233 1843200 1600
35327256 anirudhbansal C Feb. 16, 2018, 5:26 a.m. OK GNU C TESTS 69 233 5836800 1600
35301737 sgtlaugh C Feb. 15, 2018, 2:56 p.m. OK GNU C TESTS 69 233 39833600 1600
36398789 4230 C March 18, 2018, 8:33 p.m. OK GNU C TESTS 69 234 3276800 1600
35305539 physics0523 C Feb. 15, 2018, 3:15 p.m. OK GNU C TESTS 69 265 1843200 1600
35312158 juruorg C Feb. 15, 2018, 4:07 p.m. OK GNU C++ TESTS 69 62 2048000 1600
35310914 caeious C Feb. 15, 2018, 3:56 p.m. OK GNU C++ TESTS 69 62 2048000 1600
35305368 lqz C Feb. 15, 2018, 3:15 p.m. OK GNU C++ TESTS 69 62 2048000 1600
35757217 Scut82 C Feb. 27, 2018, 9:41 a.m. OK GNU C++ TESTS 69 62 2150400 1600
35757940 Scut82 C Feb. 27, 2018, 10:15 a.m. OK GNU C++ TESTS 69 62 6041600 1600
35757726 Scut82 C Feb. 27, 2018, 10:05 a.m. OK GNU C++ TESTS 69 62 11059200 1600
35300318 zx2003 C Feb. 15, 2018, 2:50 p.m. OK GNU C++ TESTS 69 62 47718400 1600
35309330 xryjr233 C Feb. 15, 2018, 3:43 p.m. OK GNU C++ TESTS 69 77 2048000 1600
35309729 AutumnKite C Feb. 15, 2018, 3:46 p.m. OK GNU C++ TESTS 69 109 1843200 1600
35302114 _SHENZHEBEI_ C Feb. 15, 2018, 2:58 p.m. OK GNU C++ TESTS 69 124 2048000 1600
35299497 yasugongshang C Feb. 15, 2018, 2:47 p.m. OK GNU C++11 TESTS 69 62 6041600 1600
40978188 ReaLNero1 C July 30, 2018, 4:31 p.m. OK GNU C++11 TESTS 69 78 3993600 1600
35300743 cogito_233 C Feb. 15, 2018, 2:52 p.m. OK GNU C++11 TESTS 69 93 2048000 1600
53098649 rainboy C April 21, 2019, 3:02 p.m. OK GNU C++11 TESTS 69 156 9830400 1600
44758731 luogu_bot3 C Oct. 24, 2018, 5:29 a.m. OK GNU C++11 TESTS 69 187 3993600 1600
69823144 luogu_bot5 C Jan. 30, 2020, 8:29 a.m. OK GNU C++11 TESTS 69 202 0 1600
69054835 luogu_bot1 C Jan. 18, 2020, 2:04 p.m. OK GNU C++11 TESTS 69 202 0 1600
69053105 luogu_bot4 C Jan. 18, 2020, 1:26 p.m. OK GNU C++11 TESTS 69 202 0 1600
59949577 Ufowoqqqo C Sept. 3, 2019, 2:04 p.m. OK GNU C++11 TESTS 69 202 0 1600
58105386 realSpongeBob C Aug. 1, 2019, 3:53 a.m. OK GNU C++11 TESTS 69 202 0 1600
35306689 Hoi_koro C Feb. 15, 2018, 3:24 p.m. OK GNU C++14 TESTS 69 139 18534400 1600
35310102 kisa_is_bdsm C Feb. 15, 2018, 3:49 p.m. OK GNU C++14 TESTS 69 140 1945600 1600
35307005 1e-15 C Feb. 15, 2018, 3:26 p.m. OK GNU C++14 TESTS 69 140 1945600 1600
35304573 sarkar C Feb. 15, 2018, 3:10 p.m. OK GNU C++14 TESTS 69 140 5939200 1600
35304095 Ernestico C Feb. 15, 2018, 3:08 p.m. OK GNU C++14 TESTS 69 140 5939200 1600
36250974 WhaleVomit C March 13, 2018, 1:46 p.m. OK GNU C++14 TESTS 69 155 1945600 1600
35765813 .tx C Feb. 27, 2018, 2:37 p.m. OK GNU C++14 TESTS 69 155 1945600 1600
35454438 HiamKing C Feb. 18, 2018, 6:39 p.m. OK GNU C++14 TESTS 69 155 1945600 1600
35441061 AMnu C Feb. 18, 2018, 9:04 a.m. OK GNU C++14 TESTS 69 155 1945600 1600
35339969 Cengiz C Feb. 16, 2018, 2:13 p.m. OK GNU C++14 TESTS 69 155 1945600 1600
69903962 snuke C Jan. 31, 2020, 1:41 p.m. OK GNU C++17 TESTS 69 124 31027200 1600
61892628 astoria C Oct. 5, 2019, 6:17 a.m. OK GNU C++17 TESTS 69 155 0 1600
35456864 DSRub C Feb. 18, 2018, 8:43 p.m. OK GNU C++17 TESTS 69 155 1945600 1600
35327857 nikolayterek C Feb. 16, 2018, 5:56 a.m. OK GNU C++17 TESTS 69 155 1945600 1600
35318999 Avny C Feb. 15, 2018, 7:31 p.m. OK GNU C++17 TESTS 69 155 1945600 1600
35310598 khachdallak C Feb. 15, 2018, 3:53 p.m. OK GNU C++17 TESTS 69 155 1945600 1600
35299725 komendart C Feb. 15, 2018, 2:48 p.m. OK GNU C++17 TESTS 69 155 1945600 1600
35301964 yassin_ C Feb. 15, 2018, 2:57 p.m. OK GNU C++17 TESTS 69 155 5836800 1600
35531145 justinz2018 C Feb. 20, 2018, 6:58 p.m. OK GNU C++17 TESTS 69 155 5939200 1600
35317954 Hossam C Feb. 15, 2018, 6:56 p.m. OK GNU C++17 TESTS 69 155 5939200 1600
35304544 faiface C Feb. 15, 2018, 3:10 p.m. OK Go TESTS 69 327 62873600 1600
35303345 cojna C Feb. 15, 2018, 3:04 p.m. OK Haskell TESTS 69 312 84889600 1600
35314568 Abdullah_Abu_Alrish C Feb. 15, 2018, 4:28 p.m. OK Java 8 TESTS 69 187 66150400 1600
35303480 fnch C Feb. 15, 2018, 3:04 p.m. OK Java 8 TESTS 69 217 66252800 1600
35309184 parth_15 C Feb. 15, 2018, 3:42 p.m. OK Java 8 TESTS 69 218 60518400 1600
35312094 cmplx-xyttmt C Feb. 15, 2018, 4:07 p.m. OK Java 8 TESTS 69 218 60518400 1600
35470986 martin3 C Feb. 19, 2018, 1 p.m. OK Java 8 TESTS 69 218 70041600 1600
35310607 wizardleen C Feb. 15, 2018, 3:53 p.m. OK Java 8 TESTS 69 233 66560000 1600
53098380 Dukkha C April 21, 2019, 2:53 p.m. OK Java 8 TESTS 69 234 37683200 1600
35301864 SaveVMK C Feb. 15, 2018, 2:57 p.m. OK Java 8 TESTS 69 248 66560000 1600
46826886 kusomushi C Dec. 9, 2018, 7:04 p.m. OK Java 8 TESTS 69 249 0 1600
35338217 apurvaj C Feb. 16, 2018, 1:16 p.m. OK Java 8 TESTS 69 249 20787200 1600
38070736 og.kostya C May 9, 2018, 12:19 p.m. OK Mono C# TESTS 69 186 11161600 1600
35305750 kuuso C Feb. 15, 2018, 3:20 p.m. OK Mono C# TESTS 69 249 61952000 1600
47708108 markotee C Dec. 29, 2018, 10:46 p.m. OK Mono C# TESTS 69 265 3072000 1600
56243951 toysheeyeyraku C June 28, 2019, 7:51 p.m. OK Mono C# TESTS 69 280 53452800 1600
35327251 Zvigintsev C Feb. 16, 2018, 5:26 a.m. OK MS C# TESTS 69 233 56524800 1600
35328084 Zvigintsev C Feb. 16, 2018, 6:08 a.m. OK MS C# TESTS 69 234 41881600 1600
35328208 Zvigintsev C Feb. 16, 2018, 6:15 a.m. OK MS C# TESTS 69 234 41881600 1600
35327274 Zvigintsev C Feb. 16, 2018, 5:27 a.m. OK MS C# TESTS 69 234 56524800 1600
35327530 Zvigintsev C Feb. 16, 2018, 5:40 a.m. OK MS C# TESTS 69 234 56729600 1600
35327525 Zvigintsev C Feb. 16, 2018, 5:39 a.m. OK MS C# TESTS 69 234 56729600 1600
35328229 Zvigintsev C Feb. 16, 2018, 6:16 a.m. OK MS C# TESTS 69 249 41881600 1600
35328134 Zvigintsev C Feb. 16, 2018, 6:11 a.m. OK MS C# TESTS 69 249 41881600 1600
35317961 Zvigintsev C Feb. 15, 2018, 6:56 p.m. OK MS C# TESTS 69 249 48537600 1600
35327192 Zvigintsev C Feb. 16, 2018, 5:24 a.m. OK MS C# TESTS 69 249 57446400 1600
35330635 lxn C Feb. 16, 2018, 8:23 a.m. OK MS C++ TESTS 69 62 23244800 1600
50154215 vjudge5 C Feb. 19, 2019, 9:06 a.m. OK MS C++ TESTS 69 217 0 1600
57181885 vjudge4 C July 17, 2019, 7:31 a.m. OK MS C++ TESTS 69 218 0 1600
65661933 vjudge3 C Nov. 24, 2019, 12:44 p.m. OK MS C++ TESTS 69 218 0 1600
57219375 vjudge2 C July 17, 2019, 3:19 p.m. OK MS C++ TESTS 69 218 0 1600
44758657 EM-LGH C Oct. 24, 2018, 5:25 a.m. OK MS C++ TESTS 69 218 4300800 1600
57186279 vjudge3 C July 17, 2019, 8:48 a.m. OK MS C++ TESTS 69 218 7987200 1600
57179980 vjudge2 C July 17, 2019, 6:54 a.m. OK MS C++ TESTS 69 233 0 1600
35299380 RAVEman C Feb. 15, 2018, 2:47 p.m. OK MS C++ TESTS 69 233 2048000 1600
35314487 yp0416160202 C Feb. 15, 2018, 4:27 p.m. OK MS C++ TESTS 69 233 2048000 1600
66592587 felix412441 C Dec. 10, 2019, 1:29 p.m. OK MS C++ 2017 TESTS 69 561 8089600 1600
35317757 jahas C Feb. 15, 2018, 6:52 p.m. OK PyPy 2 TESTS 69 202 77004800 1600
35542570 tushutripathi C Feb. 21, 2018, 9:13 a.m. OK PyPy 2 TESTS 69 218 79155200 1600
49849103 kipply C Feb. 13, 2019, 1:40 a.m. OK PyPy 2 TESTS 69 233 47206400 1600
66023718 vjudge4 C Nov. 30, 2019, 8:06 a.m. OK PyPy 2 TESTS 69 233 51916800 1600
35309807 exoji2e C Feb. 15, 2018, 3:47 p.m. OK PyPy 2 TESTS 69 233 83148800 1600
36863897 frmsaul C April 1, 2018, 9:03 p.m. OK PyPy 2 TESTS 69 249 70041600 1600
35907430 Savit_Gupta C March 4, 2018, 5:28 a.m. OK PyPy 2 TESTS 69 295 70144000 1600
35341130 tushutripathi C Feb. 16, 2018, 2:46 p.m. OK PyPy 2 TESTS 69 311 77619200 1600
35340891 tushutripathi C Feb. 16, 2018, 2:40 p.m. OK PyPy 2 TESTS 69 327 77619200 1600
35308606 algmyr C Feb. 15, 2018, 3:37 p.m. OK PyPy 2 TESTS 69 342 99635200 1600
54807824 Evil__Coder C May 29, 2019, 3:08 p.m. OK PyPy 3 TESTS 69 763 48435200 1600
35307480 CrazyMerlyn C Feb. 15, 2018, 3:29 p.m. OK PyPy 3 TESTS 69 857 114380800 1600
35312761 Polyte_Walrus C Feb. 15, 2018, 4:12 p.m. OK PyPy 3 TESTS 69 920 100556800 1600
35337331 Yee_172 C Feb. 16, 2018, 12:47 p.m. OK PyPy 3 TESTS 69 951 65536000 1600
35301427 sonya123 C Feb. 15, 2018, 2:55 p.m. OK PyPy 3 TESTS 69 966 73216000 1600
52641754 hrustim25 C April 12, 2019, 12:46 p.m. OK PyPy 3 TESTS 69 1091 10035200 1600
35552553 pr3pony C Feb. 21, 2018, 3:38 p.m. OK PyPy 3 TESTS 69 1559 30105600 1600
35307811 M.Sharifi C Feb. 15, 2018, 3:32 p.m. OK Python 2 TESTS 69 764 20992000 1600
52508338 kipply C April 8, 2019, 8:12 p.m. OK Python 2 TESTS 69 1060 61849600 1600
52508372 kipply C April 8, 2019, 8:13 p.m. OK Python 2 TESTS 69 1075 61849600 1600
36174977 nealzane C March 10, 2018, 5:34 p.m. OK Python 2 TESTS 69 1153 24985600 1600
35300942 nwi C Feb. 15, 2018, 2:53 p.m. OK Python 2 TESTS 69 1169 65331200 1600
35307957 pavankatta C Feb. 15, 2018, 3:33 p.m. OK Python 2 TESTS 69 1170 37683200 1600
66190231 vjudge5 C Dec. 2, 2019, 4:07 p.m. OK Python 2 TESTS 69 1559 42188800 1600
35304050 ItsLastDay C Feb. 15, 2018, 3:07 p.m. OK Python 3 TESTS 69 1044 70758400 1600
35317191 a_d_i C Feb. 15, 2018, 6:41 p.m. OK Python 3 TESTS 69 1138 74854400 1600
35447022 jiangshibiao C Feb. 18, 2018, 1:30 p.m. OK Python 3 TESTS 69 1138 78643200 1600
42142386 Mk_Python_v1 C Aug. 27, 2018, 6:29 a.m. OK Python 3 TESTS 69 1154 64819200 1600
35376644 pyrus C Feb. 16, 2018, 8:56 p.m. OK Python 3 TESTS 69 1200 77414400 1600
62836165 IngaleAnkur10 C Oct. 17, 2019, 10:40 p.m. OK Python 3 TESTS 69 1965 33996800 1600
35310086 mdrm C Feb. 15, 2018, 3:49 p.m. OK Python 3 TESTS 69 1996 120115200 1600
35309155 limed C Feb. 15, 2018, 3:42 p.m. OK Scala TESTS 69 655 93286400 1600

remove filters

Back to search problems