結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 2016-12-18 10:44:50 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 112 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 225 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-12-30 12:19:36 |
合計ジャッジ時間 | 3,510 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
コンパイルメッセージ
Syntax OK
ソースコード
A, B = gets.split.map(&:to_i)x, y = ("%011d" % A).each_char.zip(("%011d" % B).each_char).find {|(a, b)| a != b}.map(&:to_i)ans = if (x == 4 and y == 7) or (not (x == 7 and y == 4) and x > y)AelseBendputs ans