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 7, 2024 10: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
1Jul 7, 2024 10:1800000Error: expected "1020573 ", got "1020571 "stderr
2Jul 8, 2024 23:2100000Error: expected "1025310 ", got "1025309 "stderr
3Jul 8, 2024 23:1300000Error: expected "1026144 ", got "1026143 "stderr
4Jul 7, 2024 10:2200000Error: expected "1019043 ", got "1019041 "stderr
5Jul 7, 2024 10:2000000Error: expected "1021616 ", got "1021615 "stderr
6Jul 7, 2024 10:2000000Error: expected "1019513 ", got "1019509 "stderr
7Jul 7, 2024 10:2000000Error: expected "1020841 ", got "1020838 "stderr
8Jul 7, 2024 10:1900000Error: expected "1025332 ", got "1025331 "stderr
9Jul 7, 2024 10:1800000Error: expected "1024724 ", got "1024722 "stderr
10Jul 7, 2024 10:1800000Error: expected "1025492 ", got "1025491 "stderr
11Jul 7, 2024 10:1800000Error: expected "1020751 ", got "1020748 "stderr
12Jul 7, 2024 10:1800000Error: expected "1025521 ", got "1025520 "stderr
13Jul 7, 2024 10:1800000Error: expected "1020067 ", got "1020064 "stderr
14Jul 7, 2024 10:1800000Error: expected "1020688 ", got "1020687 "stderr
15Jul 7, 2024 10:1800000Error: expected "1024671 ", got "1024670 "stderr
16Jul 7, 2024 10:1600000Error: expected "1019337 ", got "1019334 "stderr
17Jul 7, 2024 10:1600000Error: expected "1022250 ", got "1022249 "stderr
18Jul 7, 2024 10:1600000Error: expected "1023594 ", got "1023592 "stderr
19Jul 7, 2024 10:1600000Error: expected "1024679 ", got "1024676 "stderr
20Jul 7, 2024 10:1600000Error: expected "1025517 ", got "1025516 "stderr
21Jul 7, 2024 10:1600000Error: expected "1019646 ", got "1019645 "stderr
22Jul 7, 2024 10:1600000Error: expected "1022066 ", got "1022064 "stderr
23Jul 7, 2024 10:1500000Error: expected "1019509 ", got "1019507 "stderr
24Jul 7, 2024 10:1500000Error: expected "1018432 ", got "1018429 "stderr
25Jul 7, 2024 10:1400000Error: expected "1020189 ", got "1020186 "stderr
26Jul 7, 2024 10:1300000Error: expected "1022510 ", got "1022509 "stderr
27Jul 7, 2024 10:193,988193,362,566131,597,28402,367,488
28Jul 7, 2024 10:194,100206,107,192135,291,61102,236,416
29Jul 7, 2024 10:194,117209,833,436135,860,03402,359,296