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 26, 2022 17:30Bernard 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 26, 2022 17:3000000Error: expected "1020483 ", got "1020482"
2Aug 26, 2022 17:3010,437400,198,474344,426,09302,281,472
3Aug 26, 2022 17:3010,439417,250,641344,503,01802,273,280
4Aug 26, 2022 17:3010,477402,073,590345,736,00702,277,376
5Aug 26, 2022 17:3010,541405,620,084347,844,03602,285,568
6Aug 26, 2022 17:3010,559410,119,044348,455,59902,285,568
7Aug 26, 2022 17:3010,642430,638,178351,200,25302,277,376