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:19Bernard 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:1900000Error: expected "1019196 ", got "1019149"
2Aug 29, 2022 16:1900000Error: expected "1024092 ", got "1024038"
3Aug 29, 2022 16:1900000Error: expected "1019277 ", got "1019218"
4Aug 29, 2022 16:1900000Error: expected "1024595 ", got "1024550"
5Aug 29, 2022 16:1900000Error: expected "1022797 ", got "1022747"
6Aug 29, 2022 16:2000000Error: expected "1023278 ", got "1023240"
7Aug 29, 2022 16:2000000Error: expected "1020090 ", got "1020037"
8Aug 29, 2022 16:2000000Error: expected "1018938 ", got "1018906"
9Aug 29, 2022 16:2000000Error: expected "1018666 ", got "1018615"
10Aug 29, 2022 16:2000000Error: expected "1023876 ", got "1023818"
11Aug 29, 2022 16:2000000Error: expected "1018847 ", got "1018804"
12Aug 29, 2022 16:2000000Error: expected "1021437 ", got "1021387"