guozi6

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2023年5月4日

摘要: #include<iostream>using namespace std;int main(){float a=11,b;for(float i=5;i>=2;i--){a=(a+(1/i))*(i/(i-1));}cout<<a;} 阅读全文
posted @ 2023-05-04 23:33 汀幻 阅读(22) 评论(0) 推荐(0)

2023年4月27日

摘要: #include<stdio.h>void print(int s[]);int judge(int c[]);int j=0;int main(){ int sweet[10]={10,2,8,22,16,4,10,6,14,20}; int i,t[10],l; printf("child 1 阅读全文
posted @ 2023-04-27 20:28 汀幻 阅读(21) 评论(0) 推荐(0)

2023年4月26日

摘要: #include<iostream>#include<math.h>using namespace std;int main(){int x1,x2,x3,x5,x8,b[10];double a,max=0.0;for(x8=0;x8<=2;x8++){//穷举法找到符合条件的结果从其中一个进行将 阅读全文
posted @ 2023-04-26 21:05 汀幻 阅读(23) 评论(0) 推荐(0)

2023年4月25日

摘要: #include<iostream>#define TAXBASE 3500using namespace std;typedef struct{ long start; long end; double taxrate; }TAXTABLE;TAXTABLE taxtable[]={{0,1500 阅读全文
posted @ 2023-04-25 20:42 汀幻 阅读(50) 评论(0) 推荐(0)

2023年4月24日

摘要: #include<iostream>#define N 10using namespace std;int main(){ int i,low=0,high=N-1,mid,k=-1,m; int a[N]={-3,4,7,9,13,45,67,89,100,180}; cout <<"a数组中的数 阅读全文
posted @ 2023-04-24 20:05 汀幻 阅读(26) 评论(0) 推荐(0)

2023年4月21日

摘要: #include<iostream>using namespace std;int main(){int N=10,k=-1,mid,high=N-1,low=0,m;int a[N]={-3,4,7,9,13,45,67,89,100,180};cout<<"输入所选的值"<<endl;cin>> 阅读全文
posted @ 2023-04-21 22:33 汀幻 阅读(24) 评论(0) 推荐(0)

2023年4月20日

摘要: #include<iostream>#include<math.h>#define N 10using namespace std; int main(){int a[N]={0};for(int i=0;i<N;i++){cin>>a[i];}for(int i=1;i<=N-1;i++){for 阅读全文
posted @ 2023-04-20 18:42 汀幻 阅读(31) 评论(0) 推荐(0)

2023年4月19日

摘要: #include<iostream>using namespace std;int main(){float a,b,c,d,e;e=1000/(12*0.0063+1);d=(e+1000)/(12*0.0063+1);c=(d+1000)/(12*0.0063+1);b=(c+1000)/(12 阅读全文
posted @ 2023-04-19 22:33 汀幻 阅读(19) 评论(0) 推荐(0)

2023年4月18日

摘要: #include<iostream>#include<cmath>using namespace std;int main(){ float fact(float a,float b,float c,float d);//定义 float a,b,c,d,x; cout<<"请输入方程的系数:"<< 阅读全文
posted @ 2023-04-18 20:35 汀幻 阅读(31) 评论(0) 推荐(0)

2023年4月17日

摘要: #include<iostream>using namespace std;int main(){ int a,b,c; int i; for(a=0;a<=9;a++) { for(b=0;b<=9;b++) { for(i=31;i<100;i++) { c=i*i; if(c==1000*a+ 阅读全文
posted @ 2023-04-17 19:51 汀幻 阅读(20) 评论(0) 推荐(0)