HDOJ2061Treasure the new start, freshmen!
来源:互联网 发布:sql语句select from 编辑:程序博客网 时间:2024/06/05 19:46
HDACM2061
import java.util.Scanner;class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(n-->0){ int m = sc.nextInt(); double ssum =0; double csum =0; boolean boo = true; while(m-->0){ String str = sc.next(); double c = sc.nextDouble(); double s = sc.nextDouble(); if (s<60&&s>=0) { boo = false; } csum += c; ssum += s*c; } if (boo) { System.out.printf("%.2f",ssum/csum); System.out.println(); }else { System.out.println("Sorry!"); } if (n>0) { System.out.println(); } } }}
阅读全文
0 0
- HDOJ2061Treasure the new start, freshmen!
- HDU2061Treasure the new start, freshmen!
- Treasure the new start, freshmen!
- Treasure the new start, freshmen!
- Treasure the new start, freshmen!
- HDOJ2061_Treasure the new start, freshmen!
- hdu 2061 Treasure the new start, freshmen!
- Treasure the new start, freshmen! 2061
- HDU 2061 Treasure the new start, freshmen!
- HDU 2061 Treasure the new start, freshmen!
- HDU2061 Treasure the new start, freshmen!【水题】
- hdu2061--Treasure the new start, freshmen!
- hdoj 2061 Treasure the new start, freshmen!
- HDOJ 2061 Treasure the new start, freshmen!
- hdoj 2061 Treasure the new start, freshmen!
- hdu2061 Treasure the new start, freshmen!
- HDU——2061 Treasure the new start, freshmen!
- 杭电ACM2061--Treasure the new start, freshmen!
- ECMAScript6
- 特征选择
- 前端之页面性能优化
- 【2017.10.4】怪自己年纪大吗
- 一个简单的shell
- HDOJ2061Treasure the new start, freshmen!
- C语言 system设置背景色
- Gin框架初识
- 解决refreshing gradle project 和Building gradle project info 一直卡住\速度慢
- StandardScalers数据预处理
- 在Windows的Visual Studio环境中安装与使用CLAPACK
- svn冲突问题详解
- HTML解析库--JsoupDemo
- Faster R-CNN:tf-faster-rcnn代码结构