AIM Tech Round 5 (rated, 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
1028 AIM Tech Round 5 (rated, Div. 1 + Div. 2) FINISHED False 8100 196435499 Aug. 27, 2018, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 496 ) H Make Square PROGRAMMING math 2900

B'We call an array b_1, b_2, ldots, b_m good, if there exist two indices i < j such that b_i cdot b_j is a perfect square. Given an array b_1, b_2, ldots, b_m , in one action you can perform one of the following: Let f(b_1, b_2, ldots, b_m) be the minimum number of actions needed to make the array b good. You are given an array of n integers a_1, a_2, ldots, a_n and q queries of the form l_i, r_i . For each query output f(a_{l_i}, a_{l_i + 1}, ldots, a_{r_i}) . The first line contains two integers n and q ( 2 <= n <= 194 ,598 , 1 <= q <= 1 ,049 ,658 ) -- the length of the array and the number of queries. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 5 ,032 ,107 ) -- the elements of the array. Each of the next q lines contains two integers l_i and r_i ( 1 <= l_i < r_i <= n ) -- the parameters of a query. Output q lines -- the answers for each query in the order they are given in the input. In the first query of the first sample you can multiply second number by 7 to get 259 and multiply the third one by 37 to get 1036. Then a_2 cdot a_3 = 268 ,324 = 518^2 . In the second query subarray is already good because a_4 cdot a_6 = 24^2 . In the third query you can divide 50 by 2 to get 25. Then a_6 cdot a_8 = 30^2 . '...

Tutorials

61493

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42326891 AIex_2oo8 H Sept. 1, 2018, 6:31 a.m. OK GNU C++ TESTS 71 1762 333516800 2900
42428779 guille H Sept. 3, 2018, 1:53 p.m. OK GNU C++ TESTS 71 3026 824012800 2900
42192123 samjia2000 H Aug. 28, 2018, 3:38 a.m. OK GNU C++ TESTS 71 3571 280985600 2900
51958829 cuizhuyefei H March 29, 2019, 5:24 a.m. OK GNU C++11 TESTS 71 670 346726400 2900
42208417 emoairx H Aug. 28, 2018, 12:55 p.m. OK GNU C++11 TESTS 71 733 201011200 2900
42696033 ReaLNero1 H Sept. 9, 2018, 7:13 a.m. OK GNU C++11 TESTS 71 763 201011200 2900
42208296 emoairx H Aug. 28, 2018, 12:51 p.m. OK GNU C++11 TESTS 71 763 201011200 2900
42829307 dengyixuan H Sept. 13, 2018, 12:11 p.m. OK GNU C++11 TESTS 71 763 297676800 2900
46920798 __Ressed__ H Dec. 12, 2018, 4:32 a.m. OK GNU C++11 TESTS 71 764 246374400 2900
42538236 Wearry H Sept. 6, 2018, 3:40 a.m. OK GNU C++11 TESTS 71 889 297369600 2900
45413618 zhan8855 H Nov. 7, 2018, 1:08 p.m. OK GNU C++11 TESTS 71 951 247500800 2900
42229310 emofunc H Aug. 29, 2018, 5:35 a.m. OK GNU C++11 TESTS 71 982 178790400 2900
42546472 Anson529 H Sept. 6, 2018, 9:21 a.m. OK GNU C++11 TESTS 71 982 531456000 2900
42217074 DEMOPON H Aug. 28, 2018, 5:50 p.m. OK GNU C++14 TESTS 71 1138 99020800 2900
42212134 consecutivelimit H Aug. 28, 2018, 2:56 p.m. OK GNU C++14 TESTS 71 1185 99020800 2900
42279303 DEMOPON H Aug. 30, 2018, 1:22 p.m. OK GNU C++14 TESTS 71 1201 99020800 2900
42308470 Dragon_Fly_02 H Aug. 31, 2018, 12:47 p.m. OK GNU C++14 TESTS 71 1216 345907200 2900
42278963 Deluxurous H Aug. 30, 2018, 1:12 p.m. OK GNU C++14 TESTS 71 1247 209612800 2900
42301183 neal H Aug. 31, 2018, 7:50 a.m. OK GNU C++14 TESTS 71 1263 314368000 2900
42325441 Marckess H Sept. 1, 2018, 4:40 a.m. OK GNU C++14 TESTS 71 1263 327987200 2900
42324749 IrvinSpence H Sept. 1, 2018, 3:30 a.m. OK GNU C++14 TESTS 71 1294 201523200 2900
48032918 Toxel H Jan. 6, 2019, 1:35 p.m. OK GNU C++14 TESTS 71 1309 254566400 2900
44484849 zhou888 H Oct. 18, 2018, noon OK GNU C++14 TESTS 71 1325 225689600 2900
48711159 zhangqingqi H Jan. 22, 2019, 8:35 a.m. OK GNU C++17 TESTS 71 1029 295833600 2900
49955083 TrivialMan H Feb. 15, 2019, 3:40 p.m. OK GNU C++17 TESTS 71 1076 192409600 2900
49940167 TrivialMan H Feb. 15, 2019, 9:14 a.m. OK GNU C++17 TESTS 71 1107 180531200 2900
49954569 TrivialMan H Feb. 15, 2019, 3:27 p.m. OK GNU C++17 TESTS 71 1107 192409600 2900
49956221 TrivialMan H Feb. 15, 2019, 4:09 p.m. OK GNU C++17 TESTS 71 1138 192409600 2900
56131982 Pankin H June 26, 2019, 7:14 p.m. OK GNU C++17 TESTS 71 1185 189337600 2900
42738252 dx007 H Sept. 10, 2018, 2:50 p.m. OK GNU C++17 TESTS 71 1185 195379200 2900
42177022 LHiC H Aug. 27, 2018, 6:10 p.m. OK GNU C++17 TESTS 71 1216 211763200 2900
43234600 Anne_Vizitiv H Sept. 22, 2018, 7:35 a.m. OK GNU C++17 TESTS 71 1231 99020800 2900
53272145 Kmcode H April 25, 2019, 7:06 a.m. OK GNU C++17 TESTS 71 1279 109158400 2900
42208617 mmaxio H Aug. 28, 2018, 1:01 p.m. OK Java 8 TESTS 71 2932 375705600 2900
67403002 Harpae H Dec. 22, 2019, 5:01 a.m. OK Java 8 TESTS 71 3244 586035200 2900
67402550 Harpae H Dec. 22, 2019, 4:46 a.m. OK Java 8 TESTS 71 3260 586137600 2900
42273080 vadimmm H Aug. 30, 2018, 9:35 a.m. OK Java 8 TESTS 71 3744 436019200 2900
42437252 tri H Sept. 3, 2018, 6:05 p.m. OK Java 8 TESTS 71 4757 393523200 2900
43527660 ZeyadKhattab H Sept. 28, 2018, 12:09 p.m. OK Java 8 TESTS 71 5396 629248000 2900
62221021 vlolosnikov H Oct. 9, 2019, 5:32 p.m. OK Java 8 TESTS 71 6271 1062092800 2900

remove filters

Back to search problems