結果

問題 No.1528 Not 1
ユーザー tamura2004tamura2004
提出日時 2021-06-26 20:37:08
言語 Crystal
(1.11.2)
結果
WA  
実行時間 -
コード長 123 bytes
コンパイル時間 18,224 ms
コンパイル使用メモリ 255,020 KB
実行使用メモリ 6,780 KB
最終ジャッジ日時 2023-09-07 15:40:14
合計ジャッジ時間 21,107 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 9 ms
6,612 KB
testcase_02 AC 4 ms
5,148 KB
testcase_03 AC 5 ms
4,988 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 6 ms
5,736 KB
testcase_07 AC 7 ms
6,552 KB
testcase_08 WA -
testcase_09 AC 4 ms
4,796 KB
testcase_10 AC 4 ms
5,236 KB
testcase_11 AC 3 ms
4,444 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
4,416 KB
testcase_16 AC 3 ms
4,384 KB
testcase_17 AC 2 ms
4,408 KB
testcase_18 AC 8 ms
6,736 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = gets.to_s.to_i64

if n == 1
  puts 1
  exit
end

n = (n + 1) // 2
a = Array.new(n){ |i| (i + 1) * 2 }.join(" ")
puts a
0