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 9, 2024 00:06Joad 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 9, 2024 00:0600000Error: expected "1020194 ", got "1020193 "stderr
2Jul 9, 2024 00:0700000Error: expected "1021859 ", got "1021857 "stderr
3Jul 9, 2024 00:0700000Error: expected "1025947 ", got "1025944 "stderr
4Jul 9, 2024 00:0700000Error: expected "1024623 ", got "1025822 "stderr
5Jul 9, 2024 00:0700000Error: expected "1026190 ", got "1026189 "stderr
6Jul 9, 2024 00:0700000Error: expected "1026124 ", got "1027333 "stderr
7Jul 9, 2024 00:0700000Error: expected "1019944 ", got "1019941 "stderr
8Jul 9, 2024 00:0700000Error: expected "1024259 ", got "1024258 "stderr
9Jul 9, 2024 00:0800000Error: expected "1024349 ", got "1024347 "stderr
10Jul 9, 2024 00:0800000Error: expected "1022620 ", got "1022616 "stderr
11Jul 9, 2024 00:0800000Error: expected "1021582 ", got "1021584 "stderr
12Jul 9, 2024 00:0800000Error: expected "1025023 ", got "1025021 "stderr