摘要: 1018http://acm.hdu.edu.cn/showproblem.php?pid=1018在其中要体现一下几个问题:一、一个整数的位数计算二、优化算法设有一个整数n,且10x-1≤n#include #includeint main(){ int n,i,num; double sum,j; scanf_s("%d", &n); for ( i = 0; i #include #include#define PI 3.1415926535898#define E 2.71828182845904523536028747135266250int main(. 阅读全文
posted @ 2013-12-24 14:24 丁香树 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1017#include int main(){ int N,n,m,a,b,count=0,Case; scanf("%d", &N); while (N--) { int Case = 1; while (scanf("%d %d",&n,&m)!=EOF) { if (n == 0 && m == 0) { break; } ... 阅读全文
posted @ 2013-12-24 13:08 丁香树 阅读(167) 评论(0) 推荐(0) 编辑