2007-10-28
pku1004
关键字: acm pkujava 代码
- import java.io.*;
- import java.util.*;
- import java.text.*;
- public class Pku1004 {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner cin = new Scanner(new BufferedInputStream(System.in));
- double output = 0;
- int i = 0;
- DecimalFormat f= new DecimalFormat("#.00");
- while(cin.hasNext()&&i<12)
- {
- output += cin.nextDouble();
- i++;
- }
- System.out.println('$'+f.format(output/i));
- }
- }
发表评论
- 浏览: 44894 次
- 来自: 厦门

- 详细资料
搜索本博客
最新评论
-
(转)BeanShell快速入门-- ...
我用的是tortoisesvn, 下载所有文件后,把他作为文件导入eclipse ...
-- by fullfocus -
(转)BeanShell快速入门-- ...
请问你是用什么软件解出carrot2的。 解出内容完整么? 我是用tortois ...
-- by ares -
毕业设计6---web网页 ...
shaucle 写道俺当年的毕业设计是自由发挥(关于cluster的),哈哈,反 ...
-- by bibitoo712 -
毕业设计6---web网页 ...
呵呵,大概只一篇毕业论文了
-- by fullfocus -
毕业设计6---web网页 ...
俺当年的毕业设计是自由发挥(关于cluster的),哈哈,反正他们都不懂..
-- by shaucle






评论排行榜