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 8, 2024 23:45Joad 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 8, 2024 23:4500000Error: No answer to stdout. Died or killed?stderr
2Jul 9, 2024 00:0500000Error: expected "1025058 ", got "1025056 "stderr
3Jul 8, 2024 23:453,734182,349,936123,216,44702,236,416
4Jul 8, 2024 23:453,740181,807,187123,418,62402,236,416
5Jul 8, 2024 23:453,789177,373,318125,052,35502,236,416