摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1228题目很简单,不过自己写的代码很繁,先判断加号前面的,判断时可以通过空格的数量来计算数字的多少,然后判断加号后面,等号前面的#include<stdio.h>#include<string.h>int main(){ int n,a,b,i,j,sum; char str[11][10]={"zero","one","two","three","four","five&qu 阅读全文
posted @ 2013-05-28 20:25
执着追求的IT小小鸟
阅读(207)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1229这题,是我想多了ac代码#include<stdio.h>int main() // 代码一AC{ const int right[8] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000}; int a, b, k; while (scanf("%d%d%d", &a, &b, &k) != EOF && (a != 0 || b != 0)) { if (a % right 阅读全文
posted @ 2013-05-28 17:02
执着追求的IT小小鸟
阅读(129)
评论(0)
推荐(0)

浙公网安备 33010602011771号