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 listOct 2, 2024 18:07Joad 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
1Oct 2, 2024 18:0700000Error: expected "1020384 ", got "1020495 "stderr
2Oct 2, 2024 18:015,913177,388,688146,644,00010,973,0002,551,808
3Oct 2, 2024 18:015,926177,781,248147,807,0009,986,0002,555,904
4Oct 2, 2024 18:016,098182,930,536153,183,00011,013,0002,596,864
5Oct 2, 2024 18:076,204186,112,852147,924,00014,992,0002,555,904
6Oct 2, 2024 18:016,227186,821,098145,316,00011,023,0002,637,824
7Oct 2, 2024 18:016,261187,825,658148,305,00013,026,0002,588,672
8Oct 2, 2024 18:076,296188,872,718150,302,00012,024,0002,596,864
9Oct 2, 2024 18:016,314189,420,460147,934,00014,993,0002,596,864
10Oct 2, 2024 18:076,323189,697,082151,577,00012,963,0002,555,904
11Oct 2, 2024 18:076,441193,234,179159,735,00012,978,0002,703,360
12Oct 2, 2024 18:016,543196,280,935159,096,00013,007,0002,707,456
13Oct 2, 2024 18:016,557196,721,375163,006,00011,000,0002,711,552
14Oct 2, 2024 18:076,588197,642,370161,724,00011,979,0002,596,864
15Oct 2, 2024 18:076,684200,532,627152,571,00016,952,0002,588,672
16Oct 2, 2024 18:0110,110303,299,416227,055,00012,002,0002,772,992