結果

問題 No.722 100×100=1000
ユーザー ikdikd
提出日時 2018-08-03 23:07:44
言語 Ruby
(3.2.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 313 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 15,328 KB
最終ジャッジ日時 2023-08-02 14:59:33
合計ジャッジ時間 3,970 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,252 KB
testcase_01 AC 79 ms
15,092 KB
testcase_02 AC 79 ms
15,148 KB
testcase_03 AC 79 ms
15,276 KB
testcase_04 AC 78 ms
15,292 KB
testcase_05 AC 78 ms
15,124 KB
testcase_06 AC 78 ms
15,076 KB
testcase_07 AC 78 ms
15,128 KB
testcase_08 AC 78 ms
15,128 KB
testcase_09 AC 78 ms
15,256 KB
testcase_10 AC 79 ms
15,080 KB
testcase_11 AC 79 ms
15,044 KB
testcase_12 AC 78 ms
15,176 KB
testcase_13 AC 79 ms
15,280 KB
testcase_14 AC 77 ms
15,300 KB
testcase_15 AC 78 ms
15,328 KB
testcase_16 AC 79 ms
15,176 KB
testcase_17 AC 79 ms
15,260 KB
testcase_18 AC 78 ms
15,276 KB
testcase_19 AC 78 ms
15,128 KB
testcase_20 AC 80 ms
15,320 KB
testcase_21 AC 79 ms
15,228 KB
testcase_22 AC 79 ms
15,284 KB
testcase_23 AC 79 ms
15,256 KB
testcase_24 AC 77 ms
15,132 KB
testcase_25 AC 80 ms
15,268 KB
testcase_26 AC 79 ms
15,132 KB
testcase_27 WA -
testcase_28 AC 78 ms
15,216 KB
testcase_29 AC 78 ms
15,136 KB
testcase_30 AC 78 ms
15,044 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a, b = gets.split.map(&:to_i)

if a % 100 == 0 and b % 100 == 0
  res = a * b
  a, b = a.abs.to_s, b.abs.to_s
  if a.count("0") + 1 == a.size and b.count("0") + 1 == b.size
    puts res / 10
  else
    puts res
  end
else
  if -99999999 <= a * b and a * b <= 99999999
    puts a * b
  else
    puts "E"
  end
end
0