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:30limanjun99limanjun99Error
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:300263,239,960229,361,00014,022,0002,523,136expected "1024319 ", got "1024319back:180213288,front:643834664,"
2Apr 26, 2026 07:300261,982,044228,774,00014,985,0002,523,136expected "1023059 ", got "1023059back:180783904,front:644207892,"
3Apr 26, 2026 07:300263,241,288230,238,00015,015,0002,514,944expected "1022029 ", got "1022029back:182180388,front:644479928,"