Processing math: 4%
摘要: Maximum Product of Subsequences With an Alternating Sum Equal to K You are given an integer array nums and two integers, k and limit. Your task is to 阅读全文
posted @ 2025-04-08 09:53 onlyblues 阅读(1) 评论(0) 推荐(0) 编辑
摘要: [GXOI/GZOI2019] 旅行者 题目描述 J 国有 n 座城市,这些城市之间通过 m 条单向道路相连,已知每条道路的长度。 一次,居住在 J 国的 Rainbow 邀请 Vani 来作客。不过,作为一名资深的旅行者,Vani 只对 J 国的 k 座历史悠久、自然风景独特的城市感兴 阅读全文
posted @ 2025-04-05 22:28 onlyblues 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 晚饭吃什么? 题目描述 “晚饭吃什么?” “我都行。” notPP 罗列了 m 个吃饭的地点,在接下来的 n 天中,notPP 觉得一直吃外卖会腻,于是他决定拿恰好 k 天出来去外面吃饭。 但连续两天都在同一个地方吃饭容易腻,于是他希望“不能连续两天都去同一个地方吃饭(外卖除外)”的规则 阅读全文
posted @ 2025-04-04 22:36 onlyblues 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 最小差值 题目描述 给你一个由 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 阅读(4) 评论(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 阅读(34) 评论(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 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 前言 本教程写于 2025 年 3 月,具有时效性,但方法大致相同,仅供参考。记录一下 vscode 配置 C++ 的过程,方便重装软件或出去打比赛时配置环境。本教程的配置相对简单,主要针对 acm/oi 使用。 下载和安装 Visual Studio Code 打开 Visual Studio C 阅读全文
posted @ 2025-03-08 11:15 onlyblues 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 几只毛毛虫? 题目描述 一天,在生物课上,老师带着小羊和他的同学去公园观察动物。 他看到了草丛里有很多毛毛虫,于是他想,毛毛虫有什么特征呢? 于是他把一条毛毛虫抽象成了一棵有 n 个节点的树。树是一个有 n 个点 n−1 条无向边组成的连通图。 这棵树被称为一条毛毛虫,当且仅当:树上存在 阅读全文
posted @ 2025-03-04 23:25 onlyblues 阅读(15) 评论(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 阅读(31) 评论(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 阅读(25) 评论(0) 推荐(0) 编辑
Web Analytics
点击右上角即可分享
微信分享提示