2007年12月28日

HDU1013 Digital Roots

摘要: 题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1013 #include #include using namespace std; void DigitRoot(int n) { int tmp; int sum = 0; while (n!=0) { tmp = n%10; sum += tmp; n = n/10;... 阅读全文

posted @ 2007-12-28 13:03 Phinecos(洞庭散人) 阅读(1166) 评论(1) 推荐(0) 编辑

导航