潘小蓝
潘小蓝
全部文章
题解
归档
标签
去牛客网
登录
/
注册
潘小蓝的博客
全部文章
/ 题解
(共5篇)
题解 | #计算器#
import math x = eval(input()) y = eval(input()) print(x + y) print(x - y) print(x * y) # 整除 // 向下取整 # print(math.floor(x / y)) """ math.ceil...
Python3
向上取整
向下取整
四舍五入
2022-06-30
4
431
[每日一题]:糖糖别胡说,我真的不是签到题目
题目: 考察点: 差分数组,思维。分析: Code: #include <set> #include <map> #include <stack> #include <queue> #include <deque> #include ...
差分
思维
2020-04-20
1
869
[每日一题]:华华给月月准备礼物
题目: 考察点: 二分--假设某个值存在。侃侃: 这道题可以说是二分中的一道模板题,我们先假设某个值成立,然后带入到已知条件中,判断当前值 是否满足所有的条件,若满足条件,看是否是最优的,如果不是最优的(还有更优的),就进一步缩小 范围,直到找到一个最优的值。Code: #include <...
二分
2020-04-16
2
854
[每日一题]:Wannafly挑战赛1 -- Treepath
题目: 考察点: 树上DFS、long long、思维侃侃: 之前做过一道类似的题目,所以想到应该往哪个方向去想。 Code: #include <vector> #include <cstdio> #include <string> #include <...
思维
树上DFS
2020-04-14
2
688
[每日一题]:月月查华华的手机
题目: 样例: 题目链接: 月月查华华的手机#析题得侃: Code: #include <vector> #include <cstdio> #include <string> #include <cstring> #include <ios...
二分
每日一题
字符串
STL
2020-04-03
1
715