标签:style blog http java os strong
http://acm.njupt.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1028
描述
输入
The input file will contain a list of positive integers, one per line. The end of the input will be indicated by an integer value of zero.
输出
For each integer in the input, output its digital root on a separate line of the output.
样例输入
24
39
0
样例输出
6
3
题目来源
Greater New York 2000
ACM——Digital Roots,布布扣,bubuko.com
标签:style blog http java os strong
原文地址:http://www.cnblogs.com/BasilLee/p/3864114.html