Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

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 23, 2024 18:01Joad 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 23, 2024 18:0700000Error: expected "1020129 ", got "1020128 "stderr
2Jul 23, 2024 18:0900000Error: expected "1021873 ", got "1021872 "stderr
3Jul 23, 2024 18:0900000Error: expected "1018802 ", got "1018801 "stderr
4Jul 23, 2024 18:0900000Error: expected "1023029 ", got "1023026 "stderr
5Jul 23, 2024 18:0900000Error: expected "1025098 ", got "1025097 "stderr
6Jul 23, 2024 18:0900000Error: expected "1025581 ", got "1025579 "stderr
7Jul 23, 2024 18:0800000Error: expected "1024317 ", got "1024315 "stderr
8Jul 23, 2024 18:0800000Error: expected "1025191 ", got "1025189 "stderr
9Jul 23, 2024 18:0800000Error: expected "1019907 ", got "1019906 "stderr
10Jul 23, 2024 18:0800000Error: expected "1023749 ", got "1023747 "stderr
11Jul 23, 2024 18:0800000Error: expected "1021537 ", got "1021536 "stderr
12Jul 23, 2024 18:0700000Error: expected "1024571 ", got "1024570 "stderr
13Jul 23, 2024 18:0700000Error: expected "1027313 ", got "1027311 "stderr
14Jul 23, 2024 18:0700000Error: expected "1025788 ", got "1025787 "stderr
15Jul 23, 2024 18:0600000Error: expected "1023347 ", got "1023346 "stderr
16Jul 23, 2024 18:0500000Error: expected "1023036 ", got "1023035 "stderr
17Jul 23, 2024 18:0300000Error: No answer to stdout. Died or killed?stderr
18Jul 23, 2024 18:014,520135,606,073139,752,68702,617,344
19Jul 23, 2024 18:094,645139,336,205139,588,01902,441,216
20Jul 23, 2024 18:094,709141,281,269139,470,20202,560,000
21Jul 23, 2024 18:094,815144,447,343139,435,43802,445,312
22Jul 23, 2024 18:014,871146,123,360139,479,35002,551,808
23Jul 23, 2024 18:015,029150,877,761139,493,76502,449,408