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 listMay 13, 2026 18:34Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2026 18:3504,250,530,4384,161,947,00077,864,0002,121,728expected "1020394 ", got "1020393 "stderr
2May 13, 2026 18:35126,4214,180,932,3874,090,973,00080,948,0002,121,728stderr
3May 13, 2026 18:35126,8224,194,553,3154,103,336,00081,821,0002,121,728stderr
4May 13, 2026 18:35127,1204,203,900,3464,116,114,00078,856,0002,121,728stderr
5May 13, 2026 18:35127,3904,213,273,3634,124,286,00079,588,0002,121,728stderr
6May 13, 2026 18:35127,7864,226,957,5604,138,059,00078,884,0002,121,728stderr
7May 13, 2026 18:35129,1964,272,727,4974,182,300,00081,200,0002,121,728stderr
8May 13, 2026 18:35129,3284,276,576,5784,187,814,00080,033,0002,121,728stderr
9May 13, 2026 18:35134,2194,439,783,3964,349,736,00079,519,0002,121,728stderr