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 listJun 7, 2026 18:28anboto1anboto1Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 18:29010,459,9091,477,00002,125,824expected "1024529 ", got "fds: 0=/mnt/hldata/data2811038851 1=/mnt/hldata/got18400759 2=pipe:[6810595] env: read: "
2Jun 7, 2026 18:29010,922,0711,501,00002,125,824expected "1026027 ", got "fds: 0=/mnt/hldata/data3479238654 1=/mnt/hldata/got56257302 2=pipe:[6810699] env: read: "
3Jun 7, 2026 18:29010,472,1951,491,00002,125,824expected "1024330 ", got "fds: 0=/mnt/hldata/data2289207514 1=/mnt/hldata/got875680564 2=pipe:[6810803] env: read: "