結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 2015-11-08 12:44:27 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 100 ms / 2,000 ms |
コード長 | 479 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-12-30 11:33:04 |
合計ジャッジ時間 | 3,691 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
コンパイルメッセージ
Syntax OK
ソースコード
str = gets.to_s.splita = str[0]b = str[1]if a.length < b.length thenputs belsif a.length > b.length thenputs aelsea.length.times do |i|if a[i] == "4" && b[i] == "7" thenputs abreakelsif a[i] == "7" && b[i] == "4" thenputs bbreakelsif a[i] < b[i] thenputs bbreakelsif a[i] > b[i] thenputs abreakendendend