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 listMay 28, 2024 22:38Joad 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
1May 28, 2024 22:3800000Error: expected "1025294 ", got "1025320 "
2May 28, 2024 22:3800000Error: expected "1024729 ", got "1024714 "
3May 28, 2024 22:3800000Error: expected "1022455 ", got "1022484 "
4May 28, 2024 22:3800000Error: expected "1021806 ", got "1021805 "
5May 28, 2024 22:3800000Error: expected "1020388 ", got "1020407 "
6May 28, 2024 22:3800000Error: expected "1024585 ", got "1024574 "
7May 28, 2024 22:3800000Error: expected "1022253 ", got "1022274 "
8May 28, 2024 22:3800000Error: expected "1022671 ", got "1022686 "
9May 28, 2024 22:3800000Error: expected "1025596 ", got "1025617 "
10May 28, 2024 22:3900000Error: No answer to stdout. Died or killed?
11May 28, 2024 22:3900000Error: expected "1026498 ", got "1026468 "