会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
岗寒
博客园
首页
新随笔
联系
订阅
管理
2016年7月7日
二分查找
摘要: #include<stdio.h>int b[10]={1,1,2,3,3,5,6,6,7,9},a;int s(int m,int n){ int z; if(m<=n) { z=(m+n)/2; if(b[z]==a) return z; if(a<b[z]) return s(m,z-1);
阅读全文
posted @ 2016-07-07 20:46 岗寒
阅读(90)
评论(0)
推荐(0)
2016年7月6日
高精准加法和乘法
摘要: 使用函数库: #include<stdio.h> #include<string.h> 源码(加法): #include<stdio.h> #include<string.h> char s[1000]; int main() { int i,l1,l2,l,a[1000]={0},b[1000]=
阅读全文
posted @ 2016-07-06 20:01 岗寒
阅读(149)
评论(4)
推荐(0)
高精度加法
摘要: 使用函数库: #include<stdio.h> #include<string.h> #include<stdlib.h> 源码(加法): #include<stdio.h> #include<string.h> #include<stdlib.h> int main(void) { char s
阅读全文
posted @ 2016-07-06 18:47 岗寒
阅读(85)
评论(0)
推荐(0)
公告