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 |
---|---|---|---|---|---|---|
1070 | 2018-2019 ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 191800499 | Oct. 20, 2018, 8:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3666 ) | H | BerOS File Suggestion | PROGRAMMING | brute force implementation | 1600 |
B'Polycarp is working on a new operating system called BerOS. He asks you to help with implementation of a file suggestion feature. There are n files on hard drive and their names are f_1, f_2, ... , f_n . Any file name contains between 1 and 8 characters, inclusive. All file names are unique. The file suggestion feature handles queries, each represented by a string s . For each query s it should count number of files containing s as a substring (i.e. some continuous segment of characters in a file name equals s ) and suggest any such file name. For example, if file names are "read.me", "hosts", "ops", and "beros.18", and the query is "os", the number of matched files is 2 (two file names contain "os" as a substring) and suggested file name can be either "hosts" or "beros.18". The first line of the input contains integer n ( 1 <= n <= 10000 ) -- the total number of files. The following n lines contain file names, one per line. The i -th line contains f_i -- the name of the i -th file. Each file name contains between 1 and 8 characters, inclusive. File names contain only lowercase Latin letters, digits and dot characters ( '. '). Any sequence of valid characters can be a file name (for example, in BerOS ".", ".." and "..." are valid file names). All file names are unique. The following line contains integer q ( 1 <= q <= 50000 ) -- the total number of queries. The following q lines contain queries s_1, s_2, ... , s_q , one per line. Each s_j has length between 1 and 8 characters, inclusive. It contains only lowercase Latin letters, digits and dot characters ( '. '). Print q lines, one per query. The j -th line should contain the response on the j -th query -- two values c_j and t_j , where '... |
Solution to problem M. Algoland and Berland of 2018-2019 ICPC, NEERC |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
44714043 | MrLolthe1st | H | Oct. 22, 2018, 8:23 p.m. | OK | GNU C11 | TESTS | 18 | 390 | 21708800 | 1600 | |
44591719 | searchstar | H | Oct. 20, 2018, 11:17 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 31129600 | 1600 | |
44724299 | ydnhaha | H | Oct. 23, 2018, 7:17 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 46387200 | 1600 | |
44581926 | _rqy | H | Oct. 20, 2018, 8:42 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 54681600 | 1600 | |
44584550 | ydnhaha 207M BriMon | H | Oct. 20, 2018, 9:14 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 57856000 | 1600 | |
44617396 | luogu_bot4 | H | Oct. 21, 2018, 3:13 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 57856000 | 1600 | |
44587699 | symkube Hi_archer zzy7 | H | Oct. 20, 2018, 10:04 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 71475200 | 1600 | |
44586862 | ghostfly233 PinkRabbit luhong | H | Oct. 20, 2018, 9:49 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 78950400 | 1600 | |
44582357 | naumazeredo | H | Oct. 20, 2018, 8:47 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 118169600 | 1600 | |
44751213 | ReaLNero1 | H | Oct. 23, 2018, 8:02 p.m. | OK | GNU C++11 | TESTS | 18 | 46 | 118169600 | 1600 | |
44592324 | npusjp bqq sosusosu | H | Oct. 20, 2018, 11:29 a.m. | OK | GNU C++11 | TESTS | 18 | 46 | 168448000 | 1600 | |
44582811 | zsyzsy yybyyb SYCstudio | H | Oct. 20, 2018, 8:52 a.m. | OK | GNU C++14 | TESTS | 18 | 46 | 137113600 | 1600 | |
44610433 | gerind | H | Oct. 20, 2018, 7:27 p.m. | OK | GNU C++14 | TESTS | 18 | 62 | 34611200 | 1600 | |
45430252 | vjudge1 | H | Nov. 8, 2018, 2:46 a.m. | OK | GNU C++14 | TESTS | 18 | 62 | 81510400 | 1600 | |
45961094 | HIT_Zero Waj kqwyf | H | Nov. 19, 2018, 11:41 a.m. | OK | GNU C++14 | TESTS | 18 | 62 | 84684800 | 1600 | |
44583913 | Nobel_ruettt I_love_ProParThinkNot tanus_era | H | Oct. 20, 2018, 9:05 a.m. | OK | GNU C++14 | TESTS | 18 | 62 | 120729600 | 1600 | |
45193030 | Amad3usSystem | H | Nov. 2, 2018, 4:33 a.m. | OK | GNU C++14 | TESTS | 18 | 77 | 11980800 | 1600 | |
45193005 | Amad3usSystem | H | Nov. 2, 2018, 4:32 a.m. | OK | GNU C++14 | TESTS | 18 | 77 | 11980800 | 1600 | |
45193154 | tuturuu | H | Nov. 2, 2018, 4:41 a.m. | OK | GNU C++14 | TESTS | 18 | 77 | 11980800 | 1600 | |
44593850 | Sandarsh harvey_specterr bansals888 | H | Oct. 20, 2018, 11:55 a.m. | OK | GNU C++14 | TESTS | 18 | 77 | 114483200 | 1600 | |
44582109 | calabash_boy Roundgod sy_chen | H | Oct. 20, 2018, 8:44 a.m. | OK | GNU C++14 | TESTS | 18 | 77 | 163328000 | 1600 | |
44588243 | fsshakkhor shahed_ahmed | H | Oct. 20, 2018, 10:14 a.m. | OK | GNU C++17 | TESTS | 18 | 61 | 34611200 | 1600 | |
45671372 | vjudge5 | H | Nov. 13, 2018, 10:51 a.m. | OK | GNU C++17 | TESTS | 18 | 61 | 87244800 | 1600 | |
44595160 | 2002chenhan | H | Oct. 20, 2018, 12:18 p.m. | OK | GNU C++17 | TESTS | 18 | 62 | 54681600 | 1600 | |
45069833 | mrz ec24 MarcosK | H | Oct. 29, 2018, 7:04 p.m. | OK | GNU C++17 | TESTS | 18 | 62 | 61952000 | 1600 | |
45193017 | Amad3usSystem | H | Nov. 2, 2018, 4:33 a.m. | OK | GNU C++17 | TESTS | 18 | 77 | 12492800 | 1600 | |
44596155 | Disappear 929558890 rzy_99 | H | Oct. 20, 2018, 12:34 p.m. | OK | GNU C++17 | TESTS | 18 | 92 | 9625600 | 1600 | |
44703517 | mango_lassi | H | Oct. 22, 2018, 3:47 p.m. | OK | GNU C++17 | TESTS | 18 | 93 | 8396800 | 1600 | |
44584025 | chengjian | H | Oct. 20, 2018, 9:07 a.m. | OK | GNU C++17 | TESTS | 18 | 93 | 19865600 | 1600 | |
46751278 | ZloyHR eXCore | H | Dec. 8, 2018, 9:19 a.m. | OK | GNU C++17 | TESTS | 18 | 108 | 203059200 | 1600 | |
45997893 | KrukovAA Kurt Sq1 | H | Nov. 20, 2018, 1:11 p.m. | OK | GNU C++17 | TESTS | 18 | 109 | 10342400 | 1600 | |
45683894 | Marii | H | Nov. 13, 2018, 4:52 p.m. | OK | Go | TESTS | 18 | 327 | 41472000 | 1600 | |
45683919 | Marii | H | Nov. 13, 2018, 4:53 p.m. | OK | Go | TESTS | 18 | 342 | 41369600 | 1600 | |
44593797 | fnch | H | Oct. 20, 2018, 11:54 a.m. | OK | Java 8 | TESTS | 18 | 249 | 16384000 | 1600 | |
44585463 | wadissimo | H | Oct. 20, 2018, 9:27 a.m. | OK | Java 8 | TESTS | 18 | 311 | 41369600 | 1600 | |
48021486 | SpargelTarzan | H | Jan. 6, 2019, 6:01 a.m. | OK | Java 8 | TESTS | 18 | 358 | 28774400 | 1600 | |
46539149 | kusomushi | H | Dec. 3, 2018, 10:58 a.m. | OK | Java 8 | TESTS | 18 | 358 | 37888000 | 1600 | |
44582497 | aminul Sherlock221B Alvee9 | H | Oct. 20, 2018, 8:48 a.m. | OK | Java 8 | TESTS | 18 | 405 | 27033600 | 1600 | |
45456555 | alibaba | H | Nov. 8, 2018, 7:38 p.m. | OK | Java 8 | TESTS | 18 | 405 | 27238400 | 1600 | |
44580321 | aviroop123 amnesiac_dusk ak_97 | H | Oct. 20, 2018, 8:25 a.m. | OK | Java 8 | TESTS | 18 | 405 | 28160000 | 1600 | |
51226321 | mashinist | H | March 12, 2019, 2:17 p.m. | OK | Java 8 | TESTS | 18 | 420 | 27852800 | 1600 | |
44591950 | di_halt | H | Oct. 20, 2018, 11:22 a.m. | OK | Java 8 | TESTS | 18 | 436 | 24268800 | 1600 | |
54389433 | Quan2202 | H | May 19, 2019, 3:17 p.m. | OK | Java 8 | TESTS | 18 | 451 | 27545600 | 1600 | |
46784831 | treasuryonly | H | Dec. 9, 2018, 5:41 a.m. | OK | Mono C# | TESTS | 18 | 186 | 25088000 | 1600 | |
46785334 | treasuryonly | H | Dec. 9, 2018, 6:02 a.m. | OK | Mono C# | TESTS | 18 | 202 | 29184000 | 1600 | |
46784849 | treasuryonly | H | Dec. 9, 2018, 5:42 a.m. | OK | Mono C# | TESTS | 18 | 202 | 29388800 | 1600 | |
44584620 | omikad | H | Oct. 20, 2018, 9:15 a.m. | OK | Mono C# | TESTS | 18 | 296 | 21708800 | 1600 | |
47358359 | DKosh | H | Dec. 22, 2018, 7:25 a.m. | OK | Mono C# | TESTS | 18 | 343 | 33894400 | 1600 | |
47002916 | daun1337 | H | Dec. 14, 2018, 12:31 p.m. | OK | Mono C# | TESTS | 18 | 358 | 36966400 | 1600 | |
64561783 | J_Duck | H | Nov. 9, 2019, 6:18 a.m. | OK | Mono C# | TESTS | 18 | 358 | 39833600 | 1600 | |
45401189 | eki | H | Nov. 7, 2018, 8:39 a.m. | OK | Mono C# | TESTS | 18 | 373 | 36966400 | 1600 | |
66680716 | igormaslov123 | H | Dec. 12, 2019, 1 p.m. | OK | Mono C# | TESTS | 18 | 374 | 33894400 | 1600 | |
66807277 | RockyFail | H | Dec. 13, 2019, 10:20 p.m. | OK | Mono C# | TESTS | 18 | 374 | 33996800 | 1600 | |
45502782 | scorpiowf | H | Nov. 10, 2018, 8:37 a.m. | OK | MS C++ | TESTS | 18 | 46 | 31232000 | 1600 | |
45205485 | sayefsakin | H | Nov. 2, 2018, 12:30 p.m. | OK | MS C++ | TESTS | 18 | 311 | 53043200 | 1600 | |
44926676 | dryush97 | H | Oct. 26, 2018, 8:31 p.m. | OK | MS C++ | TESTS | 18 | 358 | 31027200 | 1600 | |
44604840 | Timonnable | H | Oct. 20, 2018, 4:15 p.m. | OK | MS C++ | TESTS | 18 | 592 | 32563200 | 1600 | |
44622561 | CrashMaster | H | Oct. 21, 2018, 7:18 a.m. | OK | MS C++ | TESTS | 18 | 639 | 19251200 | 1600 | |
47027416 | SonZer0 | H | Dec. 15, 2018, 7:47 a.m. | OK | MS C++ | TESTS | 18 | 670 | 19660800 | 1600 | |
53864997 | vjudge2 | H | May 8, 2019, 2:33 a.m. | OK | MS C++ | TESTS | 18 | 670 | 25292800 | 1600 | |
53864406 | vjudge5 | H | May 8, 2019, 1:48 a.m. | OK | MS C++ | TESTS | 18 | 717 | 27136000 | 1600 | |
45057773 | vjudge1 | H | Oct. 29, 2018, 1:27 p.m. | OK | MS C++ | TESTS | 18 | 717 | 28569600 | 1600 | |
53863941 | vjudge1 | H | May 8, 2019, 1:11 a.m. | OK | MS C++ | TESTS | 18 | 732 | 27136000 | 1600 | |
44585723 | rsFalse | H | Oct. 20, 2018, 9:31 a.m. | OK | Perl | TESTS | 18 | 592 | 38092800 | 1600 | |
44613328 | mayakin | H | Oct. 20, 2018, 9:44 p.m. | OK | PHP | TESTS | 18 | 514 | 22630400 | 1600 | |
45223015 | c1729 | H | Nov. 2, 2018, 11:37 p.m. | OK | PyPy 2 | TESTS | 18 | 343 | 24268800 | 1600 | |
44586745 | pajenegod algmyr | H | Oct. 20, 2018, 9:47 a.m. | OK | PyPy 2 | TESTS | 18 | 701 | 26726400 | 1600 | |
44585906 | Pratik_2106 apoorv1999 gaurav007_ | H | Oct. 20, 2018, 9:34 a.m. | OK | PyPy 2 | TESTS | 18 | 1560 | 24985600 | 1600 | |
44580011 | test616.cpp | H | Oct. 20, 2018, 8:21 a.m. | OK | PyPy 2 | TESTS | 18 | 1684 | 29696000 | 1600 | |
44580900 | ManasG ak532 harshits2808 | H | Oct. 20, 2018, 8:30 a.m. | OK | PyPy 2 | TESTS | 18 | 1715 | 24985600 | 1600 | |
44583082 | pavankatta | H | Oct. 20, 2018, 8:55 a.m. | OK | PyPy 2 | TESTS | 18 | 1856 | 59801600 | 1600 | |
65642825 | GTrigger | H | Nov. 24, 2019, 9:06 a.m. | OK | PyPy 2 | TESTS | 18 | 1996 | 38195200 | 1600 | |
44750326 | qb2008 | H | Oct. 23, 2018, 7:23 p.m. | OK | PyPy 3 | TESTS | 18 | 545 | 40140800 | 1600 | |
45230362 | Firepaw | H | Nov. 3, 2018, 6:40 a.m. | OK | PyPy 3 | TESTS | 18 | 888 | 35532800 | 1600 | |
46254151 | K.Maksim.E | H | Nov. 26, 2018, 3:40 p.m. | OK | PyPy 3 | TESTS | 18 | 1013 | 21504000 | 1600 | |
44586798 | Pratik_2106 apoorv1999 gaurav007_ | H | Oct. 20, 2018, 9:48 a.m. | OK | PyPy 3 | TESTS | 18 | 1028 | 25804800 | 1600 | |
44583915 | Paixao majinboo | H | Oct. 20, 2018, 9:05 a.m. | OK | PyPy 3 | TESTS | 18 | 1060 | 26521600 | 1600 | |
50959871 | fireyyouth | H | March 7, 2019, 4:17 p.m. | OK | PyPy 3 | TESTS | 18 | 1076 | 41062400 | 1600 | |
57864949 | brosucks | H | July 27, 2019, 8:19 p.m. | OK | PyPy 3 | TESTS | 18 | 1091 | 32051200 | 1600 | |
59054890 | monotonical21 | H | Aug. 18, 2019, 6:33 p.m. | OK | PyPy 3 | TESTS | 18 | 1091 | 47308800 | 1600 | |
68316334 | latter0206 | H | Jan. 6, 2020, 1:21 p.m. | OK | PyPy 3 | TESTS | 18 | 1153 | 35328000 | 1600 | |
47807245 | HeyLaCC | H | Jan. 1, 2019, 8:22 a.m. | OK | PyPy 3 | TESTS | 18 | 1154 | 47718400 | 1600 | |
45386227 | kunalk | H | Nov. 6, 2018, 5:49 p.m. | OK | Python 2 | TESTS | 18 | 514 | 5222400 | 1600 | |
65643131 | GTrigger | H | Nov. 24, 2019, 9:08 a.m. | OK | Python 2 | TESTS | 18 | 607 | 41984000 | 1600 | |
48653364 | conjecture_xyz | H | Jan. 21, 2019, 12:30 a.m. | OK | Python 2 | TESTS | 18 | 670 | 27648000 | 1600 | |
44726783 | Rotolord | H | Oct. 23, 2018, 8:24 a.m. | OK | Python 3 | TESTS | 18 | 639 | 23040000 | 1600 | |
44683547 | WTY329 | H | Oct. 22, 2018, 8:07 a.m. | OK | Python 3 | TESTS | 18 | 732 | 43212800 | 1600 | |
45434591 | warchero | H | Nov. 8, 2018, 7:04 a.m. | OK | Python 3 | TESTS | 18 | 764 | 21811200 | 1600 | |
45676547 | tnowakow | H | Nov. 13, 2018, 1:23 p.m. | OK | Python 3 | TESTS | 18 | 795 | 21811200 | 1600 | |
44603919 | weizhao | H | Oct. 20, 2018, 3:48 p.m. | OK | Python 3 | TESTS | 18 | 810 | 43417600 | 1600 | |
44763352 | catch_up | H | Oct. 24, 2018, 8:26 a.m. | OK | Python 3 | TESTS | 18 | 826 | 21811200 | 1600 | |
44619500 | coderkrish | H | Oct. 21, 2018, 5:20 a.m. | OK | Python 3 | TESTS | 18 | 826 | 21811200 | 1600 | |
44582615 | tob123 fjuengermann Iriskinn | H | Oct. 20, 2018, 8:49 a.m. | OK | Python 3 | TESTS | 18 | 826 | 21811200 | 1600 | |
44658174 | Edwin99 | H | Oct. 21, 2018, 1:57 p.m. | OK | Python 3 | TESTS | 18 | 826 | 43417600 | 1600 | |
44600305 | unlucky_13 | H | Oct. 20, 2018, 2:03 p.m. | OK | Python 3 | TESTS | 18 | 841 | 22016000 | 1600 | |
46340840 | nikitoz | H | Nov. 28, 2018, 4:33 p.m. | OK | Rust | TESTS | 18 | 982 | 22118400 | 1600 | |
44587397 | nafeezabrar | H | Oct. 20, 2018, 9:58 a.m. | OK | Scala | TESTS | 18 | 1700 | 78950400 | 1600 | |
44577735 | H | Oct. 20, 2018, 7:34 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577666 | H | Oct. 20, 2018, 7:34 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577612 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577606 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577560 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577535 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577533 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577510 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577462 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 | ||
44577445 | H | Oct. 20, 2018, 7:33 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 1600 |
Back to search problems