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 listOct 2, 2024 17:42Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2024 17:4200000Error: expected "1023707 ", got "1023999 "stderr
2Oct 2, 2024 17:424,976190,681,540149,196,00015,019,0002,330,624
3Oct 2, 2024 17:434,996186,420,571150,887,00013,989,0002,375,680
4Oct 2, 2024 17:425,001192,112,512152,043,00013,003,0002,457,600
5Oct 2, 2024 17:425,023186,674,505151,777,00013,979,0002,293,760
6Oct 2, 2024 17:435,085196,299,519153,833,00013,984,0002,338,816
7Oct 2, 2024 17:425,097196,774,301155,195,00013,016,0002,473,984
8Oct 2, 2024 17:425,098193,815,939154,227,00014,020,0002,326,528
9Oct 2, 2024 17:425,423205,751,478167,952,00010,996,0002,330,624
10Oct 2, 2024 17:435,427204,277,912164,086,00015,007,0002,330,624