Little Test II
来源:互联网 发布:看泰剧用什么软件 编辑:程序博客网 时间:2024/06/06 12:21
第一次动手试试扩展欧几里得的实现,动手太少,总出错。
if中的b==0写成了b=0,于是出现了devide by 0,编译无错,运行显示“浮点数例外”
//001Extend Eucilid#include"iostream"using namespace std;int extend_eucilid(int a,int b,int &x,int &y){int d;if(0==b) {x=1;y=0;return a;}d=extend_eucilid(b,a%b,y,x);y-= x*a/b;cout<<a<<' '<<x<<'\t'<<b<<' '<<y<<endl;return d;}
而现在的这段测试可用了,可是依然结果不对,比如输入25,11。显示1=4*25-10*11
再改改看。。。。
闹不住了!!这个格式不太会用!!!
- Little Test II
- Little Test
- build a little database test in zope
- Test Prime Using Fermat's Little Theorem
- 小朋友齐打交(little fighter)ii 官方
- uC/OS II Extend Test
- [Apache --- Ant]DIY Ant Task II --- a little more difficult
- 小朋友齐打交(little fighter)ii v2.1 免费
- "The SAS Little Bookl" reading note (Part II)
- 2013寒假练习 1019 The Little Architect II
- HDU4905--The Little Devil II(四边形不等式优化)
- Big-Endian and Little-Endian Test in Arm and PowerPC CPU
- Big-Endian and Little-Endian Test in ARM and PowerPC SoC
- 【HDU 4905 多校联合】The Little Devil II【DP+四边形不等式优化】
- hdu 4905 The Little Devil II 区间DP 四边形不等式优化
- hdu 4905 The Little Devil II 多校第四场 DP
- FTPrep, 95 Unique Binary Search Trees II, TODO: a little confused
- quartus ii 管脚设置与test bench设置
- iOS开发:小技巧积累
- 封装
- 黑马程序员 HTML&css
- Linux进程间的同步方法的优缺点比较
- 设计模式之替换原则 — 从二叉树说起
- Little Test II
- 安装ORACLE 11R2 找不到不到文件em.ear
- Mo Yan
- CMWAP和CMNET
- C# 连接Sql数据库
- mysql下如何执行sql脚本
- 统计学>>专业经典书籍
- 【转】Bloom Filter概念和原理
- 为了验证一些问题