04 2023 档案

摘要:3.代码示例 #include<iostream> using namespace std; int main(){ int a,b,num=0; cout<<" "<<"白球"<<" "<<"红球"<<" "<<"黑球"<<endl; for(a=0;a<4;a++){ for(b=0;b<4;b 阅读全文
posted @ 2023-04-27 20:18 奶油冰激凌 阅读(9) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> using namespace std; int judge(int *c){ int i,s=0; for(i=2;i<11;i++){ if(c[1]!=c[i]) s=1; } return s; } int main(){ int swee 阅读全文
posted @ 2023-04-26 18:01 奶油冰激凌 阅读(19) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> #include<cmath> using namespace std; int main(){ int i,x1,x2,x3,x5,x8,y1,y2,y3,y5,y8; double s=0,m=0.0; for(x8=0;x8<3;x8++){ 阅读全文
posted @ 2023-04-25 23:15 奶油冰激凌 阅读(11) 评论(0) 推荐(0) 编辑
摘要:2.代码示例 #include<iostream> using namespace std; int main(){ int n; double s=0; cout<<"请输入您的个人收入:"; cin>>n; cout<<"应缴纳税额为:"; if(n<3500){ s=0; } else if( 阅读全文
posted @ 2023-04-25 09:37 奶油冰激凌 阅读(10) 评论(0) 推荐(0) 编辑
摘要:3代码示例 #include<iostream> #include<cmath> #include<cstring> using namespace std; int a(int n,int k){ int i,t,s; for(i=0;n>0;i++){ t=n%10; s+=t*pow(k,i) 阅读全文
posted @ 2023-04-21 22:22 奶油冰激凌 阅读(11) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> using namespace std; int main(){ int a[10]={2,3,4,5,6,7,8,9,12,18}; int i; for(i=0;i<10;i++){ cout<<a[i]<<" "; } cout<<endl; 阅读全文
posted @ 2023-04-20 17:42 奶油冰激凌 阅读(16) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> #define N 10 using namespace std; int main(){ int a[N]; int i,j,t; for(i=0;i<N;i++){ cin>>a[i]; } for(i=0;i<N-1;i++){ for(j= 阅读全文
posted @ 2023-04-19 22:42 奶油冰激凌 阅读(16) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> using namespace std; int main(){ double money=0.0; int i; for(i=5;i>=1;i--){ money=(money+1000)/(1+12*0.0063); } cout<<"应存入" 阅读全文
posted @ 2023-04-18 18:39 奶油冰激凌 阅读(9) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> #include<cmath> using namespace std; int main(){ float a,b,c,d,x0,f,f1; cin>>a>>b>>c>>d; float x=2.0; while(fabs(x-x0)>=1e-5 阅读全文
posted @ 2023-04-17 20:08 奶油冰激凌 阅读(9) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> using namespace std; int main(){ long long a[31]; int i,j; a[1]=1; a[2]=1; for(i=3;i<31;i++){ a[i]=a[i-1]+a[i-2]; } for(j=1; 阅读全文
posted @ 2023-04-16 20:50 奶油冰激凌 阅读(3) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> using namespace std; int main(){ int a1,a2,a3,a4,s,m; for(a1=0;a1<=9;a1++){ for(a3=0;a3<=9;a3++){ if(a1!=a3){ s=a1*1000+a1*1 阅读全文
posted @ 2023-04-15 18:04 奶油冰激凌 阅读(15) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> using namespace std; int main(){ int year,month,day,sum,s=0,i,q; cin>>year>>month>>day; int a[13]={0,31,28,31,30,31,30,31,31 阅读全文
posted @ 2023-04-14 23:40 奶油冰激凌 阅读(17) 评论(0) 推荐(0) 编辑
摘要:3.代码示例 #include<iostream> using namespace std; int main(){ int a,b,c,i=0; for(a=1;a<=5;a++){ for(b=1;b<=5;b++){ if(a!=b){ for(c=1;c<=5;c++){ if(c!=a&& 阅读全文
posted @ 2023-04-13 17:30 奶油冰激凌 阅读(29) 评论(0) 推荐(0) 编辑
摘要:2.代码 #include<iostream> using namespace std; int main(){ int egg,hen,chicken; for(hen=0;hen<=20;hen++){ for(chicken=0;chicken<=33;chicken++){ egg=100- 阅读全文
posted @ 2023-04-12 18:55 奶油冰激凌 阅读(38) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示