Fork me on GitHub

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

posted @ 2016-09-15 23:54  CC11001100  阅读(114)  评论(0编辑  收藏  举报