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 8, 2024 15:49matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2024 15:5400000Error: expected "1023780 ", got "1023779 "stderr
2Jul 8, 2024 16:3800000Error: expected "1025808 ", got "1025806 "stderr
3Jul 8, 2024 16:3800000Error: expected "1018683 ", got "1018681 "stderr
4Jul 8, 2024 15:5700000Error: expected "1024752 ", got "1024751 "stderr
5Jul 8, 2024 15:5600000Error: expected "1019528 ", got "1019526 "stderr
6Jul 8, 2024 15:5600000Error: expected "1018646 ", got "1018644 "stderr
7Jul 8, 2024 15:5500000Error: expected "1022954 ", got "1022953 "stderr
8Jul 8, 2024 15:5500000Error: expected "1024697 ", got "1024696 "stderr
9Jul 8, 2024 15:5400000Error: expected "1024687 ", got "1024682 "stderr
10Jul 8, 2024 15:4900000Error: expected "1022381 ", got "1022380 "stderr
11Jul 8, 2024 15:5300000Error: expected "1024950 ", got "1024948 "stderr
12Jul 8, 2024 15:5300000Error: expected "1020072 ", got "1020068 "stderr
13Jul 8, 2024 15:5200000Error: expected "1024437 ", got "1024434 "stderr
14Jul 8, 2024 15:5200000Error: expected "1020892 ", got "1020890 "stderr
15Jul 8, 2024 15:5100000Error: expected "1022482 ", got "1022479 "stderr
16Jul 8, 2024 15:5100000Error: expected "1024377 ", got "1024375 "stderr
17Jul 8, 2024 15:5000000Error: expected "1022063 ", got "1022060 "stderr
18Jul 8, 2024 15:4900000Error: expected "1025304 ", got "1025302 "stderr