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 15:13Joad 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 16, 2024 15:1300000Error: expected "1024890 ", got "1024935 "stderr
2Jun 16, 2024 15:1400000Error: expected "1024561 ", got "1024546 "stderr
3Jun 16, 2024 15:1400000Error: expected "1024739 ", got "1024639 "stderr
4Jun 16, 2024 15:1400000Error: expected "1025366 ", got "1025146 "stderr
5Jun 16, 2024 15:1400000Error: expected "1019852 ", got "1019760 "stderr
6Jun 16, 2024 15:1400000Error: expected "1024191 ", got "1024050 "stderr
7Jun 16, 2024 15:1400000Error: expected "1019456 ", got "1019439 "stderr
8Jun 16, 2024 15:1400000Error: expected "1017779 ", got "1017827 "stderr
9Jun 16, 2024 15:1400000Error: No answer to stdout. Died or killed?stderr
10Jun 16, 2024 15:1400000Error: expected "1026679 ", got "1026605 "stderr
11Jun 16, 2024 15:1400000Error: expected "1020236 ", got "1020272 "stderr
12Jun 16, 2024 15:1500000Error: expected "1020021 ", got "1020103 "stderr
13Jun 16, 2024 15:1500000Error: expected "1019332 ", got "1019338 "stderr
14Jun 16, 2024 15:1500000Error: expected "1025574 ", got "1025522 "stderr