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 07:58matsuoka-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 9, 2024 08:1500000Error: expected "1021152 ", got "1021151 "stderr
2Jul 9, 2024 08:3500000Error: expected "1021932 ", got "1021929 "stderr
3Jul 9, 2024 08:3500000Error: expected "1023722 ", got "1023721 "stderr
4Jul 9, 2024 08:3500000Error: expected "1025612 ", got "1025611 "stderr
5Jul 9, 2024 08:3500000Error: expected "1024785 ", got "1024786 "stderr
6Jul 9, 2024 08:3500000Error: expected "1025875 ", got "1025874 "stderr
7Jul 9, 2024 08:3100000Error: expected "1021006 ", got "1021005 "stderr
8Jul 9, 2024 08:3100000Error: expected "1026233 ", got "1026234 "stderr
9Jul 9, 2024 08:3100000Error: expected "1019909 ", got "1019910 "stderr
10Jul 9, 2024 08:3100000Error: expected "1024280 ", got "1024279 "stderr
11Jul 9, 2024 08:1600000Error: expected "1026539 ", got "1026540 "stderr
12Jul 9, 2024 07:5800000Error: expected "1025828 ", got "1025827 "stderr
13Jul 9, 2024 08:1300000Error: expected "1019151 ", got "1019150 "stderr
14Jul 9, 2024 08:1200000Error: expected "1021993 ", got "1021994 "stderr
15Jul 9, 2024 08:1200000Error: expected "1022479 ", got "1022477 "stderr
16Jul 9, 2024 08:1100000Error: expected "1019275 ", got "1019276 "stderr
17Jul 9, 2024 08:1100000Error: expected "1024528 ", got "1024526 "stderr
18Jul 9, 2024 08:1100000Error: expected "1021177 ", got "1021178 "stderr
19Jul 9, 2024 08:1100000Error: expected "1025226 ", got "1025224 "stderr
20Jul 9, 2024 07:5900000Error: expected "1026622 ", got "1026623 "stderr
21Jul 9, 2024 07:5900000Error: expected "1019414 ", got "1019415 "stderr
22Jul 9, 2024 07:5800000Error: expected "1025701 ", got "1025700 "stderr