using System;
using System.Net.Http;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Collections.Generic;
class Program
{
static readonly HttpClient client = new HttpClient();
static Dictionary<string, string> baseUrlToPrefixMapping;
static string localFolderPath;
static Dictionary<string, int> lastDownloadedFileNumberByPrefix = new Dictionary<string, int>();
static async Task Main()
{
baseUrlToPrefixMapping = new Dictionary<string, string>();
// 获取用户输入的配置
for (int i = 0; i < 5; i++)
{
Console.Write($"请输入第{i + 1}个基础URL地址 (例如 http://example.com/images/): ");
string baseUrl = Console.ReadLine().Trim();
Console.Writ