喜阳的向日葵
喜阳的向日葵
全部文章
题解
归档
标签
去牛客网
登录
/
注册
喜阳的向日葵的博客
全部文章
/ 题解
(共2篇)
Codeforces Round 1005 (Div. 2) A-D题解
A. Brogramming Contest 主要就是统计一下最后一个0移动了多少次就行了(和他前面的1联通块数量有关) 总体时间复杂度O(n) AC // Problem: A. Brogramming Contest // Contest: Codeforces - Codeforces Rou...
C++
C++14
脑筋急转弯
贪心
模拟
2025-02-18
1
206
题解 | C竹鼠饲养物语 C++
贪心题,记得要特判一下没有一级饲料的情况,否则会WA #9 #10 2个点。然后不要像本苟蒻一样比赛的时候一不小心给数组的大小少打了个0,导致25%,其余段错误。 #include <iostream> #include <algorithm> using namespace...
C++
C++14
贪心
2024-08-06
3
286