結果

問題 No.796 well known
ユーザー fshutofshuto
提出日時 2019-05-01 15:39:15
言語 Ruby
(3.2.2)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 16,336 KB
最終ジャッジ日時 2023-08-30 04:24:32
合計ジャッジ時間 3,328 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,200 KB
testcase_01 AC 81 ms
15,196 KB
testcase_02 AC 82 ms
15,152 KB
testcase_03 AC 81 ms
15,332 KB
testcase_04 AC 116 ms
16,160 KB
testcase_05 AC 119 ms
15,980 KB
testcase_06 AC 129 ms
16,336 KB
testcase_07 AC 94 ms
15,480 KB
testcase_08 AC 120 ms
16,212 KB
testcase_09 AC 107 ms
15,608 KB
testcase_10 AC 127 ms
16,288 KB
testcase_11 AC 90 ms
15,332 KB
testcase_12 AC 101 ms
15,764 KB
testcase_13 AC 116 ms
16,032 KB
testcase_14 AC 97 ms
15,492 KB
testcase_15 AC 104 ms
15,680 KB
testcase_16 AC 129 ms
16,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
ans = []
t = 312456
n.times do |i|
  if i == n - 1
    ans << t - 2
  else
    ans << 3
    t -= 3
  end
end

puts ans.join(" ")
0