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 listFeb 17, 2023 21:01LiamLiamError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 17, 2023 21:0000000Error: expected "1021265 ", got "1021264 "
2Feb 17, 2023 21:0185,2662,882,016,8312,813,761,85802,306,048
3Feb 17, 2023 21:0185,5472,888,187,3152,823,059,65802,310,144
4Feb 17, 2023 21:0185,7662,901,157,3702,830,293,51802,297,856