![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDOJ修炼
대휘kiyo
这个作者很懒,什么都没留下…
展开
-
HDOJ2011多项式求和
不能AC #include <iostream> #include<cstdio> using namespace std; int main() { int n,flag; while(scanf("%d",&n)!=EOF) { while(n) { flag=1; ...原创 2018-12-08 22:54:04 · 114 阅读 · 0 评论 -
HDOJ2009
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main () { int m; double sum=0,n; while(scanf("%lf%d",&n,&m)!=EOF) { sum=n...原创 2018-12-07 23:00:56 · 51 阅读 · 0 评论 -
HDOJ2008数值统计
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main () { int z,f,zero,n; while(scanf("%d",&n)!=EOF) { if(n==0)break; z=0...原创 2018-12-07 21:44:09 · 190 阅读 · 0 评论 -
HDOJ2006平方和与立方和
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main () { int a,b,t,ou=0,ji=0; while(scanf("%d%d",&a,&b)!=EOF) { ou=0; ...原创 2018-12-07 21:34:52 · 208 阅读 · 1 评论 -
HD2006 求奇数的乘积
#include #include using namespace std; int main () { int str=1,n; while(scanf("%d",&n)!=EOF) { str=1; for(int i=0;i<n;i++) { int s; cin>>s; if(s%2!=0) str*=s; else continue; } cout<<...原创 2018-12-07 21:24:05 · 86 阅读 · 0 评论 -
图,dfs,bfs
真的大一菜鸟的dfs dfs: void dfs(int st,int g[][max])//必须给一个顶点开始搜索 { static int vis[max]={0}; //用于记录有没有被访问 vis[st]=1; //开始找说有项链的节点中没有被访问过的节点 printf("%2d->",...原创 2018-12-12 09:28:46 · 224 阅读 · 0 评论