Minimal
debian minimal轻量级linux
debian minimal 今天在实体机上安装debian 12 minimal安装了半天,快吐了。在安装界面选择安装镜像源之后,下载软件下载了几个小时,每次都很慢,试了几个源还是很慢,在虚拟机上安装也是这个样子。我换了debian 11 minimal的iso,也是这样。以后再也不用所谓的min ......
[ABC231E] Minimal payments 题解
题目传送门 一道贪心题。 感觉很裸啊,模拟赛时随便乱写了个暴力递归就能过。每次找最接近钱数 \(x\) 的面额 \(num\),如果比钱数少那么答案为剩下 \(x \bmod num\) 钱数的答案加上 \(x \div num\)。否则答案则为剩下 \(num-x\) 钱数的答案加上 \(1\)。 ......
快速展示原型之Minimal API开发
Minimal API官网地址: https://learn.microsoft.com/zh-cn/aspnet/core/fundamentals/minimal-apis/security?view=aspnetcore-7.0 Minimal API 背景介绍 Minimal APIs 是指 ......
ASP.NET Core Minimal API之optional route parameter with default value and optional route parameter
public static void Main(string[] args) { var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); app.MapGet("/product/{name}", (s ......
[CF1654F] Minimal String Xoration
Minimal String Xoration 有点智慧但不是特别智慧反正是我达不到的智慧。 打表可以看出长度为 \(2^x\) 的 \(i\oplus k\) 出现次数为 \(2^{n-k}\)。 进一步发现,设 \(f(k,x)\) 当前选取 k 时,数列前 \(2^k\) 的下标。 则 \(f ......
A Minimal Rust Kernel
Feb 10, 2018 In this post, we create a minimal 64-bit Rust kernel for the x86 architecture. We build upon the freestanding Rust binary from the previo ......
Fox and Minimal path 题解
Fox and Minimal path 题目大意 构造一张无向图,使得从 \(1\) 到 \(2\) 的最短路数量为 \(k\)。 思路分析 我们首先可以发现当 \(k = 2^t\) 时的构造方式: 其中只有 \(O(\log k)\) 个点。 当 \(k\not = 2^t\) 时,我们可以将 ......
CF1491B Minimal Cost 题解
调了两个多小时终于过了,交一发题解。 ### 题目分析 如果你认真读题就会发现,这道题看似有很多种情况,但障碍的移动方式其实只有几种。 如果当所有障碍物都在一列时,可以将某一个障碍水平移动一格,再垂直移动一格或者水平移动两格,那么答案就是 v + min(u,v)。 当有通路时,则无需移动,答案就是 ......
使用ASP.NET Core Minimal API和MailKit发送电子邮件
#### 步骤1:创建新项目 通过以下命令在终端中创建一个新的ASP.NET Core Web API项目: dotnet new webapi -o SendingEmail 由于我们正在使用Minimal APIs,因此删除不必要的Controller文件夹和WeatherForecast类。 ......
CentOS grub引导损坏 Minimal BASH-like line editing is supported.For the first word.TAB lists possible command completions.Anywhere else TAB lists possible deyice or file completions.
这是 GRUB boot loader 的命令行提示。它可能出现在以下情况中: 系统没有正确引导 启动项配置不正确 硬盘分区有问题 GRUB 配置有误等 为了解决这个问题,你需要做的是恢复 GRUB。以下是一般步骤,适用于大多数 Linux 发行版(如 Ubuntu): 启动 Live CD - 首 ......
ChatGPT Plugin 插件开发:基于 ASP.NET Core Minimal API
前言 这是一篇ChatGPT插件开发教程,描述如何使用 ASP.NET Core Minimal API 开发 ChatGPT 插件,以最简单的 Todo List 指导示例作为入门教程。 这个Todo List插件主要功能是以自然语言的方式向ChatGPT发起指令,ChatGPT将根据合适的时机选 ......
B - Minimal Area
B - Minimal Area You are given a strictly convex polygon. Find the minimal possible area of non-degenerate triangle whose vertices are the vertices of ......
题解 CF825E【Minimal Labels】
偶然间翻到三个月前写的这个题,发现现有的题解均未给出解法的正确性证明,只是不明不白地写了一些对理解做法毫无帮助的话。我认为解法的正确性并不显然,因此这篇题解主要给出正确性证明,补上逻辑漏洞。 解法与其他题解一样,即:建反图,然后跑拓扑排序,每次优先取出可以取出的编号最大的点,从 $n$ 到 $1$ ......