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 3, 2024 12:00Joad 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:4400000Error: expected "1022698 ", got "1022701 "stderr
2Oct 3, 2024 12:284,392131,761,152203,076,0005,001,0002,654,208
3Oct 3, 2024 12:004,444133,315,333212,414,0004,986,0002,351,104
4Oct 3, 2024 12:284,444133,309,419202,365,0004,007,0002,404,352
5Oct 3, 2024 12:284,473134,176,229202,819,0004,995,0002,666,496
6Oct 3, 2024 12:004,497134,919,735214,096,0004,001,0002,654,208
7Oct 3, 2024 12:004,511135,317,270217,408,0005,009,0002,596,864
8Oct 3, 2024 12:284,512135,373,795216,085,0005,025,0002,662,400
9Oct 3, 2024 12:364,525135,738,652214,471,0004,008,0002,396,160
10Oct 3, 2024 12:284,541136,241,727206,069,0007,002,0002,359,296
11Oct 3, 2024 12:284,550136,513,089210,604,0004,990,0002,678,784
12Oct 3, 2024 12:284,587137,603,896212,513,0004,988,0002,588,672
13Oct 3, 2024 12:284,596137,882,667213,186,0004,003,0002,654,208
14Oct 3, 2024 12:004,603138,077,438214,512,0005,986,0002,404,352
15Oct 3, 2024 12:364,606138,193,454212,908,0005,997,0002,584,576
16Oct 3, 2024 12:284,612138,363,941206,073,0004,001,0002,670,592
17Oct 3, 2024 12:284,644139,331,209212,655,0004,012,0002,666,496
18Oct 3, 2024 12:284,673140,183,286215,761,0003,995,0002,695,168
19Oct 3, 2024 12:284,683140,484,382217,813,0003,996,0002,744,320
20Oct 3, 2024 12:004,713141,400,057221,220,0004,003,0002,355,200
21Oct 3, 2024 12:004,730141,893,612222,605,0002,994,0002,600,960
22Oct 3, 2024 12:284,770143,109,503215,514,0004,009,0002,781,184
23Oct 3, 2024 12:004,776143,291,954222,653,0004,992,0002,596,864
24Oct 3, 2024 12:284,795143,850,800216,626,0004,991,0002,662,400
25Oct 3, 2024 12:004,813144,389,057218,936,0005,998,0002,400,256
26Oct 3, 2024 12:364,838145,126,013218,028,0004,000,0002,756,608
27Oct 3, 2024 12:005,327159,802,911268,890,0005,997,0002,400,256
28Oct 3, 2024 12:285,452163,568,105275,550,0004,008,0002,818,048