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:50limanjun99limanjun99Error
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:500325,175,055290,684,00014,983,0002,342,912expected "1025447 ", got "1025447back:462563164,front:585460460,"
2Apr 26, 2026 07:500326,845,873293,147,00014,007,0002,523,136expected "1026397 ", got "1026396back:466963516,front:586149916,"
3Apr 26, 2026 07:500321,492,171289,791,00014,989,0002,519,040expected "1018470 ", got "1018470back:453608220,front:586760436,"