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 |
|---|---|---|---|---|---|---|
| 2041 | 2024 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams) | FINISHED | False | 18000 | 43973723 | Nov. 24, 2024, 7:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 671 ) | I | Auto Complete | PROGRAMMING | data structures implementation sortings strings trees |
You are designing a snazzy new text editor, and you want to add a nifty auto-complete feature to help users save time. Here is how it will work: if a user types " App ", your editor will magically suggest the word " Application "! Even better, users can personalize the words that auto-complete in your editor. Your editor will support 4 kinds of operations (Let's say the current text in your editor is (t)): Add an auto complete pattern (p_i). Delete an auto complete pattern (p_i). Append a string (s) to the end of (t). Delete (c) characters from the end of (t). Note that if (c) is larger then the length of (t), delete all the characters from (t). After each action, your editor should suggest an auto-complete candidate (i) that matches the following criteria: The string (p_i) has a prefix equal to (t). If there are multiple (p_i), pick the longest one. If there are still multiple (p_i), pick the one with the smallest lexicographic order. If there are still multiple (p_i), pick the one with the smallest ID. For example, let us say we have three candidates: " alice ", " bob ", and " charlie ", with ID 1, 2, and 3. At first, there is nothing on the screen, so " charlie " (3) should be suggested because it is the longest. Then, let us say the user types " b ". You should suggest " bob " (2) because it is the only one that starts with " b ". Finally, let us say the user type " body ". You should print -1 because there is no matched pattern. The first line contains an integer (n), followed by (n) lines, with each line containing an action. There are four types of actions: (i) (p_i) (i) (s) (c) (1 \leq n \leq 10^6) The total number of characters in all (p_i) and (s) does not exceed (2\times 10^6). (1 \leq c \leq 2\times 10^6) The strings (p_i) and (s) may contain any printable characters, excluding all space characters (ASCII number in the range f |
| Problem Analysis and Hints (PDF) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 293082440 | baka24 A2_Chaos BoBoNutAKHua | I | Nov. 24, 2024, 11:15 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 608 | 326144000 | ||
| 293072670 | caterpillow AnsonWong Matthewwww | I | Nov. 24, 2024, 10:04 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 827 | 304640000 | ||
| 293074881 | xcyyyyyy lhzawa 11d10xy | I | Nov. 24, 2024, 10:21 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 921 | 835686400 | ||
| 293060804 | JDScript0117 | I | Nov. 24, 2024, 9:29 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 952 | 827699200 | ||
| 293046974 | Huy_inIT lamduybao03 canhnam357 | I | Nov. 24, 2024, 7:56 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 953 | 896000000 | ||
| 293080947 | binhtranmcs congthanh123 | I | Nov. 24, 2024, 11:05 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 967 | 898560000 | ||
| 293046845 | kradcigam Xun_Xiaoyao no_dream | I | Nov. 24, 2024, 7:55 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 984 | 272281600 | ||
| 293071686 | merom | I | Nov. 24, 2024, 9:56 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 984 | 300544000 | ||
| 293083359 | q1w2e3r4_1 | I | Nov. 24, 2024, 11:21 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 984 | 872448000 | ||
| 293057172 | RUSH_D_CAT limbo.null NecroSean38 | I | Nov. 24, 2024, 9:06 a.m. | OK | C++17 (GCC 7-32) | TESTS | 17 | 999 | 1050931200 | ||
| 293079658 | ganeid | I | Nov. 24, 2024, 10:56 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 421 | 326246400 | ||
| 293072532 | Eason9002 wtc yanzihe | I | Nov. 24, 2024, 10:03 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 499 | 486604800 | ||
| 293077417 | luckyzfy TomHUang caidx233 | I | Nov. 24, 2024, 10:40 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 515 | 304230400 | ||
| 293049083 | JoeyJ liyelin KevinLikesCoding | I | Nov. 24, 2024, 8:11 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 530 | 466841600 | ||
| 293048262 | Hanghang007 H_W_Y Meatherm | I | Nov. 24, 2024, 8:05 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 687 | 390041600 | ||
| 293165259 | liujg | I | Nov. 25, 2024, 2:52 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 702 | 341299200 | ||
| 293071283 | magnified HollwoQ_Pelw TrungNotChung | I | Nov. 24, 2024, 9:53 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 703 | 533606400 | ||
| 293071651 | JueFan GS256 Anonyme | I | Nov. 24, 2024, 9:56 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 733 | 896102400 | ||
| 293060259 | min_inf KnownError_ LuoTianyi_Unofficial | I | Nov. 24, 2024, 9:26 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 796 | 608972800 | ||
| 293058738 | Kinon Pyqe | I | Nov. 24, 2024, 9:16 a.m. | OK | C++20 (GCC 13-64) | TESTS | 17 | 827 | 516608000 | ||
| 293171451 | Ion_Gravirei | I | Nov. 25, 2024, 4:46 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 436 | 212070400 | ||
| 293055443 | penguinman yuto1115 Wailydest | I | Nov. 24, 2024, 8:56 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 436 | 212070400 | ||
| 293080006 | miaplays | I | Nov. 24, 2024, 10:58 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 639 | 167628800 | ||
| 293053675 | bthero ArsenGotov | I | Nov. 24, 2024, 8:43 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 859 | 651878400 | ||
| 293150261 | GoogleBot | I | Nov. 24, 2024, 8:45 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 874 | 464793600 | ||
| 293074891 | AppealSin 4qqqq neohacker | I | Nov. 24, 2024, 10:21 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 890 | 502784000 | ||
| 293081136 | I_Love_Sonechka | I | Nov. 24, 2024, 11:06 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 890 | 505036800 | ||
| 293084550 | Terrxzy teafrogsf qlwpc | I | Nov. 24, 2024, 11:29 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 890 | 1066496000 | ||
| 293066502 | Pakpim IceBorworntat ttamx | I | Nov. 24, 2024, 9:39 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 921 | 473088000 | ||
| 293074355 | limbo16 Igor_Parfenov Vectors_Master | I | Nov. 24, 2024, 10:17 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 17 | 952 | 524185600 | ||
| 293018888 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018735 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018695 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018631 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018553 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018478 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018438 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018433 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018402 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | |||
| 293018385 | I | Nov. 24, 2024, 1:17 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 |
Back to search problems