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 17, 2024 18:05Joad 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 17, 2024 18:1000000Error: expected "1019288 ", got "1019284 "stderr
2Jun 17, 2024 18:1400000Error: expected "1023948 ", got "1023959 "stderr
3Jun 17, 2024 18:1400000Error: expected "1025888 ", got "1025887 "stderr
4Jun 17, 2024 18:1400000Error: expected "1019549 ", got "1019551 "stderr
5Jun 17, 2024 18:1400000Error: expected "1025639 ", got "1025655 "stderr
6Jun 17, 2024 18:1400000Error: expected "1022253 ", got "1022239 "stderr
7Jun 17, 2024 18:1400000Error: expected "1019192 ", got "1019186 "stderr
8Jun 17, 2024 18:1400000Error: expected "1025511 ", got "1025516 "stderr
9Jun 17, 2024 18:1000000Error: expected "1027229 ", got "1027215 "stderr
10Jun 17, 2024 18:0500000Error: expected "1019187 ", got "1019191 "stderr
11Jun 17, 2024 18:0900000Error: expected "1025518 ", got "1025513 "stderr
12Jun 17, 2024 18:0900000Error: expected "1019749 ", got "1019759 "stderr
13Jun 17, 2024 18:0900000Error: expected "1022035 ", got "1022026 "stderr
14Jun 17, 2024 18:0900000Error: No answer to stdout. Died or killed?stderr
15Jun 17, 2024 18:0900000Error: expected "1023272 ", got "1023270 "stderr
16Jun 17, 2024 18:0600000Error: expected "1022781 ", got "1022782 "stderr
17Jun 17, 2024 18:0600000Error: expected "1020767 ", got "1020776 "stderr
18Jun 17, 2024 18:0600000Error: expected "1020080 ", got "1020081 "stderr