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 listApr 26, 2026 05:54limanjun99limanjun99Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 05:540359,242,127274,507,00066,879,0002,297,856expected "1019652 ", got "1019652back:183079700,front:1000161464,"
2Apr 26, 2026 05:540361,286,856269,243,00074,066,0002,527,232expected "1018901 ", got "1018901back:181912196,front:1006602740,"
3Apr 26, 2026 05:540361,450,142272,063,00072,016,0002,539,520expected "1024091 ", got "1024091back:182993656,front:1004590052,"