結果

問題 No.138 化石のバージョン
ユーザー quilt-tailsquilt-tails
提出日時 2016-11-03 02:29:21
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-05-03 21:19:48
合計ジャッジ時間 4,234 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 74 ms
12,160 KB
testcase_03 AC 74 ms
12,160 KB
testcase_04 AC 74 ms
12,160 KB
testcase_05 AC 75 ms
12,032 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 73 ms
12,032 KB
testcase_15 AC 77 ms
12,288 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 77 ms
12,160 KB
testcase_20 AC 74 ms
12,032 KB
testcase_21 WA -
testcase_22 AC 74 ms
12,160 KB
testcase_23 AC 75 ms
12,032 KB
testcase_24 AC 75 ms
12,288 KB
testcase_25 AC 73 ms
12,160 KB
testcase_26 AC 74 ms
12,160 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 81 ms
12,032 KB
testcase_30 AC 78 ms
12,032 KB
testcase_31 AC 79 ms
12,288 KB
testcase_32 WA -
testcase_33 AC 79 ms
12,032 KB
testcase_34 AC 80 ms
12,032 KB
testcase_35 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a, b, c = gets.split(".").map(&:to_i)
d, e, f = gets.split(".").map(&:to_i)
sum_1 = a * 1^000^000 + b * 1000 + c
sum_2 = d * 1^000^000 + e * 1000 + f
puts sum_1 > sum_2 ? "YES" : "NO"
0