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 20:41Joad 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 20:4100000Error: expected "1022004 ", got "1021939 "stderr
2Jul 6, 2024 20:4100000Error: expected "1022329 ", got "1022327 "stderr
3Jul 6, 2024 20:4100000Error: expected "1020450 ", got "1020448 "stderr
4Jul 6, 2024 20:4100000Error: expected "1020370 ", got "1020369 "stderr
5Jul 6, 2024 20:4100000Error: expected "1024059 ", got "1024058 "stderr
6Jul 6, 2024 20:4100000Error: expected "1019831 ", got "1019742 "stderr
7Jul 6, 2024 20:4100000Error: expected "1024001 ", got "1024000 "stderr
8Jul 6, 2024 20:4100000Error: expected "1025295 ", got "1025293 "stderr
9Jul 6, 2024 20:4100000Error: expected "1020481 ", got "1020389 "stderr
10Jul 6, 2024 20:4200000Error: expected "1021822 ", got "1021808 "stderr
11Jul 6, 2024 20:4500000Error: expected "1023999 ", got "1023906 "stderr
12Jul 6, 2024 20:4500000Error: expected "1021209 ", got "1021207 "stderr