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 listSep 8, 2024 13:53matsuoka-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
1Sep 8, 2024 13:5300000Error: expected "1020803 ", got "1020802 "stderr
2Sep 8, 2024 13:5400000Error: expected "1021336 ", got "1021335 "stderr
3Sep 8, 2024 13:5700000Error: expected "1022480 ", got "1022479 "stderr
4Sep 8, 2024 14:0200000Error: expected "1022791 ", got "1022790 "stderr
5Sep 8, 2024 14:0700000Error: expected "1023823 ", got "1023822 "stderr