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 17, 2024 03:33matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2024 03:3300000Error: expected "1023095 ", got "1023093 0 0 244395049277458593 "stderr
2Jun 17, 2024 03:3400000Error: expected "1022048 ", got "1022046 0 0 108161297771675651 "stderr
3Jun 17, 2024 03:3400000Error: expected "1020315 ", got "1020313 0 0 432400539885634953 "stderr