摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1172这题要换个思维,不要想着如何通过已有的条件来得到正确的值,而是枚举0000-9999这10000个数,看满足条件的数字有多少个,只有刚好有一个的数满足的情况下才输出。代码如下:#include <cstdio>#include <cstdlib>#include <cmath>#include <cstring>#include <iostream>#define MIN( x, y ) (x) < (y) ? (x) : (y)usin 阅读全文
posted @ 2011-10-19 22:22 沐阳 阅读(858) 评论(0) 推荐(0) 编辑