summing专题

java 2.6** Summing the digits in an integer

例如 : 999 process: sum=9+9+9=27; 例如 : 932 process: sum=9+3+2=14;   import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner input=new Scanner(System.in);int

UVA 112 POJ 1145 Tree Summing(数据结构,二叉树,栈)

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=104&page=show_problem&problem=48 http://poj.org/problem?id=1145  Tree Summing  Background LISP was one