結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-06-06 10:48:48 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 5,000 ms |
| コード長 | 194 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-12-29 13:58:33 |
| 合計ジャッジ時間 | 4,907 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
コンパイルメッセージ
Syntax OK
ソースコード
as=STDIN.gets.chomp.split(".")
bs=STDIN.gets.chomp.split(".")
sumA=0
sumB=0
3.times do |i|
sumA=sumA*1000+as[i].to_i
sumB=sumB*1000+bs[i].to_i
end
if sumA<sumB
puts "NO"
else
puts "YES"
end
horiesiniti