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 13:28Joad 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 13:3100000Error: expected "1022347 ", got "1022344 "stderr
2Jul 6, 2024 13:3100000Error: expected "1021863 ", got "1021862 "stderr
3Jul 6, 2024 13:3100000Error: expected "1021521 ", got "1021517 "stderr
4Jul 6, 2024 13:3100000Error: expected "1022491 ", got "1022489 "stderr
5Jul 6, 2024 13:3100000Error: expected "1018485 ", got "1018484 "stderr
6Jul 6, 2024 13:3100000Error: expected "1023453 ", got "1023448 "stderr
7Jul 6, 2024 13:3100000Error: expected "1018147 ", got "1018146 "stderr
8Jul 6, 2024 13:3100000Error: expected "1026279 ", got "1026278 "stderr
9Jul 6, 2024 13:3100000Error: expected "1020015 ", got "1020013 "stderr
10Jul 6, 2024 13:2800000Error: expected "1025132 ", got "1025130 "stderr
11Jul 6, 2024 13:3100000Error: expected "1026283 ", got "1026282 "stderr
12Jul 6, 2024 13:3100000Error: expected "1021472 ", got "1021470 "stderr
13Jul 6, 2024 13:3100000Error: expected "1022061 ", got "1022060 "stderr
14Jul 6, 2024 13:3000000Error: expected "1025772 ", got "1025771 "stderr
15Jul 6, 2024 13:3000000Error: expected "1024697 ", got "1024696 "stderr
16Jul 6, 2024 13:3000000Error: expected "1021730 ", got "1021729 "stderr
17Jul 6, 2024 13:3000000Error: expected "1023345 ", got "1023344 "stderr
18Jul 6, 2024 13:3000000Error: expected "1020154 ", got "1020153 "stderr