generals
generals
全部文章
题解
游记(2)
笔记(2)
归档
标签
去牛客网
登录
/
注册
蒟蒻之圣地——zzx
总之很菜就是了
全部文章
/ 题解
(共4篇)
[牛客小白月赛26]牛牛爱数学
分析 已知,求的值。 Code #include<bits/stdc++.h> using namespace std; long long a,b,c; int main() { int t; scanf("%d",&t); while(t--) ...
2020-06-21
1
637
[牛客小白月赛26]牛牛爱学习
思路 我们可以看出,答案是具有单调性的,所以我们可以考虑二分答案。我们排序后,按每一天进行安排,如果就退出循环。Code: #include<bits/stdc++.h> #define ll long long using namespace std; const int N = 1e...
2020-06-20
1
546
【Codeforces #312 div2 A】Lala Land and Apple Trees
【Codeforces #312 div2 A】Lala Land and Apple Trees 首先,此题的大意是在一条坐标轴上,有\(n\)个点,每个点的权值为\(a_{i}\),第一次从原点开始走,方向自选(<- or ->),在过程中,若遇到一个权值>0的点,则将此...
2020-02-11
0
579
洛谷P1179 【数字统计】
题目传送门 此题题意十分明确:就是让我们统计在[L , R]区间内的数字2出现的次数。 然后我们再看一看此题的数据范围:1≤L≤R≤100000,所以用n log n的复杂度是可以过的。 1.解题思路 我们只需枚举[L,R]区间内每个数字里共出现了多少个2. 2.解题步骤 fi...
2019-12-07
0
562