题解列表

筛选

压力给到print

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double a,b,c;    scanf("%lf%lf%lf", &……

离线 + 哈希

摘要:解题思路:该题没有涉及修改操作,多次查询,离线一定 有机会优化出比在线更好的算法我们对查询的边界【l,r】中的r从左到右解决问题发现l肯定是越小越有机会yes,我们现在要解决的就是这个边界值l_bou……

2914: 铺地毯

摘要:``` #include using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int ……

编写题解 3040: An Easy Problem

摘要:解题思路:就那样注意事项:参考代码:#include <stdio.h>#include <stdbool.h>int js(int i) {    int t = 0;    while (i > ……