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 listJun 17, 2024 17:57Joad 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
1Jun 17, 2024 17:5700000Error: expected "1026498 ", got "1026424 "stderr
2Jun 17, 2024 17:5800000Error: expected "1022385 ", got "1022297 "stderr
3Jun 17, 2024 17:5900000Error: expected "1025169 ", got "1025100 "stderr
4Jun 17, 2024 17:5900000Error: expected "1023104 ", got "1023025 "stderr
5Jun 17, 2024 17:5900000Error: expected "1024194 ", got "1024124 "stderr
6Jun 17, 2024 17:5900000Error: expected "1020562 ", got "1020489 "stderr
7Jun 17, 2024 17:5900000Error: expected "1020239 ", got "1020157 "stderr
8Jun 17, 2024 17:5900000Error: expected "1023473 ", got "1023398 "stderr
9Jun 17, 2024 17:5900000Error: expected "1026454 ", got "1026384 "stderr
10Jun 17, 2024 17:5900000Error: expected "1021531 ", got "1021439 "stderr
11Jun 17, 2024 17:5900000Error: expected "1021909 ", got "1021855 "stderr
12Jun 17, 2024 17:5900000Error: expected "1024694 ", got "1024634 "stderr