• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
水晶閣
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年7月7日
二分法查找,外加递归,累死我了
摘要: 程序: #include<stdio.h>int b[11]={0,1,2,3,4,5,6,7,8,9,10},n; int lwc(int x,int y){ int z; if(x>y) { z=(x+y)/2; if(b[z]==n) return z; if(b[z]<2) return l 阅读全文
posted @ 2016-07-07 20:30 水晶閣 阅读(126) 评论(0) 推荐(0)
今天学了递归,感觉好复杂啊/(ㄒoㄒ)/~~
摘要: honio塔思路: 阅读全文
posted @ 2016-07-07 17:14 水晶閣 阅读(233) 评论(1) 推荐(0)
集训第二天,今天学了函数(拷贝),但是右边的这位像疯了一样→_→(大家注意红色字体)。
摘要: #include<stdio.h>int x;//void lwc(double a[1000]){ // 李蔚初 int i; scanf("%d",&x); for(int i=0;i<=x-1;i++) { scanf("%lf",&a[i]); } } int main(){ double 阅读全文
posted @ 2016-07-07 11:18 水晶閣 阅读(228) 评论(0) 推荐(0)
2016年7月6日
高精度乘法 7——6
摘要: §: #include<stdio.h> #include<string.h> int a[1000]={0}; char s1[1000]; int main() { int i,l,t,x=0; scanf("%d%s",&t,s1); l=strlen(s1); for(i=0;i<=l-1; 阅读全文
posted @ 2016-07-06 20:42 水晶閣 阅读(97) 评论(0) 推荐(0)
高精度加法
摘要: #include<stdio.h> #include<string.h> int main() { char s1[1000]; int a[1000]={0},b[1000]={0},l1=0,l2=0,l=0,i; scanf("%s",s1); l1=strlen(s1); for(i=0;i 阅读全文
posted @ 2016-07-06 19:15 水晶閣 阅读(97) 评论(0) 推荐(0)
高精度减法,在做小减大时可花了我不少时间!
摘要: 减法: #include<stdio.h> #include<string.h> int main() { char s1[1000]; int a[1000]={0},b[1000]={0},c[1000]={0},l1=0,l2=0,l=0,i,x; scanf("%s",s1); l1=str 阅读全文
posted @ 2016-07-06 19:07 水晶閣 阅读(167) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3