結果
問題 | No.138 化石のバージョン |
ユーザー |
|
提出日時 | 2019-04-30 13:51:03 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 92 ms / 5,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 277 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-12-29 22:11:02 |
合計ジャッジ時間 | 4,611 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
コンパイルメッセージ
Syntax OK
ソースコード
a, b, c = gets.split('.').map(&:to_i)x, y, z = gets.split('.').map(&:to_i)if x < aputs 'YES'elsif x == a && y < bputs 'YES'elsif x == a && y == b && z <= cputs 'YES'elseputs 'NO'end