1 2 3 4 5 ··· 20 下一页
摘要: 背景 学习 Redis 时 Redis 给出的 BLPOP 命令的格式为 BLPOP key [key ...] timeout,以为是从多个 key 中都弹出一个,但是自己测试下来不是这样。 学习 简单搜索了一下,没发现有讲这多个 key 的。 看了官方文档,如下 An element is po 阅读全文
posted @ 2025-05-19 21:53 yu__xuan 阅读(15) 评论(0) 推荐(0)
摘要: 背景 一个使用 Google glog 日志系统的项目,当我使用 grep '3531527' ./output/be/log/be.INFO 想查找特定内容时却得到了 Binary file ./output/be/log/be.INFO matches 这个结果。就在昨天也使用过类似命令查找日志 阅读全文
posted @ 2025-04-19 16:23 yu__xuan 阅读(64) 评论(0) 推荐(0)
摘要: 背景 一系列危险操作后我想启动一个进程,启动时提示我进程已经在运行,PID 为 2443175。 使用 kill -9 2443175 杀死进程再次启动仍提示进程已经在运行。 使用 ps -p 2443175 查看发现 CMD 列提示 <defunct> 。 我该如何终止该进程? 学习 把问题扔给了 阅读全文
posted @ 2025-04-13 18:35 yu__xuan 阅读(35) 评论(2) 推荐(0)
摘要: before \(A \sim D\) 的题解 A. Profitable Interest Rate Problem A. Profitable Interest Rate Sol&Code 数学题,有 \(a - x \geq b - 2x\),得 \(x = b - a\)。 特判 \(a \ 阅读全文
posted @ 2024-10-21 15:02 yu__xuan 阅读(232) 评论(0) 推荐(0)
摘要: before \(A \sim D\) 的题解 A. A Gift From Orangutan Problem A. A Gift From Orangutan Sol&Code \(c_i - b_i\) 最大就是 \(a\) 的最大值减最小值。将 \(a\) 的最大值 \(x\) 和最小值 \ 阅读全文
posted @ 2024-10-21 14:15 yu__xuan 阅读(105) 评论(0) 推荐(1)
摘要: before \(A \sim E\) 的题解 我不想写作业呜呜。 A. Two Screens Problem A. Two Screens Sol&Code 理解题意后发现使用复制的方法完成最长公共前缀即可。 #include <bits/stdc++.h> typedef long long 阅读全文
posted @ 2024-10-15 15:40 yu__xuan 阅读(309) 评论(0) 推荐(1)
摘要: Before 本文是 \(2024\) 中国大学生程序设计竞赛全国邀请赛(长春)暨第 \(17\) 届吉林省大学生设计竞赛和新建比赛的游记 写的很烂 写的很烂 写的很烂 Day0 省赛报到及热身赛。 \(14:00\) 前报到。 \(12:00\) 和一名队员在校门口集合了,但另一名队员才起床。会合 阅读全文
posted @ 2024-05-17 21:54 yu__xuan 阅读(394) 评论(0) 推荐(1)
摘要: Before 比赛 清明和一个队友 vp 的,完全的跟榜做题,感觉发挥的还行。 B - JB Loves Comma 签到 #include <bits/stdc++.h> std::string s; int main() { std::cin >> s; int n = s.length(); 阅读全文
posted @ 2024-04-15 16:27 yu__xuan 阅读(190) 评论(0) 推荐(1)
摘要: \(Before\) 关于 \(Botzone\) 可以去 \(Wiki\) 看。 感觉有点意思,所以开个 \(tag\)。 \(Index\) 阅读全文
posted @ 2024-03-25 10:59 yu__xuan 阅读(18) 评论(0) 推荐(0)
摘要: before 终于有一篇题解是一次性更所有题的了。 A. Morning Problem A. Morning Sol&Code 根据题意模拟即可。 #include <bits/stdc++.h> typedef long long ll; int min(int a, int b) { retu 阅读全文
posted @ 2023-10-26 12:05 yu__xuan 阅读(182) 评论(1) 推荐(1)
1 2 3 4 5 ··· 20 下一页