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 16, 2024 13:51matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 16, 2024 13:5100000Error: expected "1023728 ", got "1023727 "stderr
2Jun 16, 2024 13:5100000Error: expected "1020910 ", got "1020909 "stderr
3Jun 16, 2024 13:5200000Error: expected "1026122 ", got "1026119 "stderr
4Jun 16, 2024 13:5200000Error: expected "1022854 ", got "1022850 "stderr
5Jun 16, 2024 13:5300000Error: expected "1020240 ", got "1020238 "stderr
6Jun 16, 2024 13:5300000Error: expected "1025425 ", got "1025424 "stderr
7Jun 16, 2024 13:5400000Error: expected "1022938 ", got "1022937 "stderr
8Jun 16, 2024 13:5400000Error: expected "1025125 ", got "1025124 "stderr
9Jun 16, 2024 13:5500000Error: expected "1023188 ", got "1023185 "stderr
10Jun 16, 2024 13:5500000Error: expected "1025926 ", got "1025922 "stderr
11Jun 16, 2024 13:5600000Error: expected "1026531 ", got "1026529 "stderr