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 8, 2026 02:54anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 02:540203,480,619183,044,00011,170,0002,117,632expected "1018665 ", got "1018665 291507972 365995868 2506 169719 2066503 2311081 2321296 2306685 2331039 2299034 2325371 2305725 2320219 2308563 2331882 2303758 2296619 "
2Jun 8, 2026 02:540205,561,988184,757,00011,318,0002,117,632expected "1024755 ", got "1024755 292221012 371278556 2736 169472 2063649 2317799 2301803 2313608 2319132 2318399 2313093 2313113 2304570 2324047 2315382 2302763 2320434 "
3Jun 8, 2026 02:540206,226,207184,962,00011,424,0002,117,632expected "1024260 ", got "1024260 292671656 371722636 2513 169542 2056029 2300665 2331085 2315706 2312808 2318013 2303629 2310316 2320915 2307918 2313481 2304974 2332406 "