結果
問題 | No.138 化石のバージョン |
ユーザー | ちよちゃん |
提出日時 | 2016-05-30 15:45:27 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 123 ms / 5,000 ms |
コード長 | 989 bytes |
コンパイル時間 | 3,266 ms |
コンパイル使用メモリ | 71,972 KB |
実行使用メモリ | 57,576 KB |
最終ジャッジ日時 | 2023-08-28 13:40:56 |
合計ジャッジ時間 | 9,087 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 117 ms
55,464 KB |
testcase_01 | AC | 119 ms
55,992 KB |
testcase_02 | AC | 121 ms
55,480 KB |
testcase_03 | AC | 121 ms
55,664 KB |
testcase_04 | AC | 122 ms
55,772 KB |
testcase_05 | AC | 121 ms
55,644 KB |
testcase_06 | AC | 122 ms
55,588 KB |
testcase_07 | AC | 120 ms
55,812 KB |
testcase_08 | AC | 122 ms
55,424 KB |
testcase_09 | AC | 120 ms
55,712 KB |
testcase_10 | AC | 121 ms
55,616 KB |
testcase_11 | AC | 120 ms
55,660 KB |
testcase_12 | AC | 121 ms
55,608 KB |
testcase_13 | AC | 121 ms
55,688 KB |
testcase_14 | AC | 119 ms
55,372 KB |
testcase_15 | AC | 123 ms
55,680 KB |
testcase_16 | AC | 120 ms
55,756 KB |
testcase_17 | AC | 119 ms
56,232 KB |
testcase_18 | AC | 120 ms
55,600 KB |
testcase_19 | AC | 121 ms
55,504 KB |
testcase_20 | AC | 121 ms
56,032 KB |
testcase_21 | AC | 122 ms
55,600 KB |
testcase_22 | AC | 122 ms
55,880 KB |
testcase_23 | AC | 123 ms
55,684 KB |
testcase_24 | AC | 122 ms
55,468 KB |
testcase_25 | AC | 123 ms
55,760 KB |
testcase_26 | AC | 121 ms
55,328 KB |
testcase_27 | AC | 122 ms
55,596 KB |
testcase_28 | AC | 122 ms
55,544 KB |
testcase_29 | AC | 123 ms
55,472 KB |
testcase_30 | AC | 120 ms
55,376 KB |
testcase_31 | AC | 119 ms
55,688 KB |
testcase_32 | AC | 122 ms
57,576 KB |
testcase_33 | AC | 120 ms
55,448 KB |
testcase_34 | AC | 121 ms
55,540 KB |
testcase_35 | AC | 122 ms
55,660 KB |
ソースコード
package yukicoder; import java.util.Scanner; public class Yuki138 { public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str1 = scan.next(); String str2 = scan.next(); scan.close(); System.out.println(judgeNumbers(str1, str2)); } private static String judgeNumbers(String str1,String str2) { //String com_numbers1 = ""; //String com_numbers2 = ""; String[] str1arr = str1.split("\\."); String[] str2arr = str2.split("\\."); for(int i = 0; i < str1arr.length; i++){ if(Integer.parseInt(str1arr[i])<Integer.parseInt(str2arr[i])){ return "NO"; }else if(Integer.parseInt(str1arr[i])>Integer.parseInt(str2arr[i])){ break; } } /* for(int i = 0; i < str1arr.length; i++){ com_numbers1 += str1arr[i]; } for(int i = 0; i < str2arr.length; i++){ com_numbers2 += str2arr[i]; } if(Integer.parseInt(com_numbers1)<Integer.parseInt(com_numbers2)){ return "NO"; } */ return "YES"; } }