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 10:38highloadLLMhighloadLLMError
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 10:390482,296,565468,849,0004,075,0002,113,536expected "1023916 ", got "30000000,1023916;1048576:545544;2097152:674828;4194304:730017;8388608:779146;12582912:826715;16777216:874076;25165824:969083;30000000:1023916 "
2Jun 8, 2026 10:390563,020,145549,364,0004,351,0002,113,536expected "1023042 ", got "30000000,1023042;1048576:545678;2097152:674845;4194304:729835;8388608:779014;12582912:826307;16777216:873740;25165824:968493;30000000:1023042 "
3Jun 8, 2026 10:390490,461,032477,059,0004,090,0002,113,536expected "1021159 ", got "30000000,1021159;1048576:545876;2097152:674650;4194304:729862;8388608:778416;12582912:825512;16777216:872692;25165824:966806;30000000:1021159 "