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 16, 2026 08:22M-RochatM-RochatError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 08:22033,778,09923,382,00002,113,536expected "1024299 ", got "repeat1=1605682 samples=999999:[nIXj]1000000:[w59ZpGR4yy3uTU]1018000:[e%wvXTiZfMcsn]1020000:[BOODM6FR4vS]1022000:[QXA]1048576:[Wf%aJcku@RlP9%N]2000000:[gj#] "
2May 16, 2026 08:22040,456,14831,871,00002,113,536expected "1020824 ", got "repeat1=2824777 samples=999999:[58Hq3zMXKLEFEr]1000000:[mIx4WK7X6LKswC]1018000:[JZll]1020000:[EbR]1022000:[3rcczMWw#a]1048576:[c0e]2000000:[84X9Wet38c21wV9] "
3May 16, 2026 08:22025,147,00916,409,00002,113,536expected "1019105 ", got "repeat1=588400 samples=999999:[AnbS]1000000:[Tt60bczy6KD#*]1018000:[zQLSx]1020000:[J@k2Y]1022000:[5VxXqm@1GEZ]1048576:[oF5V]2000000:[bZ6Ng] "