上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 60 下一页
摘要: 题目链接:https://atcoder.jp/contests/arc084/tasks/arc084_b 题目大意: 找到一个数位和最小的整数,这个整数是 \(K(\le 10^5)\) 的倍数,输出数位和。 解题思路: 观察到任意一个正整数都可以从 \(1\) 开始,按照某种顺序执行乘 \(1 阅读全文
posted @ 2025-04-04 14:18 quanjun 阅读(38) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P2371 参考博客: oi wiki https://oi-wiki.org/graph/mod-shortest-path/ xht大佬的博客 https://www.luogu.com.cn/article/tgfwb 阅读全文
posted @ 2025-04-04 02:55 quanjun 阅读(70) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P3403 参考博客: oi wiki https://oi-wiki.org/graph/mod-shortest-path/ xht大佬的博客 https://www.luogu.com.cn/article/tgfwb 阅读全文
posted @ 2025-04-04 02:48 quanjun 阅读(50) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/problemset/problem/1473/E dis[u][c1][c2] 表示到达顶点 \(u\) 有无经过最短边(\(c1\) 标记)有无经过最长边(\(c2\) 标记)时的最短路。 示例程序: #include <bits/stdc 阅读全文
posted @ 2025-04-01 19:00 quanjun 阅读(58) 评论(0) 推荐(0)
摘要: 题目链接:https://atcoder.jp/contests/abc133/tasks/abc133_f 题目大意: 有一棵树,顶点编号从 \(1\) 到 \(N\)。 这棵树中第 \(i\) 条边连接着顶点 \(a_i\) 和顶点 \(b_i\),其颜色和长度分别为 \(c_i\) 和 \(d 阅读全文
posted @ 2025-03-29 00:20 quanjun 阅读(54) 评论(0) 推荐(0)
摘要: 赛后发现代码有问题,举例:ABCCBAABC 修改后的代码:https://atcoder.jp/contests/abc398/submissions/64144922 题目链接:https://atcoder.jp/contests/abc398/tasks/abc398_f 题目大意: 给你一 阅读全文
posted @ 2025-03-22 22:14 quanjun 阅读(136) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/gym/103446/problem/H 题目大意: 人生就是一场游戏。 世界可以看作是 \(n\) 个城市和城市之间 \(m\) 条无向道路的无向连通图。 现在你,生命游戏玩家,将在世界图表上玩生命游戏。最初,您位于第 \(x\) 个城市和第 阅读全文
posted @ 2025-03-21 22:24 quanjun 阅读(102) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P1967 参考资料:https://www.cnblogs.com/qfxlzhe/p/15153705.html 示例程序: #include <bits/stdc++.h> using namespace std; c 阅读全文
posted @ 2025-03-21 18:29 quanjun 阅读(34) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P3369 参考:https://www.cnblogs.com/trsins/p/17970745 (思路是自己想的) 特别需要注意的点 因为区间内存在负数,所以 mid 的取法应该写成: mid = (l + r) >> 阅读全文
posted @ 2025-03-07 21:36 quanjun 阅读(56) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/contest/69/problem/E 解题思路来自:https://www.cnblogs.com/trsins/p/17970745 示例程序: #include <bits/stdc++.h> using namespace std; 阅读全文
posted @ 2025-03-03 13:08 quanjun 阅读(40) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 60 下一页