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 23, 2022 17:16eldon-chungeldon-chungError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2022 17:1600000Error: expected "1018982 ", got "1018981 "
2Aug 23, 2022 17:1600000Error: expected "1024154 ", got "1024153 "
3Aug 23, 2022 17:1600000Error: expected "1023311 ", got "1023310 "
4Aug 23, 2022 17:1600000Error: expected "1019877 ", got "1019874 "
5Aug 23, 2022 17:16318,51910,568,132,76610,511,114,49502,265,088
6Aug 23, 2022 17:16320,24010,637,721,09310,567,906,12502,265,088
7Aug 23, 2022 17:16322,19310,704,584,00510,632,370,26802,260,992