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 listDec 18, 2023 16:39matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2023 16:3900000Error: expected "1022842 ", got "1022839 "stderr
2Dec 19, 2023 05:0600000Error: expected "1021714 ", got "1021712 "stderr
3Dec 19, 2023 05:0600000Error: expected "1020836 ", got "1020834 "stderr
4Dec 19, 2023 05:0700000Error: expected "1021470 ", got "1021469 "stderr
5Dec 19, 2023 05:0700000Error: expected "1025062 ", got "1025060 "stderr