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 listAug 25, 2022 16:29Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 25, 2022 16:2900000Error: expected "1026149 ", got "1026148"
2Aug 25, 2022 16:2913,137493,387,486433,516,88202,281,472
3Aug 25, 2022 16:2913,191505,136,115435,295,41002,285,568
4Aug 25, 2022 16:2913,203500,806,583435,685,13102,281,472
5Aug 25, 2022 16:2913,230506,920,588436,589,91402,277,376
6Aug 25, 2022 16:2913,247497,228,627437,144,27402,285,568
7Aug 25, 2022 16:2913,374497,182,545441,349,57202,281,472