题解列表

筛选

回文子串(三层嵌套循环复杂解法)

摘要:解题思路:从2个到整个为一对来对字符串进行检查;注意事项:各变量关系复杂,需花一定时间仔细琢磨;参考代码:一遍过真爽ヽ( ̄▽ ̄)ノ#include<stdio.h> #include<string.……

线段(贪心)

摘要: #include using namespace std; const int N=1e6+10; struct node{ int……

简单算法,易理解

摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))c=a[0]d=a[1]t=0while d%c!=0:    t=d%c    c=d    d=tpr……

用二叉树的思想进行减枝

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int asd(int a);int main(){ int m,a,b,i,j,e=0; scanf(……

编写题解 2909: 直方图

摘要:解题思路:写代码里了注意事项:写代码里了参考代码:#include<stdio.h>int main(){    int n,s=-1,i;    scanf("%d",&n);    int num……

偷老师的思路,再稍微修改一下

摘要:解题思路:一直存值到别的数就行了注意事项:参考代码:#include <stdio.h>//一直把数据存放到别的数中 int main() { double n,a=2,i,s=2,b=1.0,t; ……