蓝桥杯2023年第十四届省赛真题-三国游戏-贪心+前缀和 摘要:解题思路: 贪心的选择使得获胜方人数与另外两方人数和的差最大,因此优先选择差最大的事件注意事项: 获胜仅有三种情况,要么x要么y要么z参考代码:n = int(input()) x = list(m…… 题解列表 2024年04月02日 0 点赞 0 评论 718 浏览 评分:9.3
3158: 蓝桥杯2023年第十四届省赛真题-三国游戏 摘要:```python n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())…… 题解列表 2023年12月22日 0 点赞 0 评论 808 浏览 评分:9.6
三国游戏 - 暴力搜索 摘要:```c++ #include using namespace std; typedef long long LL; const int N = 1e5+10; int x[N], y[…… 题解列表 2024年03月01日 1 点赞 1 评论 1202 浏览 评分:9.8