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:00Bernard 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:0000000Error: expected "1025151 ", got "1025150"
2Aug 25, 2022 16:0010,518425,246,967347,082,30902,281,472
3Aug 25, 2022 16:0110,526424,149,694347,346,58302,285,568
4Aug 25, 2022 16:0010,547420,444,738348,061,48502,289,664
5Aug 25, 2022 16:0110,567422,474,733348,714,52702,281,472
6Aug 25, 2022 16:0010,582401,529,362349,208,61302,277,376
7Aug 25, 2022 16:0110,598413,032,769349,742,04502,289,664