結果

問題 No.1658 Product / Sum
ユーザー maimai
提出日時 2021-08-27 22:51:41
言語 Ruby
(3.3.0)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 83 bytes
コンパイル時間 475 ms
コンパイル使用メモリ 11,168 KB
実行使用メモリ 17,616 KB
最終ジャッジ日時 2023-08-13 10:17:40
合計ジャッジ時間 4,596 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,116 KB
testcase_01 AC 81 ms
15,024 KB
testcase_02 AC 83 ms
15,224 KB
testcase_03 AC 80 ms
15,024 KB
testcase_04 AC 80 ms
15,096 KB
testcase_05 AC 118 ms
17,616 KB
testcase_06 AC 117 ms
17,592 KB
testcase_07 AC 85 ms
15,524 KB
testcase_08 AC 113 ms
17,060 KB
testcase_09 AC 91 ms
15,868 KB
testcase_10 AC 89 ms
15,556 KB
testcase_11 AC 89 ms
15,496 KB
testcase_12 AC 88 ms
15,612 KB
testcase_13 AC 95 ms
15,968 KB
testcase_14 AC 118 ms
17,508 KB
testcase_15 AC 93 ms
15,784 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,k = gets.split.map(&:to_i)
z = 2*k
z += (n-2)

puts ([2*k] + [1]*(n-2) + [z])*' '
0