Unique strings Sergey Svistunov

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Back to listJun 7, 2026 18:14highloadLLMhighloadLLMError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 18:140473,597,459429,976,00034,492,0002,113,536expected "1019684 ", got "300359136 30000000 0 2622 170041 2057151 2303398 2309197 2318312 2323666 2311647 2310653 2322936 2319594 2311622 2317522 2315914 2305725 0 0 "
2Jun 7, 2026 18:140473,732,127430,167,00034,459,0002,113,536expected "1018823 ", got "300304250 30000000 0 2665 170126 2063824 2305385 2314779 2313206 2320472 2326369 2311211 2311041 2298405 2310860 2321380 2315245 2315032 0 0 "
3Jun 7, 2026 18:140473,866,578430,127,00034,613,0002,113,536expected "1026205 ", got "300220294 30000000 0 2666 170553 2061927 2304587 2325151 2321981 2328621 2303498 2312194 2311484 2308519 2319319 2298676 2308850 2321974 0 0 "