結果

問題 No.964 2020
ユーザー gemmarogemmaro
提出日時 2020-01-13 20:27:45
言語 Ruby
(3.3.0)
結果
AC  
実行時間 79 ms / 2,020 ms
コード長 136 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,328 KB
最終ジャッジ日時 2023-08-23 12:58:30
合計ジャッジ時間 1,819 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,328 KB
testcase_01 AC 78 ms
15,152 KB
testcase_02 AC 79 ms
15,132 KB
testcase_03 AC 77 ms
15,308 KB
testcase_04 AC 77 ms
15,248 KB
testcase_05 AC 77 ms
15,076 KB
testcase_06 AC 77 ms
14,992 KB
testcase_07 AC 77 ms
15,120 KB
testcase_08 AC 76 ms
15,072 KB
testcase_09 AC 77 ms
15,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

N = gets.to_i
result = N.times.reverse_each.map { |i| i.to_s * N }.join
puts result == '0' ? '1' : result
0