/* 输入: * 81 4 2 2 输出: 94.73 3.41 * */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<String[]> list = new ArrayList<>(); while (sc.hasNextLine()) { String str = sc.nextLine().trim(); // 一直暂停, 我是这么解决的! if ("".equals(str)) break; String[] line = str.split(" "); list.add(line); } sc.close(); Double[] res = doTest1(list); for (Double d: res) { System.out.println(String.format("%.2f", d)); } }
点赞 2

相关推荐

牛大宝儿236:还没入职就PUA,[发火我之前遇到一个月给500块钱的
点赞 评论 收藏
分享
04-09 09:47
门头沟学院 Java
Arbelite_:2-3k,这工资还不如去摇奶茶
点赞 评论 收藏
分享
牛客网
牛客企业服务