以下答案为我个人写的能在判题系统提交的正确答案,每周将会更新21道题目,希望读者借鉴学习,并不是说完全照抄,比较自己写的代码和我提交的正确答案,找出不同,在csdn上先搜索有疑问的地方,学习计算机,最重要的是培养一个自学能力,能够独立地使用网站,搜索引擎,资料,身边同学,老师,去解决问题。

以下是1000-1021题目我自己写的答案,仅供参考使用。

刷题网站:

每日学习

1000 //c语言

#include<stdio.h>
int main()
{
int a,b;scanf("%d%d",&a,&b);printf("%d %d\n",a,b);return 0;} 

1001 //c语言

#include<stdio.h>
int main()
{char ch;scanf("%c",&ch);printf("%c\n",ch);return 0;
}

1002 //c语言

#include<stdio.h>
int main()
{int a,b,c;scanf("%d%d",&a,&b);c=a+b;printf("%d\n",c);return 0;
}

1003 //c语言

法一:

#include<stdio.h>int main(){int a,b;scanf("%d%d",&a,&b);while(a != 0 || b != 0){printf("%d\n",a+b);scanf("%d%d",&a,&b);}return 0;
} 

法二:

#include<stdio.h>int main(){int a,b;scanf("%d%d",&a,&b);while(1){if(a==0&&b==0) break;printf("%d\n",a+b);scanf("%d%d",&a,&b);}return 0;
} 

1004 //c语言

#include <stdio.h>
int main()
{
int n,a,c;
scanf("%d",&n);
while(n--){
scanf("%d%d",&a,&c);
printf("%d\n",a+c);
}
return 0;
}

1005 //c语言

#include <stdio.h>
int main()
{
double a,b,c,d;
scanf("%lf%lf%lf",&a,&b,&c);
d=(a+b+c)/3;
printf("%.1f\n",d);
return 0;
}

1006 //c语言

#include<stdio.h>
int main()
{double a,b,c;scanf("%lf%lf",&a,&b);c=a+b;printf("%.2f\n",c);return 0;} 

1007 //c语言

#include<stdio.h>
int main()
{double f,c;scanf("%lf",&f);c=5*(f-32)/9.0;printf("%.2f\n",c);return 0;} 

1008 //c语言

#include<stdio.h>
#define pi 3.14
int main()
{double r,c,s;scanf("%lf",&r);c=2*pi*r;s=pi*r*r;printf("%.2f %.2f\n",c,s);return 0;}

1009//c语言

#include<stdio.h>
#define pi 3.14
int main()
{double r,h,s;scanf("%lf%lf",&r,&h);s=pi*r*r*2+2*pi*r*h;printf("%.2f\n",s);return 0;}

1010//c语言

#include<stdio.h>
#define pi 3.14
int main()
{double r,v;scanf("%lf",&r);v=(4*pi*r*r*r)/3;printf("%.2f\n",v);return 0;}

1011//c语言

#include<stdio.h>
#include<math.h>
int main()
{double s,a,b,c,p;scanf("%lf%lf%lf",&a,&b,&c);p=(a+b+c)/2;s=sqrt(p*(p-a)*(p-b)*(p-c));printf("%.2f\n",s);return 0;}

1012//c语言

#include<stdio.h>
#include<math.h>
int main()
{double a,b,c,s,p;scanf("%lf%lf%lf",&a,&b,&c);p=(a+b+c)/2;s=sqrt((p-a)*(p-b)*(p-c)*p);if(a+b>c&&a+c>b&&b+c>a) printf("%.2f\n",s);else printf("Error\n");return 0;}

1013//c语言

#include<stdio.h>
#include<math.h>
int main()
{double x1,y1,x2,y2,d;scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);;d=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));printf("%.2f\n",d);return 0;}

1014//c语言

#include<stdio.h>
#include<math.h>
int main()
{int head,foot,chicken,rabbit;scanf("%d%d",&head,&foot);chicken=(4*head-foot)/2;rabbit=head-chicken;printf("%d %d\n",chicken,rabbit);} 

1015//c语言

#include<stdio.h>
int main()
{int a,b,c,d;scanf("%d%d",&a,&b);c=b;d=a;printf("%d %d\n",a,b);printf("%d %d\n",c,d);return 0;}

1016//c语言

#include<stdio.h>
int main()
{double x,y,c;scanf("%lf%lf",&x,&y);c=x/y;printf("%.2f\n",c);return 0;}

1017//c语言

#include<stdio.h>
int main()
{int x,y,c,d;scanf("%d%d",&x,&y);c=x/y;d=x%y;printf("%d %d\n",c,d);return 0;}

1018//c语言

#include<stdio.h>
int main(){int tree,num,average,rest;scanf("%d%d",&tree,&num);if(tree>num){average=tree/num;rest=tree%num;printf("%d %d\n",average,rest);}else{ printf("Error");}return 0;}

1019//c语言

#include<stdio.h>
int main()
{double dollar,rmb;scanf("%lf",&dollar);rmb=dollar*6.5573;printf("%.2f\n",rmb);return 0; } 

1020//c语言

#include<stdio.h>int main(){char ch;scanf("%c",&ch);printf("%d\n",ch);return 0;}

1021//c语言

#include<stdio.h>int main(){float usual,exp,final;scanf("%f%f",&usual,&exp);final=(90-0.1*usual-0.3*exp)/0.6;printf("%.1f\n",final);return 0;}

每日学习参考答案(1000-1021)相关推荐

  1. 【深度学习:21 天实战 Caffe】课后习题参考答案

    百度网盘已弃用.随书资源已经放在码云和 github,方便国内外朋友下载. 码云:https://gitee.com/yongkezhao/PracticeCaffeIn21Days github:h ...

  2. 《动手学深度学习》参考答案(第二版)-第二章

      最近在学习<动手学深度学习>,结合百度和课后的大家的讨论(侵删),整理出这一份可能并不完全正确的参考答案(菜鸡的做题记录),因为个人水平有限,有错误的地方欢迎在 公众号 联系我,后面我 ...

  3. 《统计学习导论:基于R应用》第2章课后习题参考答案

    [第2章课后习题参考答案] Chapter 2 Exercise 1. (a) better - a more flexible approach will fit the data closer a ...

  4. python学习测试题3及参考答案

    1.下面的循环会打印多少次"I love Python" for i in range(0, 10, 2):print('I love Python') range(start, ...

  5. Go 语言学习:Go 语言之旅——练习题及参考答案

    官方的 Go 语言之旅 包含了一些习题,初学者应该要能够完成这些练习来巩固学习的知识点.今晚我花了几个小时做了这些习题,以给初学者作参考.这些题目我就懒得翻译了,这里给出了每个题目的中英文链接[中文应 ...

  6. 证券期货业必须利用计算机系统,继续教育——创新课程学习自测题及参考答案(单项选择及判断题)...

    继续教育(公需科目) "专业技术人员创新能力"学习自测题及参考答案 一.单项选择题 1.桌子上放着12枚钱币,每边摆四个刚好摆完,现要将他们重新摆放,使每边摆5个硬币,你以为能吗? ...

  7. 八一学院期末考试答案专科计算机,(2018春电大)国家开放大学学习指南形考作业参考答案...

    题目及答案顺序可能不一样 国家开放大学学习指南形考作业参考答案 作业一 一.单项选择(每题5分,共计10分) 1.请将你认为不适合描述为国家开放大学特色的选项选择出来.(b) a. 国家开放大学是一所 ...

  8. 2020年春季学习信号与系统课程作业参考答案-第十一次作业

    信号与系统第十一次作业参考答案 ※ 第一题 利用三种逆变方法求下列X(z)X\left( z \right)X(z)的逆变换x[n]x\left[ n \right]x[n]. X(z)=10z(z− ...

  9. 通过计算机和网络进行整个商务贸易活动,《电子商务学习》课程期末考试试题及参考答案...

    <电子商务>课程期末考试试题及参考答案 一.单项选择题 1.基于现代概念的电子商务,最早产生于20世纪(B )年代,发展于20世纪90年代. A. 50 B. 60 C. 70 D. 80 ...

最新文章

  1. 丢掉虚拟机,在裸机上使用 Kubernetes 六大优势!
  2. 解决通过pip安装好的库无法被第三方编译器调用的问题
  3. c++ 获取计算机域名_每日一题| 计算机考研20200825
  4. 让 Windows 7 定时待机
  5. 如何阅读3,500万个博客?
  6. 计算机网络之网络层:7、距离向量算法RIP
  7. 【Qt开发】Qt标准对话框之QMessageBox
  8. 中国双色向滤光镜行业市场供需与战略研究报告
  9. 去银行写代码是种什么体验?
  10. ubuntu(20.04)+linux内核(5.17.3)的config文件
  11. elementUI使用el-tabs时,页面崩溃卡死问题
  12. mac中有关delete删除键的5种用法
  13. 在Oracle中,什么是物理读和逻辑读?
  14. 使用transformers从头训练Bert
  15. unity3d 中能画出漂亮图案的函数之玫瑰图案
  16. CSS transform中的rotate设置旋转中心
  17. why哥这里有一道Dubbo高频面试题,请查收。
  18. 红黑树特点以及如何构建红黑树
  19. js点击元素之外的地方隐藏该元素
  20. Sublime Text3 的 Markdown 实时预览全面总结

热门文章

  1. FPGA串口(rs422)调试笔记
  2. McAfee:黑客借"极光漏洞"获取企业源代码
  3. “第一弹”影视网站因影视侵权团队27人获刑!
  4. 如何彻底卸载绿盟终端DLP
  5. 无法定位序数 354 于动态链接库LIB
  6. 腾讯云游戏多媒体解决方案:揭秘《QQ 炫舞》手游背后的音视频
  7. 成功的四大天敌(一)
  8. maven 之 Spring Cloud Starter Alibaba Nacos Discovery
  9. 如何下载PDF转换器
  10. sweet home3d_Sweet Home 3D:一个开源工具,可帮助您决定梦想中的家