摘要: 模拟除法 1 #include <stdio.h> 2 int main() 3 { 4 char a[1000];//创建存表 5 int len=0,count=0; 6 int n; 7 int t=1; 8 scanf("%d",&n); 9 while(1) 10 { 11 count++ 阅读全文
posted @ 2019-04-18 16:24 cxc1357 阅读(242) 评论(0) 推荐(0)
摘要: 程序: 1 #include<stdio.h> 2 #include<math.h> 3 int main() { 4 int i=0,N; 5 scanf("%d",&N); 6 int H[N],W[N]; 7 double P; 8 for(i=0; i<N; i++) { 9 scanf(" 阅读全文
posted @ 2019-04-18 14:26 cxc1357 阅读(1451) 评论(0) 推荐(0)
摘要: 程序: 1 #include <stdio.h> 2 3 int main () { 4 5 int rabbit=0,turtle=0,minute,rest=-1,run=10; //rest为0或负时,兔子休息,run为1-10是兔子跑 6 scanf ("%d",&minute) ; 7 8 阅读全文
posted @ 2019-04-18 13:44 cxc1357 阅读(632) 评论(0) 推荐(0)
摘要: 程序: 1 #include<stdio.h> 2 3 int main() { 4 int n,f,y; 5 int flag = 0; 6 scanf("%d",&n); 7 for(y=0; flag==0 && y<=50; y++) { 8 for(f=0; f<=100; f++) { 阅读全文
posted @ 2019-04-18 10:33 cxc1357 阅读(348) 评论(0) 推荐(0)