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 11:08Bernard 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 11:0800000Error: expected "1026433 ", got "1026432"
2Aug 29, 2022 11:088,673336,461,745286,219,74102,289,664
3Aug 29, 2022 11:098,681354,466,969286,457,38902,289,664
4Aug 29, 2022 11:098,754358,242,353288,888,20002,289,664
5Aug 29, 2022 11:098,771358,434,226289,435,85402,293,760
6Aug 29, 2022 11:089,018362,819,370297,585,47302,293,760
7Aug 29, 2022 11:099,018356,607,543297,590,92202,289,664
8Aug 29, 2022 11:099,066379,636,200299,192,29902,301,952
9Aug 29, 2022 11:099,069362,727,461299,266,30302,297,856
10Aug 29, 2022 11:089,565387,961,923315,660,84402,289,664