ICM Technex 2017 and Codeforces Round 400 (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
776 ICM Technex 2017 and Codeforces Round 400 (Div. 1 + Div. 2, combined) FINISHED False 7800 249664524 Feb. 23, 2017, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21619 ) B Sherlock and his girlfriend PROGRAMMING constructive algorithms number theory 1200

B"Sherlock has a new girlfriend (so unlike him!). Valentine's day is coming and he wants to gift her some jewelry. He bought n pieces of jewelry. The i-th piece has price equal to i xe2 x80 x89+ xe2 x80 x891, that is, the prices of the jewelry are 2, xe2 x80 x893, xe2 x80 x894, xe2 x80 x89... n xe2 x80 x89+ xe2 x80 x891. Watson gave Sherlock a challenge to color these jewelry pieces such that two pieces don't have the same color if the price of one piece is a prime divisor of the price of the other piece. Also, Watson asked him to minimize the number of different colors used. Help Sherlock complete this trivial task. The only line contains single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100000) -- the number of jewelry pieces. The first line of output should contain a single integer k, the minimum number of colors that can be used to color the pieces of jewelry with the given constraints. The next line should consist of n space-separated integers (between 1 and k) that specify the color of each piece in the order of increasing price. If there are multiple ways to color the pieces using k colors, you can output any of them. In the first input, the colors for first, second and third pieces of jewelry having respective prices 2, 3 and 4 are 1, 1 and 2 respectively. In this case, as 2 is a prime divisor of 4, colors of jewelry having prices 2 and 4 must be distinct. "...

Tutorials

ICM Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51578102 try_007 B March 20, 2019, 1:36 p.m. OK Clang++17 Diagnostics TESTS 53 311 102400 1200
31840760 rabbitcxk B Oct. 28, 2017, 2:20 p.m. OK FPC TESTS 53 155 0 1200
41889548 luogu_bot5 B Aug. 20, 2018, 6:22 a.m. OK FPC TESTS 53 155 409600 1200
24957389 dailong B Feb. 24, 2017, 7:24 a.m. OK FPC TESTS 53 155 1740800 1200
24942972 astral17 B Feb. 23, 2017, 5:49 p.m. OK FPC TESTS 53 155 1740800 1200
34816460 TShT B Feb. 1, 2018, 6:44 p.m. OK FPC TESTS 53 156 5632000 1200
27683833 ShavelV B June 9, 2017, 6:55 a.m. OK FPC TESTS 53 171 102400 1200
27683757 ShavelV B June 9, 2017, 6:50 a.m. OK FPC TESTS 53 171 102400 1200
27438964 Dzls.NGBA_Hoch B May 30, 2017, 3:11 a.m. OK FPC TESTS 53 171 102400 1200
39051050 DPO_WS B June 8, 2018, 4:40 p.m. OK FPC TESTS 53 171 409600 1200
40494254 luogu_bot1 B July 18, 2018, 12:55 a.m. OK FPC TESTS 53 171 1638400 1200
27463121 Rizro B May 31, 2017, 9:27 a.m. OK GNU C TESTS 53 15 0 1200
29729257 mustafiz_saadi_23 B Aug. 24, 2017, 11:04 a.m. OK GNU C TESTS 53 15 102400 1200
27824295 NoSoul B June 16, 2017, 12:01 p.m. OK GNU C TESTS 53 15 102400 1200
27100144 vjudge1 B May 14, 2017, 3:52 a.m. OK GNU C TESTS 53 15 102400 1200
31772435 gaurav172 B Oct. 26, 2017, 8:33 p.m. OK GNU C TESTS 53 15 409600 1200
26091008 XcytE B April 3, 2017, 5:17 a.m. OK GNU C TESTS 53 15 1945600 1200
25455942 ghoshsai5000 B March 13, 2017, 2:23 p.m. OK GNU C TESTS 53 15 2150400 1200
25455318 ghoshsai5000 B March 13, 2017, 1:54 p.m. OK GNU C TESTS 53 15 2150400 1200
25650961 subham301477845 B March 19, 2017, 4:40 p.m. OK GNU C TESTS 53 15 2252800 1200
25484688 wallwpcab B March 14, 2017, 7:21 p.m. OK GNU C TESTS 53 15 2252800 1200
27002174 vjudge5 B May 10, 2017, 7:21 p.m. OK GNU C++ TESTS 53 15 0 1200
27625001 JeffreyLC B June 7, 2017, 4:27 a.m. OK GNU C++ TESTS 53 15 0 1200
27301423 vjudge1 B May 23, 2017, 12:44 p.m. OK GNU C++ TESTS 53 15 0 1200
32090655 resendiz B Nov. 6, 2017, 9:40 a.m. OK GNU C++ TESTS 53 15 102400 1200
30804702 Deerly LEOXRY your_name_ B Sept. 28, 2017, 12:41 p.m. OK GNU C++ TESTS 53 15 204800 1200
27291451 vjudge4 B May 22, 2017, 10:25 p.m. OK GNU C++ TESTS 53 15 204800 1200
27291450 vjudge4 B May 22, 2017, 10:25 p.m. OK GNU C++ TESTS 53 15 204800 1200
29552809 vjudge5 B Aug. 18, 2017, 11:58 a.m. OK GNU C++ TESTS 53 15 409600 1200
27774649 maratonando2 B June 14, 2017, 1:22 p.m. OK GNU C++ TESTS 53 15 409600 1200
27335552 nsu15310920225 B May 25, 2017, 11:53 a.m. OK GNU C++ TESTS 53 15 409600 1200
61111236 DevJewel B Sept. 23, 2019, 11:20 a.m. OK GNU C11 TESTS 53 296 409600 1200
46053966 vjudge4 B Nov. 22, 2018, 9:44 a.m. OK GNU C11 TESTS 53 296 409600 1200
52415047 jalalium B April 6, 2019, 2:59 p.m. OK GNU C11 TESTS 53 296 409600 1200
50693142 Justaskeleton B March 2, 2019, 4:38 p.m. OK GNU C11 TESTS 53 311 409600 1200
60341958 setulovelegend B Sept. 10, 2019, 11:13 a.m. OK GNU C11 TESTS 53 312 0 1200
57151734 kaiboy B July 16, 2019, 3:04 p.m. OK GNU C11 TESTS 53 312 0 1200
47878898 Code0 B Jan. 3, 2019, 5:07 p.m. OK GNU C11 TESTS 53 312 409600 1200
48965458 Dynamic. B Jan. 26, 2019, 7:15 a.m. OK GNU C11 TESTS 53 312 409600 1200
57167988 kaiboy B July 17, 2019, 1:04 a.m. OK GNU C11 TESTS 53 312 409600 1200
63746168 ratul_supertramp B Oct. 29, 2019, 6:33 p.m. OK GNU C11 TESTS 53 312 819200 1200
29714047 vjudge4 B Aug. 23, 2017, 5:41 p.m. OK GNU C++11 TESTS 53 15 102400 1200
27101328 ravi_singh123 B May 14, 2017, 5:55 a.m. OK GNU C++11 TESTS 53 15 409600 1200
30307580 Roundgod B Sept. 13, 2017, 1:03 p.m. OK GNU C++11 TESTS 53 15 921600 1200
24960889 seanhung21 B Feb. 24, 2017, 10:03 a.m. OK GNU C++11 TESTS 53 15 1945600 1200
25421243 ayane B March 12, 2017, 12:31 a.m. OK GNU C++11 TESTS 53 15 1945600 1200
24995295 smaralda B Feb. 24, 2017, 8:27 p.m. OK GNU C++11 TESTS 53 15 1945600 1200
25354457 Light_Kiss B March 9, 2017, 6:49 a.m. OK GNU C++11 TESTS 53 15 2048000 1200
28814609 nyan101 B July 24, 2017, 5:09 a.m. OK GNU C++11 TESTS 53 15 2048000 1200
25684430 y_shindoh B March 21, 2017, 9:09 a.m. OK GNU C++11 TESTS 53 15 2048000 1200
24999405 xjhz B Feb. 25, 2017, 2:08 a.m. OK GNU C++11 TESTS 53 15 2048000 1200
26955723 ZiyaZa suspicio Renyxa B May 8, 2017, 11:50 a.m. OK GNU C++14 TESTS 53 15 0 1200
31729197 _Sakib_ B Oct. 26, 2017, 5:36 a.m. OK GNU C++14 TESTS 53 15 0 1200
31226994 predelnik B Oct. 11, 2017, 8:06 p.m. OK GNU C++14 TESTS 53 15 0 1200
31141021 nshul parimatrix B Oct. 8, 2017, 10:43 a.m. OK GNU C++14 TESTS 53 15 0 1200
29849072 muht B Aug. 28, 2017, 3:35 p.m. OK GNU C++14 TESTS 53 15 0 1200
29711869 hpotter97762 B Aug. 23, 2017, 3:48 p.m. OK GNU C++14 TESTS 53 15 0 1200
27576408 sam96 B June 5, 2017, 5:52 a.m. OK GNU C++14 TESTS 53 15 0 1200
26955747 ZiyaZa suspicio Renyxa B May 8, 2017, 11:50 a.m. OK GNU C++14 TESTS 53 15 0 1200
50043946 h1tman_abhi B Feb. 17, 2019, 4:29 a.m. OK GNU C++14 TESTS 53 15 102400 1200
32138700 the_badcoder B Nov. 8, 2017, 12:07 p.m. OK GNU C++14 TESTS 53 15 102400 1200
55587814 rohan_24 B June 15, 2019, 10:37 a.m. OK GNU C++17 TESTS 53 15 102400 1200
47327279 AayushAC1998 B Dec. 21, 2018, 11:06 a.m. OK GNU C++17 TESTS 53 15 409600 1200
55057249 fahim_mahmood B June 3, 2019, 7:37 p.m. OK GNU C++17 TESTS 53 15 921600 1200
36209692 Wsl_F B March 11, 2018, 8:03 p.m. OK GNU C++17 TESTS 53 15 2252800 1200
35292615 diagon_alley B Feb. 15, 2018, 1:01 p.m. OK GNU C++17 TESTS 53 15 2662400 1200
59192318 vjudge5 B Aug. 20, 2019, 10:15 p.m. OK GNU C++17 TESTS 53 30 0 1200
59191991 vjudge4 B Aug. 20, 2019, 9:56 p.m. OK GNU C++17 TESTS 53 30 0 1200
69479480 vjudge5 B Jan. 24, 2020, 5:15 p.m. OK GNU C++17 TESTS 53 30 0 1200
56782016 TheBlaDe B July 10, 2019, 6:41 a.m. OK GNU C++17 TESTS 53 30 102400 1200
61283827 Amar1503 B Sept. 25, 2019, 5:45 p.m. OK GNU C++17 TESTS 53 30 102400 1200
47719006 jakab922 B Dec. 30, 2018, 9:54 a.m. OK Go TESTS 53 46 14233600 1200
27313450 yuliang B May 24, 2017, 3:36 a.m. OK Go TESTS 53 234 18022400 1200
27413686 owner76 B May 28, 2017, 1:16 p.m. OK Go TESTS 53 280 18022400 1200
24936876 yuki2006 B Feb. 23, 2017, 4:22 p.m. OK Go TESTS 53 701 12390400 1200
62320415 Nutella3000 B Oct. 10, 2019, 4:33 p.m. OK Java 8 TESTS 53 109 0 1200
48786243 I.A.K.O.V B Jan. 23, 2019, 9:05 a.m. OK Java 8 TESTS 53 109 0 1200
27238029 Alexxx B May 20, 2017, 5:09 p.m. OK Java 8 TESTS 53 109 0 1200
25584730 sintax_eror B March 17, 2017, 9:15 p.m. OK Java 8 TESTS 53 109 20377600 1200
28056674 hitesh.bothra B June 26, 2017, 11:49 a.m. OK Java 8 TESTS 53 109 20582400 1200
28351718 MaxHeap B July 7, 2017, 2:57 p.m. OK Java 8 TESTS 53 109 20582400 1200
25735490 Hazemzz B March 23, 2017, 2:17 p.m. OK Java 8 TESTS 53 109 20582400 1200
25674992 apbondarev B March 20, 2017, 7:08 p.m. OK Java 8 TESTS 53 109 20582400 1200
24948704 Nesrin B Feb. 23, 2017, 9:11 p.m. OK Java 8 TESTS 53 109 20582400 1200
24944939 meijun B Feb. 23, 2017, 6:25 p.m. OK Java 8 TESTS 53 109 20582400 1200
59239904 david_varela B Aug. 21, 2019, 7:08 p.m. OK Kotlin TESTS 53 187 1228800 1200
26536027 korifey B April 21, 2017, 11:27 a.m. OK Kotlin TESTS 53 374 22016000 1200
44095956 nemars B Oct. 11, 2018, 12:20 a.m. OK Mono C# TESTS 53 108 6144000 1200
44095973 nemars B Oct. 11, 2018, 12:22 a.m. OK Mono C# TESTS 53 108 7680000 1200
24946364 og.kostya B Feb. 23, 2017, 7:12 p.m. OK MS C# TESTS 53 61 13312000 1200
25318349 m1_k3 B March 7, 2017, 10:30 a.m. OK MS C# TESTS 53 62 13824000 1200
24958379 ACE347 B Feb. 24, 2017, 8:15 a.m. OK MS C# TESTS 53 77 26726400 1200
32718046 DCNick3 B Nov. 27, 2017, 2:44 p.m. OK MS C# TESTS 53 155 28876800 1200
25061433 ersul B Feb. 26, 2017, 5:48 p.m. OK MS C# TESTS 53 218 8908800 1200
24940140 rassvetik B Feb. 23, 2017, 4:44 p.m. OK MS C# TESTS 53 248 12083200 1200
24948491 dgravett B Feb. 23, 2017, 8:59 p.m. OK MS C# TESTS 53 248 12288000 1200
24998987 d_smorodinnikov B Feb. 25, 2017, 1:28 a.m. OK MS C# TESTS 53 249 11776000 1200
24998944 d_smorodinnikov B Feb. 25, 2017, 1:25 a.m. OK MS C# TESTS 53 265 11776000 1200
27069187 vjudge3 B May 13, 2017, 6:03 a.m. OK MS C++ TESTS 53 15 512000 1200
27069142 vjudge3 B May 13, 2017, 6 a.m. OK MS C++ TESTS 53 15 512000 1200
27287482 vjudge1 B May 22, 2017, 3:59 p.m. OK MS C++ TESTS 53 15 512000 1200
30033260 Mithridat B Sept. 3, 2017, 12:08 p.m. OK MS C++ TESTS 53 15 512000 1200
33875964 Heibor B Jan. 3, 2018, 2:39 a.m. OK MS C++ TESTS 53 15 2048000 1200
24952812 phu1612508 B Feb. 24, 2017, 2:44 a.m. OK MS C++ TESTS 53 15 2048000 1200
24946009 goodhope B Feb. 23, 2017, 6:57 p.m. OK MS C++ TESTS 53 15 2150400 1200
25036798 vjudge3 B Feb. 26, 2017, 8:33 a.m. OK MS C++ TESTS 53 15 2969600 1200
27287911 vjudge3 B May 22, 2017, 4:26 p.m. OK MS C++ TESTS 53 30 512000 1200
29934312 scorpiowf B Aug. 31, 2017, 3:48 a.m. OK MS C++ TESTS 53 30 819200 1200
50897440 Werty_Wang B March 6, 2019, 3:44 p.m. OK MS C++ 2017 TESTS 53 46 0 1200
57024594 aqua233 B July 14, 2019, 2:51 p.m. OK MS C++ 2017 TESTS 53 46 512000 1200
63965913 vjudge3 B Nov. 1, 2019, 7:10 a.m. OK MS C++ 2017 TESTS 53 61 716800 1200
55716263 JuicyCloud12609 B June 18, 2019, 12:52 p.m. OK MS C++ 2017 TESTS 53 77 409600 1200
66664490 icomplex09 B Dec. 12, 2019, 6:28 a.m. OK MS C++ 2017 TESTS 53 77 716800 1200
63272723 sannick01 B Oct. 24, 2019, 5:14 a.m. OK MS C++ 2017 TESTS 53 77 1024000 1200
61595196 poormate B Oct. 1, 2019, 8:33 a.m. OK MS C++ 2017 TESTS 53 78 0 1200
62306092 Mad112233 B Oct. 10, 2019, 1:14 p.m. OK MS C++ 2017 TESTS 53 78 1228800 1200
51322650 KillahJon B March 15, 2019, 8:03 a.m. OK MS C++ 2017 TESTS 53 124 102400 1200
24993708 s_p B Feb. 24, 2017, 7:33 p.m. OK Perl TESTS 53 78 10854400 1200
24949582 minecraftyugi B Feb. 23, 2017, 10:11 p.m. OK PyPy 2 TESTS 53 93 26112000 1200
39666414 YESMAths B June 26, 2018, 5:41 a.m. OK PyPy 2 TESTS 53 109 3174400 1200
25068606 TangentOfA B Feb. 27, 2017, 4:04 a.m. OK PyPy 2 TESTS 53 109 24576000 1200
41601907 aeternalis1 B Aug. 14, 2018, 8:53 p.m. OK PyPy 2 TESTS 53 140 3788800 1200
26190728 TokuchiToa B April 7, 2017, 11:07 a.m. OK PyPy 2 TESTS 53 217 31846400 1200
29177330 sambit25 B Aug. 3, 2017, 8:22 p.m. OK PyPy 2 TESTS 53 732 25600000 1200
40420391 gaurav17050 B July 16, 2018, 2:51 p.m. OK PyPy 2 TESTS 53 920 1536000 1200
35897480 nonis B March 3, 2018, 5:55 p.m. OK PyPy 3 TESTS 53 109 27033600 1200
31941008 vjudge3 B Nov. 1, 2017, 7:24 a.m. OK PyPy 3 TESTS 53 139 7987200 1200
61876293 Mad_Andrei B Oct. 4, 2019, 8:20 p.m. OK PyPy 3 TESTS 53 171 9932800 1200
67321194 Sharma__Vipul B Dec. 21, 2019, 8:05 a.m. OK PyPy 3 TESTS 53 186 4608000 1200
45417753 petiteteaparty B Nov. 7, 2018, 3:17 p.m. OK PyPy 3 TESTS 53 186 8704000 1200
64835018 vovik123 B Nov. 13, 2019, 4:09 p.m. OK PyPy 3 TESTS 53 186 9932800 1200
68950128 noobie_programmer B Jan. 16, 2020, 5:39 p.m. OK PyPy 3 TESTS 53 187 9830400 1200
59417631 chaudhary_19 B Aug. 24, 2019, 7:05 p.m. OK PyPy 3 TESTS 53 187 9830400 1200
24943903 kishertka B Feb. 23, 2017, 6:05 p.m. OK PyPy 3 TESTS 53 187 29798400 1200
54798757 iamprayush B May 29, 2019, 10:59 a.m. OK PyPy 3 TESTS 53 202 8499200 1200
24937553 coderbd B Feb. 23, 2017, 4:29 p.m. OK Python 2 TESTS 53 62 6246400 1200
33019221 shivam_1708 shmabulock B Dec. 8, 2017, 9:53 a.m. OK Python 2 TESTS 53 78 7372800 1200
25527935 agdhruv B March 15, 2017, 5:26 p.m. OK Python 2 TESTS 53 78 8192000 1200
25730552 preetha2711 B March 23, 2017, 10:35 a.m. OK Python 2 TESTS 53 93 8294400 1200
25375981 BlueHazard_rony B March 10, 2017, 9:40 a.m. OK Python 2 TESTS 53 109 5017600 1200
25733223 ro297 B March 23, 2017, 12:37 p.m. OK Python 2 TESTS 53 109 7577600 1200
25733209 rohansahnii B March 23, 2017, 12:37 p.m. OK Python 2 TESTS 53 109 7577600 1200
33215984 laoliumang B Dec. 13, 2017, 2:17 p.m. OK Python 2 TESTS 53 109 8089600 1200
24946866 utkarsh_gaur B Feb. 23, 2017, 7:33 p.m. OK Python 2 TESTS 53 109 8089600 1200
24953177 anuj_shah B Feb. 24, 2017, 3:07 a.m. OK Python 2 TESTS 53 124 5427200 1200
24947765 00arpit00 B Feb. 23, 2017, 8:17 p.m. OK Python 3 TESTS 53 77 5836800 1200
25114743 Koi_ga_umareru B March 1, 2017, 4:47 a.m. OK Python 3 TESTS 53 78 6144000 1200
26345860 merolish B April 13, 2017, 6:47 p.m. OK Python 3 TESTS 53 108 6348800 1200
45885036 vjudge4 B Nov. 17, 2018, 3:35 p.m. OK Python 3 TESTS 53 124 716800 1200
45879328 vjudge5 B Nov. 17, 2018, 1:17 p.m. OK Python 3 TESTS 53 124 716800 1200
40646531 orailly B July 22, 2018, 4:38 p.m. OK Python 3 TESTS 53 124 1126400 1200
40646463 orailly B July 22, 2018, 4:35 p.m. OK Python 3 TESTS 53 124 1126400 1200
24940274 wooljs B Feb. 23, 2017, 4:45 p.m. OK Python 3 TESTS 53 124 12492800 1200
44524632 vergarabcs B Oct. 19, 2018, 12:43 a.m. OK Python 3 TESTS 53 139 1945600 1200
36420363 daleks B March 19, 2018, 8:30 p.m. OK Python 3 TESTS 53 139 9113600 1200
24962330 tkain B Feb. 24, 2017, 10:16 a.m. OK Ruby TESTS 53 124 7884800 1200
25797221 yigezhe B March 25, 2017, 12:12 p.m. OK Ruby TESTS 53 295 6860800 1200
25441215 saurabh7717 B March 12, 2017, 6:30 p.m. OK Ruby TESTS 53 374 8396800 1200
25030061 cielavenir B Feb. 26, 2017, 7:03 a.m. OK Ruby TESTS 53 873 8294400 1200
24947118 traff B Feb. 23, 2017, 7:45 p.m. OK Scala TESTS 53 451 25600000 1200
64867964 techaddict B Nov. 14, 2019, 7:04 a.m. OK Scala TESTS 53 576 0 1200

remove filters

Back to search problems