首页 > 其他 > 详细

大数加法

时间:2015-09-27 09:51:18      阅读:263      评论:0      收藏:0      [点我收藏+]

技术分享//2015年 925  邵文正

import java.util.ArrayList;

 

 

public class Plus {

@SuppressWarnings({ "unchecked", "rawtypes" })

public static void main(String[] args) 

{

int a;

a=args.length;

ArrayList a1=new

ArrayList();

for(int i=0;i<a;i++)

a1.add(args[i]);

int s=0;

for(int i = 0;i<a;i++)

{

String b=(String)a1.get(i);

int c;

c=Integer.parseInt(b);

s=s+c;

}

System.out.println(s);

}

}

大数加法

原文:http://www.cnblogs.com/aishangtaxuefeihong/p/4841811.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!