Technocup 2020 - Elimination Round 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
1225 Technocup 2020 - Elimination Round 2 FINISHED False 7200 159735299 Oct. 26, 2019, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11939 ) B1 TV Subscriptions (Easy Version) PROGRAMMING implementation 1000

B'The only difference between easy and hard versions is constraints. The BerTV channel every day broadcasts one episode of one of the k TV shows. You know the schedule for the next n days: a sequence of integers a_1, a_2, ... , a_n ( 1 <= a_i <= k ), where a_i is the show, the episode of which will be shown in i -th day. The subscription to the show is bought for the entire show (i.e. for all its episodes), for each show the subscription is bought separately. How many minimum subscriptions do you need to buy in order to have the opportunity to watch episodes of purchased shows d ( 1 <= d <= n ) days in a row? In other words, you want to buy the minimum number of TV shows so that there is some segment of d consecutive days in which all episodes belong to the purchased shows. The first line contains an integer t ( 1 <= t <= 100 ) -- the number of test cases in the input. Then t test case descriptions follow. The first line of each test case contains three integers n, k and d ( 1 <= n <= 100 , 1 <= k <= 100 , 1 <= d <= n ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= k ), where a_i is the show that is broadcasted on the i -th day. It is guaranteed that the sum of the values xe2 x80 x8b xe2 x80 x8bof n for all test cases in the input does not exceed 100 . Print t integers -- the answers to the test cases in the input in the order they follow. The answer to a test case is the minimum number of TV shows for which you need to purchase a subscription so that you can watch episodes of the purchased TV shows on BerTV for d consecutive days. Please note that it is permissible that you will be able to watch more than d days in a row. In the first test case to have an opportunity to watch shows for two consecutive days, you need to buy a subscription on show 1 and on show 2 . So the answer'...

Tutorials

70898

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
66439487 vjudge4 B1 Dec. 7, 2019, 7:27 a.m. OK Clang++17 Diagnostics TESTS 26 61 8601600 1000
63468485 roman_povolotskii B1 Oct. 26, 2019, 12:02 p.m. OK Delphi TESTS 26 31 102400 1000
63472532 Grizzzly B1 Oct. 26, 2019, 12:15 p.m. OK Delphi TESTS 26 31 1638400 1000
63499333 Grizzzly B1 Oct. 26, 2019, 4:39 p.m. OK Delphi TESTS 26 31 7987200 1000
63482436 EreminVladimir B1 Oct. 26, 2019, 12:55 p.m. OK Delphi TESTS 26 46 102400 1000
63460553 ZhavaFrog B1 Oct. 26, 2019, 11:41 a.m. OK FPC TESTS 26 31 0 1000
63473621 Nikita231 B1 Oct. 26, 2019, 12:19 p.m. OK FPC TESTS 26 31 102400 1000
63456478 pahan_lic2 B1 Oct. 26, 2019, 11:32 a.m. OK FPC TESTS 26 31 204800 1000
63462800 dIm0N4eG B1 Oct. 26, 2019, 11:46 a.m. OK FPC TESTS 26 31 409600 1000
63475138 kholevenkova B1 Oct. 26, 2019, 12:24 p.m. OK FPC TESTS 26 31 16076800 1000
66164267 StEpAn_123 B1 Dec. 2, 2019, 6:40 a.m. OK FPC TESTS 26 46 204800 1000
63463288 romanporsh B1 Oct. 26, 2019, 11:47 a.m. OK FPC TESTS 26 46 307200 1000
63451795 Craspedacusta B1 Oct. 26, 2019, 11:24 a.m. OK FPC TESTS 26 46 307200 1000
63771183 vaibhav999garg B1 Oct. 30, 2019, 8:03 a.m. OK GNU C11 TESTS 26 15 102400 1000
67396496 BugLeave B1 Dec. 21, 2019, 11:36 p.m. OK GNU C11 TESTS 26 30 0 1000
63496886 Mikhail___ B1 Oct. 26, 2019, 3:51 p.m. OK GNU C11 TESTS 26 31 0 1000
63484232 Georgy_pon B1 Oct. 26, 2019, 1 p.m. OK GNU C11 TESTS 26 31 0 1000
63477589 Trofik00777 B1 Oct. 26, 2019, 12:36 p.m. OK GNU C11 TESTS 26 31 0 1000
63540330 akshatdalton B1 Oct. 27, 2019, 9:07 a.m. OK GNU C11 TESTS 26 31 0 1000
65168653 ArmU B1 Nov. 16, 2019, 2:16 p.m. OK GNU C11 TESTS 26 31 0 1000
65883319 friedrich_hayek B1 Nov. 27, 2019, 8:18 p.m. OK GNU C11 TESTS 26 31 0 1000
67265220 yigezhe B1 Dec. 20, 2019, 5:50 a.m. OK GNU C11 TESTS 26 31 0 1000
63524323 huanggs B1 Oct. 27, 2019, 4:47 a.m. OK GNU C11 TESTS 26 31 5324800 1000
63652893 wsk1202 B1 Oct. 28, 2019, 11:54 a.m. OK GNU C++11 TESTS 26 15 0 1000
68719190 MiguelSaenz B1 Jan. 13, 2020, 3:35 p.m. OK GNU C++11 TESTS 26 30 0 1000
63962572 utkarshmahan B1 Nov. 1, 2019, 5:52 a.m. OK GNU C++11 TESTS 26 30 0 1000
63479896 Aprongushek B1 Oct. 26, 2019, 12:46 p.m. OK GNU C++11 TESTS 26 30 0 1000
63471988 Skovorodnikov_Dmitriy B1 Oct. 26, 2019, 12:14 p.m. OK GNU C++11 TESTS 26 30 0 1000
63462208 alexandergubarev B1 Oct. 26, 2019, 11:44 a.m. OK GNU C++11 TESTS 26 30 0 1000
63450605 Olek_Olegovich B1 Oct. 26, 2019, 11:22 a.m. OK GNU C++11 TESTS 26 30 0 1000
63449124 Duckslinger63 B1 Oct. 26, 2019, 11:20 a.m. OK GNU C++11 TESTS 26 30 0 1000
63450218 Adamenko B1 Oct. 26, 2019, 11:22 a.m. OK GNU C++11 TESTS 26 30 0 1000
63778777 bopbombop B1 Oct. 30, 2019, 10:24 a.m. OK GNU C++11 TESTS 26 30 102400 1000
66574061 Prof._Hulk B1 Dec. 10, 2019, 6:20 a.m. OK GNU C++14 TESTS 26 15 0 1000
63499704 gunjank775 B1 Oct. 26, 2019, 4:45 p.m. OK GNU C++14 TESTS 26 15 0 1000
63712326 pranavbansal5201 B1 Oct. 29, 2019, 10:28 a.m. OK GNU C++14 TESTS 26 15 0 1000
66571610 ankit_kaushik B1 Dec. 10, 2019, 4:57 a.m. OK GNU C++14 TESTS 26 15 0 1000
66606586 Nascent_coder B1 Dec. 10, 2019, 6:49 p.m. OK GNU C++14 TESTS 26 15 0 1000
63478925 Ebiarat B1 Oct. 26, 2019, 12:42 p.m. OK GNU C++14 TESTS 26 15 0 1000
64124630 srivastavadivyesh4 B1 Nov. 3, 2019, 3:55 a.m. OK GNU C++14 TESTS 26 15 102400 1000
64552378 ac_97 B1 Nov. 9, 2019, 12:49 a.m. OK GNU C++14 TESTS 26 15 102400 1000
68008557 NEver_GIve-up B1 Dec. 31, 2019, 2:31 p.m. OK GNU C++14 TESTS 26 15 102400 1000
69534486 badbunny B1 Jan. 25, 2020, 6:17 p.m. OK GNU C++14 TESTS 26 15 102400 1000
66436137 vjudge5 B1 Dec. 7, 2019, 6:15 a.m. OK GNU C++17 TESTS 26 15 0 1000
63657904 adityaa30 B1 Oct. 28, 2019, 1:14 p.m. OK GNU C++17 TESTS 26 15 0 1000
63464691 KamilSL B1 Oct. 26, 2019, 11:51 a.m. OK GNU C++17 TESTS 26 15 0 1000
63454803 trueTema B1 Oct. 26, 2019, 11:29 a.m. OK GNU C++17 TESTS 26 15 0 1000
63683198 priyash_2 B1 Oct. 28, 2019, 8:55 p.m. OK GNU C++17 TESTS 26 15 102400 1000
63953890 Kaper B1 Oct. 31, 2019, 11:41 p.m. OK GNU C++17 TESTS 26 15 102400 1000
64100258 abc864197532 B1 Nov. 2, 2019, 3:11 p.m. OK GNU C++17 TESTS 26 15 102400 1000
64273469 Kdani22 B1 Nov. 4, 2019, 8:06 p.m. OK GNU C++17 TESTS 26 15 102400 1000
67283024 timothyhorsc B1 Dec. 20, 2019, 1:35 p.m. OK GNU C++17 TESTS 26 15 102400 1000
68688504 Anon_mouS B1 Jan. 13, 2020, 4:55 a.m. OK GNU C++17 TESTS 26 15 102400 1000
63459816 jegfault B1 Oct. 26, 2019, 11:39 a.m. OK Haskell TESTS 26 46 102400 1000
63740478 ZeroAmbition B1 Oct. 29, 2019, 4:45 p.m. OK Java 11 TESTS 26 187 0 1000
63471266 Arliton B1 Oct. 26, 2019, 12:11 p.m. OK Java 11 TESTS 26 202 0 1000
63472952 w1zzard117 B1 Oct. 26, 2019, 12:17 p.m. OK Java 11 TESTS 26 233 0 1000
69030525 akshaybhansali101 B1 Jan. 18, 2020, 8:01 a.m. OK Java 8 TESTS 26 108 0 1000
66300607 adzi B1 Dec. 5, 2019, 7 a.m. OK Java 8 TESTS 26 108 0 1000
68103663 akshVerma B1 Jan. 3, 2020, 5:39 a.m. OK Java 8 TESTS 26 109 0 1000
66317336 iam_ljk B1 Dec. 5, 2019, 1:25 p.m. OK Java 8 TESTS 26 109 0 1000
64460552 di_halt B1 Nov. 7, 2019, 10:12 a.m. OK Java 8 TESTS 26 109 0 1000
64433090 4mda4mda B1 Nov. 6, 2019, 10:49 p.m. OK Java 8 TESTS 26 109 0 1000
63782700 mr___hacker____ B1 Oct. 30, 2019, 11:29 a.m. OK Java 8 TESTS 26 109 0 1000
63658471 aditya314 B1 Oct. 28, 2019, 1:24 p.m. OK Java 8 TESTS 26 109 0 1000
63616047 mayankarora21 B1 Oct. 27, 2019, 7:33 p.m. OK Java 8 TESTS 26 109 0 1000
63524307 krsn123 B1 Oct. 27, 2019, 4:47 a.m. OK Java 8 TESTS 26 109 0 1000
63528923 Black_Fregat B1 Oct. 27, 2019, 6:08 a.m. OK Kotlin TESTS 26 140 102400 1000
63663995 mrAppleXZ B1 Oct. 28, 2019, 2:42 p.m. OK Kotlin TESTS 26 140 409600 1000
63659885 mrAppleXZ B1 Oct. 28, 2019, 1:46 p.m. OK Kotlin TESTS 26 156 1228800 1000
63472136 AlexPaniman B1 Oct. 26, 2019, 12:14 p.m. OK Kotlin TESTS 26 170 102400 1000
63457677 Dsvag B1 Oct. 26, 2019, 11:34 a.m. OK Kotlin TESTS 26 187 102400 1000
63479257 dimmag B1 Oct. 26, 2019, 12:43 p.m. OK Mono C# TESTS 26 62 0 1000
63466872 MrHalp B1 Oct. 26, 2019, 11:57 a.m. OK Mono C# TESTS 26 62 0 1000
63455771 timoxa5651 B1 Oct. 26, 2019, 11:30 a.m. OK Mono C# TESTS 26 62 3686400 1000
63959380 Tema255 B1 Nov. 1, 2019, 4:13 a.m. OK Mono C# TESTS 26 62 3686400 1000
63459183 vitaly_megabyte B1 Oct. 26, 2019, 11:38 a.m. OK Mono C# TESTS 26 77 0 1000
63463346 kor.artemik2018 B1 Oct. 26, 2019, 11:47 a.m. OK Mono C# TESTS 26 77 0 1000
63471562 _DAC_ B1 Oct. 26, 2019, 12:12 p.m. OK Mono C# TESTS 26 77 3686400 1000
63458321 hooin B1 Oct. 26, 2019, 11:36 a.m. OK Mono C# TESTS 26 78 3686400 1000
63454724 ProtectMan3 B1 Oct. 26, 2019, 11:29 a.m. OK Mono C# TESTS 26 93 3686400 1000
63468574 PavelBr B1 Oct. 26, 2019, 12:02 p.m. OK MS C++ TESTS 26 30 0 1000
66436487 vjudge5 B1 Dec. 7, 2019, 6:24 a.m. OK MS C++ TESTS 26 31 0 1000
66436772 vjudge3 B1 Dec. 7, 2019, 6:31 a.m. OK MS C++ TESTS 26 31 0 1000
66438007 vjudge4 B1 Dec. 7, 2019, 6:57 a.m. OK MS C++ TESTS 26 31 0 1000
66439544 vjudge3 B1 Dec. 7, 2019, 7:28 a.m. OK MS C++ TESTS 26 31 0 1000
66442592 vjudge5 B1 Dec. 7, 2019, 8:27 a.m. OK MS C++ TESTS 26 31 0 1000
66442642 vjudge4 B1 Dec. 7, 2019, 8:28 a.m. OK MS C++ TESTS 26 31 0 1000
66442806 vjudge5 B1 Dec. 7, 2019, 8:32 a.m. OK MS C++ TESTS 26 31 0 1000
66508326 vjudge5 B1 Dec. 8, 2019, 3:21 p.m. OK MS C++ TESTS 26 31 0 1000
68851967 DM1 B1 Jan. 15, 2020, 9:16 a.m. OK MS C++ TESTS 26 31 0 1000
64710464 redotter B1 Nov. 11, 2019, 6:26 p.m. OK MS C++ 2017 TESTS 26 30 0 1000
63460172 YanBee B1 Oct. 26, 2019, 11:40 a.m. OK MS C++ 2017 TESTS 26 30 307200 1000
65151118 KulHatsker B1 Nov. 16, 2019, 7:32 a.m. OK MS C++ 2017 TESTS 26 31 0 1000
65131139 MT_07 B1 Nov. 16, 2019, 3:20 a.m. OK MS C++ 2017 TESTS 26 31 0 1000
65031515 Puddle B1 Nov. 15, 2019, 10:05 a.m. OK MS C++ 2017 TESTS 26 31 0 1000
64423191 kara4ik B1 Nov. 6, 2019, 6:21 p.m. OK MS C++ 2017 TESTS 26 31 0 1000
64400001 BorONE B1 Nov. 6, 2019, 4:08 p.m. OK MS C++ 2017 TESTS 26 31 0 1000
63481541 Egoryu B1 Oct. 26, 2019, 12:52 p.m. OK MS C++ 2017 TESTS 26 31 0 1000
63648392 Karimbz B1 Oct. 28, 2019, 10:35 a.m. OK MS C++ 2017 TESTS 26 31 0 1000
65753423 parampamparam B1 Nov. 26, 2019, 1:59 p.m. OK MS C++ 2017 TESTS 26 31 0 1000
63495002 Pocepko B1 Oct. 26, 2019, 3:19 p.m. OK PascalABC.NET TESTS 26 311 1228800 1000
63478794 HiterretiH B1 Oct. 26, 2019, 12:41 p.m. OK PascalABC.NET TESTS 26 312 102400 1000
63620461 Vodim B1 Oct. 27, 2019, 10:28 p.m. OK PascalABC.NET TESTS 26 327 102400 1000
63477992 xhhmylxrd B1 Oct. 26, 2019, 12:38 p.m. OK PascalABC.NET TESTS 26 327 102400 1000
63464852 Gr1z B1 Oct. 26, 2019, 11:51 a.m. OK PascalABC.NET TESTS 26 327 204800 1000
63472760 Nikita_255 B1 Oct. 26, 2019, 12:16 p.m. OK PascalABC.NET TESTS 26 327 204800 1000
63468026 Pocepko B1 Oct. 26, 2019, noon OK PascalABC.NET TESTS 26 358 307200 1000
63463882 a.nasretdinov B1 Oct. 26, 2019, 11:49 a.m. OK PascalABC.NET TESTS 26 373 204800 1000
63461166 Kakoi-to-chelovechek B1 Oct. 26, 2019, 11:42 a.m. OK PascalABC.NET TESTS 26 373 21094400 1000
63470547 A-l_i-s_A-29 B1 Oct. 26, 2019, 12:09 p.m. OK PascalABC.NET TESTS 26 374 102400 1000
64539865 mayakin B1 Nov. 8, 2019, 6:14 p.m. OK PHP TESTS 26 46 0 1000
63615269 frostD B1 Oct. 27, 2019, 7:09 p.m. OK PyPy 2 TESTS 26 171 0 1000
63505185 vit_72 B1 Oct. 26, 2019, 6:28 p.m. OK PyPy 3 TESTS 26 139 0 1000
63480131 Roodie B1 Oct. 26, 2019, 12:47 p.m. OK PyPy 3 TESTS 26 139 1228800 1000
64630168 vlad_ka2003 B1 Nov. 10, 2019, 9:53 a.m. OK PyPy 3 TESTS 26 139 1228800 1000
63534410 SinitsynME B1 Oct. 27, 2019, 7:39 a.m. OK PyPy 3 TESTS 26 139 1228800 1000
63932911 mbolgov B1 Oct. 31, 2019, 2:49 p.m. OK PyPy 3 TESTS 26 140 0 1000
68236392 Freiden B1 Jan. 5, 2020, 11:07 a.m. OK PyPy 3 TESTS 26 140 0 1000
66672826 sruthi_1729 B1 Dec. 12, 2019, 10:05 a.m. OK PyPy 3 TESTS 26 140 0 1000
65314925 karasss B1 Nov. 18, 2019, 4:52 p.m. OK PyPy 3 TESTS 26 140 0 1000
64783953 kevinwinatamichael B1 Nov. 13, 2019, 8:25 a.m. OK PyPy 3 TESTS 26 140 0 1000
64764490 RalorSell B1 Nov. 12, 2019, 8:09 p.m. OK PyPy 3 TESTS 26 140 0 1000
63500975 Madhur1906 B1 Oct. 26, 2019, 5:11 p.m. OK Python 2 TESTS 26 202 0 1000
69688332 Deepanshu101 B1 Jan. 28, 2020, 5:46 p.m. OK Python 3 TESTS 26 109 0 1000
69046313 cs1g B1 Jan. 18, 2020, 11:09 a.m. OK Python 3 TESTS 26 109 0 1000
68951163 Ajay_Modi B1 Jan. 16, 2020, 6 p.m. OK Python 3 TESTS 26 109 0 1000
65545321 coproizvedenie B1 Nov. 22, 2019, 4:57 p.m. OK Python 3 TESTS 26 109 0 1000
64633219 Shades11 B1 Nov. 10, 2019, 10:49 a.m. OK Python 3 TESTS 26 109 0 1000
64176908 galim665 B1 Nov. 3, 2019, 9:28 p.m. OK Python 3 TESTS 26 109 0 1000
63963369 GolTwister B1 Nov. 1, 2019, 6:12 a.m. OK Python 3 TESTS 26 109 0 1000
63907541 Arseniy.T B1 Oct. 31, 2019, 7:05 a.m. OK Python 3 TESTS 26 109 0 1000
63776053 Mehrdad_ravenS B1 Oct. 30, 2019, 9:34 a.m. OK Python 3 TESTS 26 109 0 1000
63634307 atnas B1 Oct. 28, 2019, 7:37 a.m. OK Python 3 TESTS 26 109 0 1000
63624924 Black_Fregat B1 Oct. 28, 2019, 2:54 a.m. OK Rust TESTS 26 46 0 1000

remove filters

Back to search problems