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 27, 2024 09:48Joad 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 27, 2024 09:4800000Error: expected "1025107 ", got "1025104 "stderr
2Jul 27, 2024 10:5900000Error: No answer to stdout. Died or killed?stderr
3Jul 27, 2024 10:5900000Error: expected "1021331 ", got "1021330 "stderr
4Aug 31, 2024 16:4600000Error: expected "1018483 ", got "1018481 "stderr
5Aug 31, 2024 16:4900000Error: expected "1019121 ", got "1019118 "stderr
6Sep 3, 2024 18:5700000Error: expected "1021444 ", got "1021441 "stderr