上一页 1 2 3 4 5 6 7 8 9 ··· 63 下一页
摘要: 最小差值 题目描述 给你一个由 $n$ 个整数组成的数组 $\{a_1,a_2,\dots,a_n\}$,以及一个由 $m$ 个整数组成的数组 $\{b_1,b_2,\dots,b_m\}$,现在我们需要寻找一个最小的整数 $k$,满足 $-2 \times 10^9 \leq k \leq 2 \ 阅读全文
posted @ 2025-03-29 10:26 onlyblues 阅读(43) 评论(0) 推荐(0)
摘要: G. Game With Triangles: Season 2 There is a regular polygon with $n$ sides ($n \ge 3$). The vertices are indexed as $1,2,\ldots,n$ in clockwise order. 阅读全文
posted @ 2025-03-13 17:54 onlyblues 阅读(72) 评论(0) 推荐(0)
摘要: 最快相同 题目描述 现在有一个由 $n$ 个整数组成的数组 ${a_1,a_2,\ldots,a_n}$,你可以进行以下操作任意次(可以是 $0$ 次): 每次操作恰好选择 $k$ 个不同的位置,并使这些位置上的元素值减一;形式地说,每次操作可以选择一个大小为 $k$ 的集合 $S={p_1,p_2 阅读全文
posted @ 2025-03-08 19:55 onlyblues 阅读(61) 评论(0) 推荐(0)
摘要: 前言 本教程写于 2025 年 3 月,具有时效性,但方法大致相同,仅供参考。记录一下 vscode 配置 C++ 的过程,方便重装软件或出去打比赛时配置环境。本教程的配置相对简单,主要针对 acm/oi 使用。 下载和安装 Visual Studio Code 打开 Visual Studio C 阅读全文
posted @ 2025-03-08 11:15 onlyblues 阅读(9359) 评论(0) 推荐(1)
摘要: 几只毛毛虫? 题目描述 一天,在生物课上,老师带着小羊和他的同学去公园观察动物。 他看到了草丛里有很多毛毛虫,于是他想,毛毛虫有什么特征呢? 于是他把一条毛毛虫抽象成了一棵有 $n$ 个节点的树。树是一个有 $n$ 个点 $n−1$ 条无向边组成的连通图。 这棵树被称为一条毛毛虫,当且仅当:树上存在 阅读全文
posted @ 2025-03-04 23:25 onlyblues 阅读(54) 评论(0) 推荐(0)
摘要: G. I've Been Flipping Numbers for 300 Years and Calculated the Sum After three hundred years of slime farming, Akito finally obtained the magical numb 阅读全文
posted @ 2025-03-01 16:50 onlyblues 阅读(82) 评论(0) 推荐(0)
摘要: Check If Digits Are Equal in String After Operations II You are given a string s consisting of digits. Perform the following operation repeatedly unti 阅读全文
posted @ 2025-02-24 11:12 onlyblues 阅读(46) 评论(0) 推荐(0)
摘要: D. Eating There are $n$ slimes on a line, the $i$-th of which has weight $w_i$. Slime $i$ is able to eat another slime $j$ if $w_i \geq w_j$; afterwar 阅读全文
posted @ 2025-02-18 21:09 onlyblues 阅读(66) 评论(0) 推荐(0)
摘要: Viva La Vida(Fried-Chicken's Version) 题目描述 鸡王国有 $n$ 个城市,编号分别为 $1,2, \dots n$,初始城市之间没有任何道路连接。为了灾后重建,鸡国王决定在一些城市之间修建双向道路,于是他请首席工程师瓦爵鸡根据王国的地形地貌特征,对在城市之间修建 阅读全文
posted @ 2025-02-13 22:51 onlyblues 阅读(17) 评论(0) 推荐(0)
摘要: H. Bro Thinks He's Him Skibidus thinks he's Him! He proved it by solving this difficult task. Can you also prove yourself? Given a binary string$^{\te 阅读全文
posted @ 2025-02-10 03:27 onlyblues 阅读(119) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 63 下一页
Web Analytics