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 listDec 17, 2022 14:32Franek KortaFranek KortaError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2022 14:3100000Error: expected "1018714 ", got "1018713"stderr
2Dec 17, 2022 14:3220,903756,058,029689,808,09602,215,936
3Dec 17, 2022 14:3220,909758,187,854689,988,37002,215,936
4Dec 17, 2022 14:3220,948747,991,502691,296,63302,220,032
5Dec 17, 2022 14:3220,953749,675,431691,461,38002,220,032
6Dec 17, 2022 14:3220,974748,840,470692,141,57802,215,936
7Dec 17, 2022 14:3221,060756,962,136694,984,65002,203,648