Loading...
题源 https://ac.nowcoder.com/acm/contest/9925G Fibonacci签到题,斐波那契数列中偶数的个数为长度的三分之一,贡献值从 n 向下递减/// ~~AK~~ Cu #include <bits/stdc++.h> #define int ll typedef long long ll; using namespace std; in...
题源:https://www.luogu.org/problem/P1439tips问题能转化成二分求最长上升子序列lower_bound() 返回第一个大于等于查询值的位置lower_bound() 返回第一个小于查询值的位置binary_search() 返回判断查询值在不在的 bool 值code#include <bits/stdc++.h> #define numm ...