NYOJ题目10505C?5S?

---------------------------------------

水、

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

原文地址:https://www.cnblogs.com/cc11001100/p/5875702.html