题目来源:http://vjudge.net/problem/viewProblem.action?id=19592扩展欧几里得方程: ax+by=gcd(a,b)一定有解 把a=floor(x/k);b=ceil(x/k);floor,ceil分别为向下取余和向上取余。 ...
分类:
其他好文 时间:
2014-07-27 09:49:22
阅读次数:
297
由于日常数据建模经常使用PowerDesigner,使用逆向工程能更加快速的生成模型提高效率,所以总结使用如下: 1. 安装MYSQL的ODBC驱动 Connector/ODBC 5.1.10 下载地址:http://dev.mysql.com/downloads/connector/odbc/5....
分类:
数据库 时间:
2014-07-26 16:54:51
阅读次数:
284
Moving TablesThe famous ACM (Advanced Computer Maker) Company has rented a floor of a building who...
分类:
其他好文 时间:
2014-07-26 14:22:30
阅读次数:
263
JS比较好用的一些方法搜集Math.ceil(x)-- 返回大于等于数字参数的最小整数(取整函数),对数字进行上舍入Math.floor(x)--返回小于等于数字参数的最大整数,对数字进行下舍入 join() 例:var a = ["a","b","c"]; 若要输出"a,b,c" 需要...
分类:
Web程序 时间:
2014-07-23 14:46:16
阅读次数:
325
基本思路:使用定时器让物体向右运动,在运动的过程中再不是匀速运动,而是先快后慢,但是到达终点的时候,必须注意要使用向上取整函数Math.ceil()和向下取整函数Math.floor();这样才能够正确无误地到达终点,而不是有出入。
#div1{
width:100px;
height:100px;
background:red;
position:ab...
分类:
Web程序 时间:
2014-07-23 13:36:26
阅读次数:
224
hashtable
---------------------------------------------------------------------------
二叉搜索树具有对数平均时间的表现,它建立在输入数据有足够的随机性的假设
hashtable 有常数平均时间的表现,基于统计,不需依赖输入元素的随机性
hashtalbe 的简单实现:
所有元素都 16-bits 不带正负号的整数,范围 0~65535,配置一个 array,索引号码为 0~65535,初值全部为 0 。
每一个元素...
分类:
其他好文 时间:
2014-07-23 13:23:47
阅读次数:
379
来源:网络嵌入式程序员应知道的0x10个基本问题1 . 用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题)#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL我在这想看到几件事情:1) #define 语法的基本知识(例如:不能...
分类:
其他好文 时间:
2014-07-22 22:45:53
阅读次数:
297
A strange liftDescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 2 #include 3 #include 4....
分类:
Web程序 时间:
2014-07-22 22:36:54
阅读次数:
329
Problem 2156 Climb Stairs
Problem Description
Jason lives on the seventh floor. He can climb several stairs at a time, and he must reach one or more specific stairs before he arrives home becau...
分类:
其他好文 时间:
2014-07-22 14:36:28
阅读次数:
211
Python学习笔记 1.基础知识 · 用于实现整除的操作符:// · 幂运算符:** · Python中变量没有类型。类型的强制转换使用函数int(32.9);而C中强制转换使用(int)32.9 · round():将浮点数四舍五入;floor():向下取整;ceil():向上取整 · 跨多行的...
分类:
编程语言 时间:
2014-07-22 00:13:37
阅读次数:
393