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 12:39Bernard 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 12:3900000Error: expected "1022844 ", got "1022843"
2Aug 29, 2022 12:3900000Error: expected "1022519 ", got "1022524"
3Aug 29, 2022 12:3910,427399,673,202344,100,00702,277,376
4Aug 29, 2022 12:3910,441397,382,085344,553,93502,285,568
5Aug 29, 2022 12:3910,471406,383,559345,552,25302,269,184
6Aug 29, 2022 12:3910,493404,237,860346,256,91902,281,472
7Aug 29, 2022 12:3910,496415,101,869346,381,34302,277,376
8Aug 29, 2022 12:3910,756426,705,015354,940,81102,277,376