whopxx
whopxx
全部文章
题解
归档
标签
去牛客网
登录
/
注册
whopxx的博客
全部文章
/ 题解
(共3篇)
题解 | #i题 && e题#
i题 思路:多次dj求解即可 #include <bits/stdc++.h> using namespace std; #define int long long int inf = 1e13; signed main(){ int n, m, k; cin >&...
C++
2024-07-31
5
416
题解 | #茜茜的计算器#
E题注意1不是左右对称的 n = int(input()) mod = 10**9 + 7 ans = 0 if n % 2 == 0: ans = (pow(4,n,mod) + pow(4, n//2,mod) - pow(2,n//2, mod)) % mod else: n ...
2024-06-16
2
436
题解 | #雾粉与最小值(简单版)#
C题 思路:二分+ST表 处理st表,接着二分每一个a[i]两边能扩展的最大长度,然后记录a[i]所能扩展的最大长度。排序,处理一个后缀最大数组,然后对于每一个询问,二分到第一个位置询问后缀最大值是否符合长度大于l。 #include <bits/stdc++.h> using name...
2024-06-07
4
528