![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
acm
文章平均质量分 65
个人奋斗
程序爱好
个人QQ空间:http://user.qzone.qq.com/515076654/infocenter#home
展开
-
uva 575 Skew Binary
Description Skew Binary When a number is expressed in decimal, the k-th digit represents a multiple of 10k. (Digits are numbered from right to left, where the least signific原创 2012-10-07 00:56:27 · 341 阅读 · 0 评论 -
uva10161 Ant on a Chessboard
Description Problem A.Ant on a Chessboard Background One day, an ant called Alice came to an M*M chessboard. She wanted to go around all the grids. So she began to原创 2012-10-07 00:43:22 · 457 阅读 · 0 评论 -
湖南师大acm10015
湖南师大ACM报告:大数相乘问题;http://acm.hunnu.edu.cn/online/?action=problem&type=show&id=10015&courseid=0一开始感觉这道题目很简单,只要模拟乘法运算就可以了,但是后来在写代码的时候粗心放了一个大错误,改了半个小时才改过来!!总体上而言还是很有收获!下面的AC的C++代码:#include#includeu原创 2012-07-25 18:27:25 · 1101 阅读 · 0 评论 -
ZOJ 1002
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1002浙江大学acm judge online 1002 一看这题目,在算法书看到过,而且数据也不是太大,就算枚举也根本不会超时一想,可以采用回溯法,谁知上网一查,基本上都采用了回溯法下面是AC的C代码:#include char map[4][4];原创 2012-07-25 18:27:06 · 477 阅读 · 0 评论 -
uva Power of Cryptography
Description Power of Cryptography BackgroundCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers modulo function原创 2012-10-07 00:50:09 · 308 阅读 · 0 评论 -
uva 401 Palindromes
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=342 Palindromes A regular palindrome is a string of numbers or letter原创 2012-10-07 00:25:23 · 463 阅读 · 0 评论 -
湖南师大acm problem 10384 计算点到线段之间的距离
http://acm.hunnu.edu.cn/online/?action=problem&type=show&id=10834&courseid=52一开始的时候感觉这道题目很容易,只要用海伦公式一算,不就可以算出结果;但是后来一看,给出的测试数据只有一组是对的,就在找错,在书上一画图,就感觉到可以三点组成的是钝角三角形,不能直接用面积除以底边,因为是到线段的距离而不是到直线的距离;改了之原创 2012-07-25 18:26:50 · 737 阅读 · 0 评论 -
POJ1702Eva's Balance
http://poj.org/problem?id=1702题目描述:你有1, 3, 9。。。一直到3的19次方,有这20个重量的砝码,现在给你一个天平和一个标有重量物体,物体一开始放在天平的左边,让你用这20个砝码中的几个放在天平上,使左右平衡,输出天平左边和右边的详细砝码信息。(已知问题有解)此题可以转化为3进制的问题,例如物品重为20, 20 = 202(3进制)原创 2012-07-25 18:26:23 · 362 阅读 · 0 评论