結果
問題 | No.722 100×100=1000 |
ユーザー |
|
提出日時 | 2018-08-03 22:32:56 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 101 ms / 2,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-12-29 19:20:00 |
合計ジャッジ時間 | 4,455 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 |
コンパイルメッセージ
Syntax OK
ソースコード
def judge(x)if x == 0return falseendcnt = 0while x % 10 == 0x /= 10cnt += 1endif x / 10 > 0return falseendreturn cnt >= 2enda, b = gets.split.map(&:to_i)if judge(a.abs) && judge(b.abs)p a * b / 10elseans = a * bputs (ans <= -100000000 || ans >= 100000000) ? "E" : ansend