摘要: title: Codeforces Round 897 & AtCoder Beginner Contest 311 也可以参考网上的其他题解:codeforces https://zhuanlan.zhihu.com/p/655687735 atcoder https://www.cnblogs. 阅读全文
posted @ 2025-08-20 19:00 _nilv 阅读(25) 评论(0) 推荐(0)
摘要: title: AtCoder Beginner Contest 419 A - AtCoder Language 思路: 模拟即可 #include <bits/stdc++.h> #define int long long signed main() { std::map<std::string, 阅读全文
posted @ 2025-08-16 21:52 _nilv 阅读(23) 评论(0) 推荐(1)
摘要: title: Codeforces Round 880 A - C & Codeforces Round 882 A - D A. a 思路:可以发现 | ai - ai + 1 | 是两个元素差的绝对值,分成m段,也就是有 m - 1个绝对值不用计算,所以只需要除去 m - 1 个最大差值外,把剩 阅读全文
posted @ 2025-07-30 20:15 _nilv 阅读(35) 评论(2) 推荐(2)
摘要: title: Linux_4 shell编写 shell pwd (/root/A/2025_7/19/myshell) 首先需要设计命令行提示 (MakeCommandLine()) 首先获取相关信息 getenv("name") // 获取用户名 const char* GetUserName( 阅读全文
posted @ 2025-07-21 16:55 _nilv 阅读(12) 评论(0) 推荐(0)
摘要: title: Linux_3 操作系统 认识冯诺依曼系统 硬件按照一定的规则组装形成计算机 冯诺依曼体系结构(Von Neumann Architecture)是现代计算机设计的理论基础,由美籍匈牙利数学家约翰·冯·诺依曼(John von Neumann)及其团队在1945年提出,并在报告《Fir 阅读全文
posted @ 2025-07-21 16:54 _nilv 阅读(9) 评论(0) 推荐(0)
摘要: title: Codeforces Round 886 (Div. 4) [[Dashboard - Codeforces Round 886 (Div. 4) - Codeforces)](比赛链接) 新年快乐! 做个简单的 A. To My Critics #include <bits/stdc 阅读全文
posted @ 2025-07-21 16:54 _nilv 阅读(5) 评论(0) 推荐(0)
摘要: title: Codeforces Round 927 (Div. 3) [Dashboard - Codeforces Round 927 (Div. 3) - Codeforces](比赛链接) A. Thorns and Coins 思路:遇到@加一, 连续两个*结束循环 #include < 阅读全文
posted @ 2025-07-21 16:54 _nilv 阅读(10) 评论(0) 推荐(0)
摘要: title: Codeforces Round 980 (Div. 2) [[Dashboard - Codeforces Round 980 (Div. 2) - Codeforces)](比赛链接) A. Profitable Interest Rate 思路:a - x >= b - 2x, 阅读全文
posted @ 2025-07-21 16:54 _nilv 阅读(12) 评论(0) 推荐(0)
摘要: title: Educational Codeforces Round 155 (Rated for Div. 2) [比赛链接](Dashboard - Educational Codeforces Round 155 (Rated for Div. 2) - Codeforces) A. Rig 阅读全文
posted @ 2025-07-21 16:53 _nilv 阅读(6) 评论(0) 推荐(0)
摘要: title: AtCoder Beginner Contest 390 新年快乐! 做个简单的(感觉几天没打,康复训练,新的一年,希望自己每天做题吧。 还是快乐就好 A - 12435 思路: 模拟,尝试交换每两个相邻数 #include <bits/stdc++.h> using namespac 阅读全文
posted @ 2025-07-21 16:53 _nilv 阅读(15) 评论(0) 推荐(0)