摘要: 题目传送门 题意分析 给定 \(n\) 个位置 \(x_1,x_2,\cdots,x_n\) 和已知的 \(r\) 个位置 \(a_1,a_2,\cdots,a_r\),要求额外添加 \(k-r\) 个位置 \(a_{r+1},a_{r+2},\cdots,a_{k}\),最小化 \(\max_{i 阅读全文
posted @ 2026-10-14 21:37 sqrt2 阅读(9) 评论(0) 推荐(0)
摘要: 考虑用 windows.h 内部的函数模拟按键,发送按 Enter 就行了。 代码: #include"games.h"//自定义头文件,主要用于读入和输出,去掉也不影响 #include<windows.h> #include<stdio.h> #define el putchar('\n') b 阅读全文
posted @ 2026-08-20 20:58 sqrt2 阅读(38) 评论(0) 推荐(0)