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 29, 2022 13:19Bernard 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 29, 2022 13:1900000Error: expected "1021067 ", got "1021066"
2Aug 29, 2022 13:1910,450407,512,706344,863,48802,269,184
3Aug 29, 2022 13:1910,463408,324,839345,279,56302,269,184
4Aug 29, 2022 13:1910,489411,027,834346,144,52802,277,376
5Aug 29, 2022 13:1910,499422,175,146346,456,83702,281,472
6Aug 29, 2022 13:1910,568414,231,659348,740,07102,277,376
7Aug 29, 2022 13:1910,754435,332,807354,875,26102,277,376