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 31, 2022 16:38Bernard 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 31, 2022 16:3800000Error: expected "1021056 ", got "1021055"
2Aug 31, 2022 16:3800000Error: expected "1022366 ", got "1022365"
3Aug 31, 2022 16:3900000Error: expected "1018284 ", got "1018282"
4Aug 31, 2022 16:383,357193,261,348110,774,17502,289,664
5Aug 31, 2022 16:383,359168,804,446110,844,95502,297,856
6Aug 31, 2022 16:383,370182,834,072111,196,40402,297,856
7Aug 31, 2022 16:383,373179,584,608111,303,77802,297,856
8Aug 31, 2022 16:383,386171,878,457111,735,43902,306,048
9Aug 31, 2022 16:383,388177,985,209111,793,43802,289,664
10Aug 31, 2022 16:383,406175,267,106112,396,56102,293,760
11Aug 31, 2022 16:383,416180,286,652112,715,56602,293,760
12Aug 31, 2022 16:383,427172,771,466113,079,68002,301,952