結果

問題 No.987 N×Mマス計算(基本)
ユーザー cielciel
提出日時 2020-02-16 18:48:37
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-04-16 03:38:32
合計ジャッジ時間 2,858 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 101 ms
12,160 KB
testcase_02 AC 102 ms
12,288 KB
testcase_03 AC 98 ms
12,288 KB
testcase_04 AC 100 ms
12,288 KB
testcase_05 AC 98 ms
12,160 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 99 ms
12,288 KB
testcase_11 WA -
testcase_12 AC 106 ms
12,416 KB
testcase_13 AC 95 ms
12,160 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 97 ms
12,288 KB
testcase_18 WA -
testcase_19 AC 105 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - op
Syntax OK

ソースコード

diff #

a=`dd`.split
n,m=a.shift(2).map(&:to_i)
op=a.shift
b=a.shift(m).map(&:to_i)
a=a.map(&:to_i)
n.times{|i|puts b.map{|e|a[i]*e}*' '}
0