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 07:45limanjun99limanjun99Error
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 07:450251,406,641213,162,00014,010,0002,519,040expected "1022545 ", got "1022545back:180329340,front:585406472,"
2Apr 26, 2026 07:450249,606,169213,405,00015,028,0002,519,040expected "1020776 ", got "1020776back:180629852,front:586147408,"
3Apr 26, 2026 07:450247,109,740212,810,00015,985,0002,322,432expected "1025522 ", got "1025522back:180925032,front:586508040,"