結果

問題 No.964 2020
ユーザー nononaganononaga
提出日時 2020-08-29 08:01:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 81 ms / 2,020 ms
コード長 130 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 11,428 KB
実行使用メモリ 15,280 KB
最終ジャッジ日時 2023-08-08 23:57:42
合計ジャッジ時間 1,813 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,280 KB
testcase_01 AC 76 ms
15,112 KB
testcase_02 AC 76 ms
15,264 KB
testcase_03 AC 78 ms
15,212 KB
testcase_04 AC 76 ms
15,068 KB
testcase_05 AC 76 ms
15,204 KB
testcase_06 AC 78 ms
15,148 KB
testcase_07 AC 76 ms
15,272 KB
testcase_08 AC 75 ms
14,952 KB
testcase_09 AC 75 ms
15,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
if n == 1
    puts n
    exit
end
array = []
n.times.map{|addNumber| array << (n - (addNumber+1))}
puts (array*n).join
0