結果

問題 No.964 2020
ユーザー tamarontamaron
提出日時 2020-01-13 20:43:28
言語 Ruby
(3.2.2)
結果
AC  
実行時間 82 ms / 2,020 ms
コード長 94 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 11,272 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-08-23 13:15:31
合計ジャッジ時間 1,858 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,300 KB
testcase_01 AC 81 ms
15,092 KB
testcase_02 AC 79 ms
15,144 KB
testcase_03 AC 80 ms
15,228 KB
testcase_04 AC 82 ms
15,292 KB
testcase_05 AC 82 ms
15,248 KB
testcase_06 AC 81 ms
15,288 KB
testcase_07 AC 81 ms
15,148 KB
testcase_08 AC 81 ms
15,256 KB
testcase_09 AC 81 ms
15,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N=gets.to_i
if N==1
    puts 1
    exit
end
puts ((1..N-1).to_a+[0]).map{|e|e.to_s*N}.join("")
0