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 16:22Bernard 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 16:2200000Error: expected "1023925 ", got "1023923"
2Aug 29, 2022 16:2200000Error: expected "1022376 ", got "1022375"
3Aug 29, 2022 16:224,729220,851,477156,065,38902,301,952
4Aug 29, 2022 16:224,753218,671,170156,846,44202,174,976
5Aug 29, 2022 16:224,756217,929,322156,953,58002,289,664
6Aug 29, 2022 16:224,782211,358,689157,791,35502,301,952
7Aug 29, 2022 16:224,790213,267,818158,081,44802,301,952
8Aug 29, 2022 16:224,802215,291,492158,482,04902,293,760
9Aug 29, 2022 16:224,810235,492,779158,722,33002,289,664
10Aug 29, 2022 16:224,813217,096,883158,821,63902,285,568
11Aug 29, 2022 16:224,813230,297,877158,828,31502,297,856