当前位置: 首页 > wzjs >正文

如何做好网站建设和宣传公司个人怎么做网络推广

如何做好网站建设和宣传,公司个人怎么做网络推广,创意网站,做问卷网站好🌸博主主页:釉色清风🌸文章专栏:算法练习🌸今日语录:You don’t know until you try. 文章简介:下面的题目是AcWing网站语法基础练习篇的第一小节,内容基础,难度&#xf…
  • 🌸博主主页:@釉色清风
  • 🌸文章专栏:算法练习
  • 🌸今日语录:You don’t know until you try.

文章简介:下面的题目是AcWing网站语法基础练习篇的第一小节,内容基础,难度:易。
主要都是简单的输入输出练习。仅以此记录自己的学习。

🪻1.A+B

在这里插入图片描述
代码如下:

#include<iostream>
using namespace std;
int main()
{int A,B;cin>>A>>B;cout<<A+B<<endl;return 0;
}

🪻2.差


代码如下:

#include<iostream>
using namespace std;
int main()
{int A,B,C,D;cin>>A;cin>>B;cin>>C;cin>>D;cout<<"DIFERENCA = "<<(A*B-C*D)<<endl;return 0;
}

🪻3.圆的面积


代码如下:

#include <iostream>
using namespace std;
int main()
{double r,A;cin>>r;A=3.14159*r*r;printf("A=%.4f",A);return 0;
}

🪻4.平均数1


代码如下:

#include <iostream>
using namespace std;
int main()
{double A,B,S;cin>>A;cin>>B;S=(A*3.5+B*7.5)/11;printf("MEDIA = %.5f",S);return 0;
}

🪻5.工资


代码如下:

#include <iostream>
using namespace std;
int main()
{int id;//编号int hour; //时长double salary;//时薪cin>>id;cin>>hour;cin>>salary;cout<<"NUMBER = "<<id<<endl;printf("SALARY = U$ %.2f",hour*salary);return 0;
}

🪻6.油耗


代码如下:

#include <iostream>
using namespace std;
int main()
{int X;//行驶总路程double Y;//油量cin>>X;cin>>Y;printf("%.3f km/l",X/Y);return 0;
}

🪻7.两点间的距离


代码如下:

#include <iostream>
#include <cmath>
using namespace std;
int main()
{double x1,x2,y1,y2,d;cin>>x1>>y1;cin>>x2>>y2;d=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));printf("%.4f",d);return 0;
}

🪻8.钞票



代码如下:

#include <iostream>
using namespace std;
int main()
{int N;cin>>N;int R100,R50,R20,R10,R5,R2,R1;int t;//临时变量R100=N/100;t=N-R100*100;R50=t/50;t=t-R50*50;R20=t/20;t=t-R20*20;R10=t/10;t=t-R10*10;R5=t/5;t=t-R5*5;R2=t/2;t=t-R2*2;R1=t;cout<<N<<endl;cout<<R100<<" "<<"nota(s) de R$ 100,00"<<endl;cout<<R50<<" "<<"nota(s) de R$ 50,00"<<endl;cout<<R20<<" "<<"nota(s) de R$ 20,00"<<endl;cout<<R10<<" "<<"nota(s) de R$ 10,00"<<endl;cout<<R5<<" "<<"nota(s) de R$ 5,00"<<endl;cout<<R2<<" "<<"nota(s) de R$ 2,00"<<endl;cout<<R1<<" "<<"nota(s) de R$ 1,00"<<endl;return 0;
}

🪻9.时间和转换


代码如下:

#include <iostream>
using namespace std;
int main()
{int N;int hour,min,sec;int t;cin>>N;hour=N/3600;t=N-hour*3600;min=t/60;t=t-min*60;sec=t;cout<<hour<<":"<<min<<":"<<sec;return 0;
}

🪻10.简单乘积


代码如下:

#include<iostream>
using namespace std;
int main()
{int A,B;cin>>A;cin>>B;cout<<"PROD = "<<A*B<<endl;return 0;
}

🪻11.简单计算



代码如下:

#include <iostream>
using namespace std;
int main()
{int num1,num2,amount1,amount2;double price1,price2;cin>>num1>>amount1>>price1;cin>>num2>>amount2>>price2;printf("VALOR A PAGAR: R$ %.2f",amount1*price1+amount2*price2);return 0;
}

🪻12.球的体积


代码如下:

#include  <iostream>
using namespace std;
int main()
{double  R,V;cin>>R;V=(4/3.0)*3.14159*R*R*R;printf("VOLUME = %.3f",V);return 0;
}

🪻13.面积



代码如下:

#include <iostream>
using namespace std;
int main()
{double A,B,C;double S1,S2,S3,S4,S5;cin>>A>>B>>C;S1=0.5*A*C;S2=3.14159*C*C;S3=0.5*(A+B)*C;S4=B*B;S5=A*B;printf("TRIANGULO: %.3f\n",S1);printf("CIRCULO: %.3f\n",S2);printf("TRAPEZIO: %.3f\n",S3);printf("QUADRADO: %.3f\n",S4);printf("RETANGULO: %.3f\n",S5);return 0;
}

🪻14.平均数2


代码如下:

#include <iostream>
using namespace std;
int main()
{double A,B,C,S;cin>>A;cin>>B;cin>>C;S=(A*2+B*3+C*5)/10;printf("MEDIA = %.1f",S);return 0;
}

🪻15.工资和奖金



代码如下:

#include <iostream>
using namespace std;
int main()
{string name;double salary,sales,P;cin>>name>>salary>>sales;P=salary+sales*0.15;printf("TOTAL = R$ %.2f",P);return 0;
}

🪻16.最大值

在这里插入图片描述
代码如下:

#include <iostream>
#include <cmath>
using namespace std;
int main()
{int A,B,C;cin>>A>>B>>C;int max;max=0.5*(A+B+abs(A-B));max=0.5*(max+C+abs(max-C));cout<<max<<" eh o maior";return 0;
}

🪻17.距离


代码如下:

#include <iostream>
using namespace std;
int main()
{int L,X;cin>>L;X=L*2;cout<<X<<" minutos";return 0;
}

这里我第一次写得没有通过,需要注意的是,如果写成L*60/30,那么int会"爆",需要将数据类型定义为long long int。或者是直接简化。

🪻18.燃料消耗


代码如下:

#include <iostream>
using namespace std;
int main()
{int v;double t;cin>>t>>v;double total;total=t*v/12.0;printf("%.3f",total);return 0;
}

🪻19.天数转换


代码如下:

#include <iostream>
using namespace std;
int main()
{int N;cin>>N;int t;int ano,mes,dia;ano=N/365;t=N-ano*365;mes=t/30;t=t-mes*30;dia=t;cout<<ano<<" ano(s)"<<endl;cout<<mes<<" mes(es)"<<endl;cout<<dia<<" dia(s)";return 0;
}
http://www.dtcms.com/wzjs/122705.html

相关文章:

  • 评论回复网站怎么做网络营销热点事件案例分析
  • 网站地图什么意思百度搜索量怎么查
  • 电销做网站的话术百度seo排名工具
  • 兰州appseo上首页
  • 信阳做网站优化武汉seo关键词排名
  • 教育网站开发seo是指什么职位
  • 网站开发系统学习怎么推广
  • 郑州手机网站推广公司长春网站建设定制
  • google地图嵌入网站百度投诉中心24人工客服电话
  • 做个购物商城网站多长时间谷歌seo什么意思
  • 广州企业网站制作哪家好太原首页推广
  • 微信小程序前端开发工具西宁网站seo
  • 清远做网站的公司注册百度推广账号
  • 地方门户网站运营cnzz数据统计
  • 佛山网页网站设计多少钱市场营销策略
  • 做网站在手机端预览乱码了seo外链发布平台
  • 海南网站公司模板免费网站建设
  • 网站app充值记账凭证怎么做友情链接
  • 昆明网站建设公司猎狐科技怎么样磁力搜索
  • 怎么做微拍网站台湾永久免费加密一
  • 用dede做网站后台河南seo
  • 免费看电影的网站是什么班级优化大师电脑版
  • 用jsp做电影网站的界面电子商务软文写作
  • 长沙优化网站价格免费源码资源源码站
  • 北京手机网站开发费用小程序推广运营的公司
  • 建设外贸b2c网站百度新闻官网首页
  • 做bannar在哪个网站参考seo是怎么优化的
  • 河南专业的做网站的公司最近的疫情情况最新消息
  • 中央人民政府网官网北部湾大开发网站点击排名优化
  • 做名片的网站叫什么来着html网页制作代码大全