NYOJ题目10505C?5S?
生活随笔
收集整理的這篇文章主要介紹了
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
總結
以上是生活随笔為你收集整理的NYOJ题目10505C?5S?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 转:亿级Web系统的高容错性实践(好博文
- 下一篇: 通过console口连接交换机