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 28, 2022 08:10Bernard 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 28, 2022 08:1000000Error: expected "1020168 ", got "1020167"
2Aug 28, 2022 08:1010,339394,464,915341,196,60502,260,992
3Aug 28, 2022 08:1010,342406,622,331341,287,57102,256,896
4Aug 28, 2022 08:1010,370402,061,548342,196,00002,252,800
5Aug 28, 2022 08:1010,400412,809,935343,201,43702,248,704
6Aug 28, 2022 08:1010,408401,726,596343,447,63702,240,512
7Aug 28, 2022 08:1010,459405,731,538345,130,50902,252,800