- 博客(5)
- 收藏
- 关注
原创 L1-005 考试座位号 PTA团体程序设计天梯赛 c语言
#include <stdio.h>int main(){ double a[1000];//使用double的原因在害怕超出范围,int型可能会丢失数据 int b[1000],c[1000],d[1000],m,n,i,j; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%lf %d %d",&a[i],...
2019-03-25 20:52:22 613 1
原创 L1-004 计算摄氏温度 PTA团体程序设计天梯赛 c语言
#include <stdio.h>int main(){ int a,c; scanf("%d",&a);//数据的读入 c=5*(a-32)/9; printf("Celsius = %d",c);//注意按格式输出,必须加上空格 return 0;}
2019-03-25 20:47:44 998
原创 小数第n位 C语言 蓝桥杯
#include &amp;lt;stdio.h&amp;gt;#include &amp;lt;math.h&amp;gt;int main(){ double i,j,a,b,c; int t=0,t1; scanf(&quot;%lf %lf %lf&quot;,&amp;amp;a,&amp;amp;b,&amp;amp;c);
2018-11-30 11:41:20 1297 4
原创 大数相加,纯c语言编写。
#include &amp;lt;stdio.h&amp;gt;#include “string.h”void main(){char a[100],b[100];int c[100],d[100],c1[100],d1[100],tt[100];int i=0,j=0,t=0,t1=0,t2=0,a1=0,b1=0;/将数存入字符型数组,再转换成整形数组,再倒序存入c1,d1数组,方便计算/ge...
2018-11-21 12:23:38 1847 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人