Codeforces Drinks
来源:互联网 发布:directx 11游戏编程 编辑:程序博客网 时间:2024/05/29 03:20
import java.text.DecimalFormat;import java.util.Scanner;public class Drinks {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);int n = scanner.nextInt();double sum = 0;for(int i = 0; i < n; i++) {double temp = scanner.nextInt();temp /= 100;sum += temp;}DecimalFormat decimalFormat = new DecimalFormat("0.000000000000");System.out.println(decimalFormat.format((sum / n) *100));}}
阅读全文
0 0
- Codeforces Drinks
- CodeForces 200B Drinks
- CodeForces 200B Drinks
- Codeforces-200B-Drinks
- Drinks
- codeforces #442 div2 Olya and Energy Drinks
- Codeforces 877 D Olya and Energy Drinks
- codeforces——200B——Drinks
- Codeforces 877D Olya and Energy Drinks【思维优化Bfs】
- Codeforces 877 D. Olya and Energy Drinks (bfs)
- Codeforces Round #442 (Div. 2) D. Olya and Energy Drinks
- codeforces 877 problem D Olya and Energy Drinks 【bfs剪枝】
- Codeforces Round #877 (Div. 2) D. Olya and Energy Drinks
- [codeforces] 877D. Olya and Energy Drinks (BFS)
- B. Drinks
- Drinks Watermelon
- Codeforces Round #442(Div.2)Problem D Olya and Energy Drinks(BFS)
- Codeforces Round #442 (Div. 2) Olya and Energy Drinks(搜索 bfs 套路题)
- java 编程中遇到空指针异常的可能原因java.lang.nullpointerexception
- C/C++ 读写文件
- win10 python 3.5.2 安装lightgbm
- BSEG和BSIS、BSAS、BSID、BSAD、BSIK、BSAK六个表的关系(转)
- 多行新闻滚动栏实现
- Codeforces Drinks
- Python的socket网络编程1 sock简单通信实现
- scala 第一周编程作业
- 用VS+CImg+IPP部署image processing的C++工程
- 实战Java高并发程序设计-04 Java并发包锁和其他工具的使用
- iai_kinect2 ros kinetic下编译错误的问题
- Activity
- 将一个程序中的cout获取出来生成日志文件
- 高内聚与低耦合