Avito Cool Challenge 2018

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
1081 Avito Cool Challenge 2018 FINISHED False 9000 186852299 Dec. 16, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2600 ) E Missing Numbers PROGRAMMING binary search constructive algorithms greedy math number theory 1900

B'Chouti is working on a strange math problem. There was a sequence of n positive integers x_1, x_2, ldots, x_n , where n is even. The sequence was very special, namely for every integer t from 1 to n , x_1+x_2+...+x_t is a square of some integer number (that is, a perfect square). Somehow, the numbers with odd indexes turned to be missing, so he is only aware of numbers on even positions, i.e. x_2, x_4, x_6, ldots, x_n . The task for him is to restore the original sequence. Again, it 's your turn to help him. The problem setter might make mistakes, so there can be no possible sequence at all. If there are several possible sequences, you can output any. The first line contains an even number n ( 2 <= n <= 10^5 ). The second line contains frac{n}{2} positive integers x_2, x_4, ldots, x_n ( 1 <= x_i <= 2 cdot 10^5 ). If there are no possible sequence, print "No". Otherwise, print "Yes" and then n positive integers x_1, x_2, ldots, x_n ( 1 <= x_i <= 10^{13} ), where x_2, x_4, ldots, x_n should be same as in input data. If there are multiple answers, print any. Note, that the limit for x_i is larger than for input data. It can be proved that in case there is an answer, there must be a possible sequence satisfying 1 <= x_i <= 10^{13} . In the first example In the second example, x_1=100 , x_1+x_2=10000 . They are all perfect squares. There 're other answers possible. For example, x_1=22500 is another answer. In the third example, it is possible to show, that no such sequence exists. '...

Tutorials

63888

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
48401048 OmarKhaled_ E Jan. 14, 2019, 9:11 p.m. OK Clang++17 Diagnostics TESTS 76 155 20889600 1900
47132103 sansen E Dec. 16, 2018, 4:30 p.m. OK GNU C11 TESTS 75 343 2048000 1900
49480322 ahmed299777 E Feb. 4, 2019, 9:52 p.m. OK GNU C11 TESTS 76 358 1638400 1900
53653233 vjudge2 E May 2, 2019, 2:54 a.m. OK GNU C11 TESTS 76 936 819200 1900
51072338 zhen_de_keng E March 9, 2019, 8:09 a.m. OK GNU C++11 TESTS 76 31 614400 1900
47888189 2017SSY E Jan. 4, 2019, 3:02 a.m. OK GNU C++11 TESTS 76 46 614400 1900
52494389 tingyu E April 8, 2019, 1:03 p.m. OK GNU C++11 TESTS 76 46 614400 1900
47116946 Um_nik E Dec. 16, 2018, 2:57 p.m. OK GNU C++11 TESTS 75 46 819200 1900
57780878 zzbrm7610 E July 26, 2019, 5:55 a.m. OK GNU C++11 TESTS 76 46 819200 1900
60321157 sakib_muhit E Sept. 9, 2019, 8:36 p.m. OK GNU C++11 TESTS 76 46 819200 1900
47125796 Iscream2001 E Dec. 16, 2018, 3:42 p.m. OK GNU C++11 TESTS 75 46 819200 1900
47128555 nikolapesic2802 E Dec. 16, 2018, 4:02 p.m. OK GNU C++11 TESTS 75 46 1024000 1900
47140909 patak E Dec. 16, 2018, 8 p.m. OK GNU C++11 TESTS 75 46 1228800 1900
47140381 knightL E Dec. 16, 2018, 7:44 p.m. OK GNU C++11 TESTS 75 46 1228800 1900
47192070 oipotato E Dec. 18, 2018, 12:44 p.m. OK GNU C++14 TESTS 76 31 819200 1900
48655319 ReaLNero1 E Jan. 21, 2019, 2:11 a.m. OK GNU C++14 TESTS 76 31 1024000 1900
48482235 yangshuang E Jan. 17, 2019, 6:37 a.m. OK GNU C++14 TESTS 76 31 1024000 1900
56463128 rathin_ssj4 E July 3, 2019, 7:44 a.m. OK GNU C++14 TESTS 76 46 819200 1900
59104144 dkothari E Aug. 19, 2019, 5:18 p.m. OK GNU C++14 TESTS 76 46 819200 1900
55089736 0wner E June 4, 2019, 2:02 p.m. OK GNU C++14 TESTS 76 46 819200 1900
49779190 ..vince E Feb. 11, 2019, 4:47 p.m. OK GNU C++14 TESTS 76 46 819200 1900
49495825 vjudge3 E Feb. 5, 2019, 12:47 p.m. OK GNU C++14 TESTS 76 46 819200 1900
49468638 VLADO E Feb. 4, 2019, 4:09 p.m. OK GNU C++14 TESTS 76 46 819200 1900
47146494 mra2322001 E Dec. 17, 2018, 2:59 a.m. OK GNU C++14 TESTS 75 46 819200 1900
54009414 quake0 E May 12, 2019, 12:03 a.m. OK GNU C++17 TESTS 76 46 409600 1900
47485936 AlimovDavron E Dec. 25, 2018, 8:38 a.m. OK GNU C++17 TESTS 76 46 819200 1900
47254562 tootal E Dec. 19, 2018, 9:51 a.m. OK GNU C++17 TESTS 76 46 819200 1900
47163039 kczno1 E Dec. 17, 2018, 11:03 a.m. OK GNU C++17 TESTS 75 46 819200 1900
47140524 Antoine E Dec. 16, 2018, 7:48 p.m. OK GNU C++17 TESTS 75 46 819200 1900
47139995 Ajax E Dec. 16, 2018, 7:33 p.m. OK GNU C++17 TESTS 75 46 819200 1900
47139982 AliHeidary1381 E Dec. 16, 2018, 7:33 p.m. OK GNU C++17 TESTS 75 46 819200 1900
50504205 robot-dreams E Feb. 25, 2019, 6:43 p.m. OK GNU C++17 TESTS 76 46 819200 1900
55960392 PandaIsTheBest E June 23, 2019, 9:19 a.m. OK GNU C++17 TESTS 76 46 819200 1900
50471682 dinosaurs E Feb. 25, 2019, 1:30 a.m. OK GNU C++17 TESTS 76 46 819200 1900
64760037 IslamTalipovTop E Nov. 12, 2019, 6:41 p.m. OK Java 11 TESTS 76 280 29798400 1900
47181675 StayAwayFromBitches E Dec. 17, 2018, 9:37 p.m. OK Java 8 TESTS 75 124 0 1900
53852999 mikkk E May 7, 2019, 2:24 p.m. OK Java 8 TESTS 76 155 0 1900
47371527 ZeyadKhattab E Dec. 22, 2018, 2:33 p.m. OK Java 8 TESTS 76 171 0 1900
47169309 aman28rwt E Dec. 17, 2018, 2:06 p.m. OK Java 8 TESTS 75 171 0 1900
47131449 indy256 E Dec. 16, 2018, 4:25 p.m. OK Java 8 TESTS 75 171 0 1900
47169286 aman28rwt E Dec. 17, 2018, 2:06 p.m. OK Java 8 TESTS 75 187 0 1900
49600001 harshkumarlaldas E Feb. 7, 2019, 4:49 p.m. OK Java 8 TESTS 76 202 0 1900
49599515 Intrincantation E Feb. 7, 2019, 4:41 p.m. OK Java 8 TESTS 76 202 0 1900
47777835 SpargelTarzan E Dec. 31, 2018, 5:46 a.m. OK Java 8 TESTS 76 202 0 1900
47169163 aman28rwt E Dec. 17, 2018, 2:02 p.m. OK Java 8 TESTS 75 202 0 1900
47139966 zloi.timur E Dec. 16, 2018, 7:33 p.m. OK Kotlin TESTS 75 623 0 1900
47155742 Coder_D E Dec. 17, 2018, 6:40 a.m. OK Mono C# TESTS 75 93 11161600 1900
47141722 mircea85 E Dec. 16, 2018, 8:33 p.m. OK Mono C# TESTS 75 156 10137600 1900
47141752 mircea85 E Dec. 16, 2018, 8:34 p.m. OK Mono C# TESTS 75 171 10137600 1900
47321967 omikad E Dec. 21, 2018, 8:18 a.m. OK Mono C# TESTS 76 499 38912000 1900
47162414 r57shell E Dec. 17, 2018, 10:40 a.m. OK MS C++ TESTS 75 46 819200 1900
47139708 LoneFox E Dec. 16, 2018, 7:26 p.m. OK MS C++ TESTS 75 78 5324800 1900
47127485 bunos E Dec. 16, 2018, 3:54 p.m. OK MS C++ TESTS 75 124 819200 1900
47273537 BaturaDima E Dec. 19, 2018, 5:58 p.m. OK MS C++ TESTS 76 124 1433600 1900
47375416 vjudge2 E Dec. 22, 2018, 4:57 p.m. OK MS C++ TESTS 76 234 7270400 1900
57830780 YESMAths E July 27, 2019, 5:56 a.m. OK PyPy 2 TESTS 76 202 11980800 1900
47131347 pajenegod E Dec. 16, 2018, 4:24 p.m. OK PyPy 2 TESTS 75 234 13312000 1900
47131663 aeternalis1 E Dec. 16, 2018, 4:26 p.m. OK PyPy 2 TESTS 75 311 9830400 1900
47140194 c1729 E Dec. 16, 2018, 7:39 p.m. OK PyPy 2 TESTS 75 358 22323200 1900
47140022 c1729 E Dec. 16, 2018, 7:34 p.m. OK PyPy 2 TESTS 75 374 19353600 1900
47448785 sy_chen E Dec. 24, 2018, 8:12 a.m. OK PyPy 2 TESTS 76 1169 9113600 1900
47140344 c1729 E Dec. 16, 2018, 7:43 p.m. OK PyPy 2 TESTS 75 1216 18739200 1900
47135769 anagohirame E Dec. 16, 2018, 5 p.m. OK PyPy 3 TESTS 75 405 13619200 1900
47141873 titia E Dec. 16, 2018, 8:40 p.m. OK PyPy 3 TESTS 75 467 12083200 1900
52920109 bkalra92 E April 17, 2019, 5:27 p.m. OK PyPy 3 TESTS 76 577 9523200 1900
47141318 ivan100sic E Dec. 16, 2018, 8:15 p.m. OK PyPy 3 TESTS 75 842 9318400 1900
47132860 potpath E Dec. 16, 2018, 4:36 p.m. OK Python 3 TESTS 75 186 7987200 1900
47144962 whatshisbucket E Dec. 17, 2018, 12:56 a.m. OK Python 3 TESTS 75 311 5427200 1900
58155351 NocturneBflat E Aug. 2, 2019, 5:20 a.m. OK Python 3 TESTS 76 935 31027200 1900
47315521 Firepaw E Dec. 21, 2018, 2:45 a.m. OK Python 3 TESTS 76 1200 60108800 1900
47139680 c1729 E Dec. 16, 2018, 7:26 p.m. OK Python 3 TESTS 75 1294 25702400 1900
47139629 c1729 E Dec. 16, 2018, 7:25 p.m. OK Python 3 TESTS 75 1450 21811200 1900
47379915 Orion E Dec. 22, 2018, 8:08 p.m. OK Python 3 TESTS 76 1762 3379200 1900
60167006 limed E Sept. 6, 2019, 11:23 a.m. OK Scala TESTS 76 249 0 1900
60167054 limed E Sept. 6, 2019, 11:25 a.m. OK Scala TESTS 76 264 0 1900
60166632 limed E Sept. 6, 2019, 11:14 a.m. OK Scala TESTS 76 467 0 1900
60166492 limed E Sept. 6, 2019, 11:10 a.m. OK Scala TESTS 76 514 0 1900
60166207 limed E Sept. 6, 2019, 11:03 a.m. OK Scala TESTS 76 514 0 1900
60166121 limed E Sept. 6, 2019, 11:01 a.m. OK Scala TESTS 76 514 0 1900
60166275 limed E Sept. 6, 2019, 11:05 a.m. OK Scala TESTS 76 545 0 1900
47127982 limed E Dec. 16, 2018, 3:58 p.m. OK Scala TESTS 75 546 1536000 1900
60166031 limed E Sept. 6, 2019, 10:58 a.m. OK Scala TESTS 76 608 0 1900

remove filters

Back to search problems