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 14:06Bernard 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 14:0600000Error: expected "1026761 ", got "1026760"
2Aug 29, 2022 14:066,271281,018,567206,951,26202,301,952
3Aug 29, 2022 14:066,751285,671,617222,792,73802,293,760
4Aug 29, 2022 14:066,764303,453,828223,211,76802,293,760
5Aug 29, 2022 14:066,787293,296,379223,974,65102,297,856
6Aug 29, 2022 14:066,835281,855,050225,560,72902,293,760
7Aug 29, 2022 14:066,917288,451,395228,264,36502,289,664