結果

問題 No.987 N×Mマス計算(基本)
ユーザー kcz146kcz146
提出日時 2020-06-16 01:30:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 16,236 KB
最終ジャッジ日時 2023-09-16 10:47:11
合計ジャッジ時間 3,745 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
15,156 KB
testcase_01 AC 84 ms
15,152 KB
testcase_02 AC 132 ms
15,836 KB
testcase_03 AC 93 ms
15,580 KB
testcase_04 AC 119 ms
15,564 KB
testcase_05 AC 112 ms
15,688 KB
testcase_06 AC 128 ms
15,740 KB
testcase_07 AC 104 ms
15,496 KB
testcase_08 AC 86 ms
15,348 KB
testcase_09 AC 85 ms
15,404 KB
testcase_10 AC 86 ms
15,552 KB
testcase_11 AC 128 ms
15,816 KB
testcase_12 AC 140 ms
16,140 KB
testcase_13 AC 104 ms
15,920 KB
testcase_14 AC 85 ms
15,444 KB
testcase_15 AC 102 ms
15,860 KB
testcase_16 AC 142 ms
15,684 KB
testcase_17 AC 123 ms
16,236 KB
testcase_18 AC 141 ms
15,672 KB
testcase_19 AC 173 ms
16,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - m
Syntax OK

ソースコード

diff #

n,m=gets.split.map(&:to_i)
op,*b = gets.split
b = b.map(&:to_i)
a=n.times.map{gets.to_i}
a.each do |x|
    b.each do |y|
        print eval([x,op,y]*'').to_s + ' '
    end
    puts
end
0