上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 64 下一页
摘要: 前言 本教程写于 2025 年 3 月,具有时效性,但方法大致相同,仅供参考。记录一下 vscode 配置 C++ 的过程,方便重装软件或出去打比赛时配置环境。本教程的配置相对简单,主要针对 acm/oi 使用。 下载和安装 Visual Studio Code 打开 Visual Studio C 阅读全文
posted @ 2025-03-08 11:15 onlyblues 阅读(11793) 评论(0) 推荐(2)
摘要: 几只毛毛虫? 题目描述 一天,在生物课上,老师带着小羊和他的同学去公园观察动物。 他看到了草丛里有很多毛毛虫,于是他想,毛毛虫有什么特征呢? 于是他把一条毛毛虫抽象成了一棵有 $n$ 个节点的树。树是一个有 $n$ 个点 $n−1$ 条无向边组成的连通图。 这棵树被称为一条毛毛虫,当且仅当:树上存在 阅读全文
posted @ 2025-03-04 23:25 onlyblues 阅读(66) 评论(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 阅读(96) 评论(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 阅读(54) 评论(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 阅读(68) 评论(0) 推荐(0)
摘要: Viva La Vida(Fried-Chicken's Version) 题目描述 鸡王国有 $n$ 个城市,编号分别为 $1,2, \dots n$,初始城市之间没有任何道路连接。为了灾后重建,鸡国王决定在一些城市之间修建双向道路,于是他请首席工程师瓦爵鸡根据王国的地形地貌特征,对在城市之间修建 阅读全文
posted @ 2025-02-13 22:51 onlyblues 阅读(32) 评论(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 阅读(136) 评论(0) 推荐(0)
摘要: Maximum Difference Between Even and Odd Frequency II You are given a string s and an integer k. Your task is to find the maximum difference between th 阅读全文
posted @ 2025-02-02 21:33 onlyblues 阅读(121) 评论(0) 推荐(0)
摘要: 智乃的Notepad(Hard version) 题目描述 本题有对应的Easy Version,区别仅在Easy为单组查询,Hard为多组,保证Easy的测试用例集为Hard的子集。 智乃在练习打字,她打开电脑上的记事本,准备输入一系列单词组成的集合,她想要知道如果想在记事本上显示过这个单词集合中 阅读全文
posted @ 2025-01-31 21:06 onlyblues 阅读(71) 评论(0) 推荐(0)
摘要: 智乃的逆序数 题目描述 定义一个序列是“紧密”的,当且仅当序列从小到大排序后,相邻数字的差值是 $1$; 定义两个序列不相交的,当且仅当两个序列没有相同元素; 逆序数指的是在一个序列或者数组中,有多少对 $i,j$ 满足 $i<j$ 且 $a_i>a_j$; 子序列为从原数组中删除任意个(可以为零、 阅读全文
posted @ 2025-01-30 11:38 onlyblues 阅读(72) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 64 下一页
Web Analytics