2014年3月17日

求解n位格雷码

摘要: 1 /************************************************************************* 2 > File Name: Gray.cpp 3 > Author: wangzhili 4 > Mail: wangstdio.h@gmail.com 5 > Created Time: 2014年03月17日 星期一 21时23分04秒 6 ******************************************************... 阅读全文

posted @ 2014-03-17 21:33 ~Love() 阅读(182) 评论(0) 推荐(0)

求解欧拉函数值

摘要: 1 /************************************************************************* 2 > File Name: phi.cpp 3 > Author: wangzhili 4 > Mail: wangstdio.h@gmail.com 5 > Created Time: 2014年03月17日 星期一 21时05分09秒 6 *******************************************************... 阅读全文

posted @ 2014-03-17 21:32 ~Love() 阅读(417) 评论(0) 推荐(0)

扩展欧几里德

摘要: 1 /************************************************************************* 2 > File Name: extend_gcd.cpp 3 > Author: wangzhili 4 > Mail: wangstdio.h@gmail.com 5 > Created Time: 2014年03月17日 星期一 20时47分53秒 6 ************************************************... 阅读全文

posted @ 2014-03-17 21:30 ~Love() 阅读(120) 评论(0) 推荐(0)

快速幂取模

摘要: 递归实现: 1 /************************************************************************* 2 2 > File Name: pow_mod.cpp 3 3 > Author: wangzhili 4 4 > Mail: wangstdio.h@gmail.com 5 5 > Created Time: 2014年03月17日 星期一 20时59分52秒 6 6 ******************************... 阅读全文

posted @ 2014-03-17 21:29 ~Love() 阅读(173) 评论(0) 推荐(0)

codeforces --- 14D

摘要: C -Two PathsTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 14DDescriptionAs you know, Bob's brother lives in Flatland. In Flatland there arencities, connected byn - 1two-way roads. The cities are numbered from 1 ton. You can get from one city 阅读全文

posted @ 2014-03-17 20:40 ~Love() 阅读(295) 评论(0) 推荐(0)

导航