在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
--------------------------------------- 水、
AC代码: 1 import java.util.Scanner; 2 3 public class Main { 4 5 public static void main(String[] args) { 6 7 Scanner sc=new Scanner(System.in); 8 9 int times=sc.nextInt(); 10 while(times-->0){ 11 double a=sc.nextInt()*1.0/sc.nextInt(); 12 double b=sc.nextInt()*1.0/sc.nextInt(); 13 14 System.out.println(a>=b?"iphone 5S":"iphone 5C"); 15 } 16 17 } 18 19 }
题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=1050 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论