题解列表

筛选

线段(贪心)

摘要: #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; ……

初学者的写法

摘要:解题思路: 无脑if else注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    double a,b,c,d;  ……