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 listJul 6, 2024 13:01Joad 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
1Jul 6, 2024 13:0100000Error: expected "1019100 ", got "1019098 "stderr
2Jul 6, 2024 13:0200000Error: No answer to stdout. Died or killed?stderr
3Jul 6, 2024 13:025,860269,168,059193,395,44502,211,840
4Jul 6, 2024 13:025,871252,848,030193,735,51602,215,936
5Jul 6, 2024 13:025,889252,935,503194,335,82402,220,032