結果

問題 No.964 2020
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-01-31 00:38:40
言語 Ruby
(3.3.0)
結果
AC  
実行時間 74 ms / 2,020 ms
コード長 102 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,576 KB
実行使用メモリ 15,236 KB
最終ジャッジ日時 2023-10-14 09:07:52
合計ジャッジ時間 1,605 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
15,140 KB
testcase_01 AC 74 ms
15,144 KB
testcase_02 AC 71 ms
15,236 KB
testcase_03 AC 71 ms
15,088 KB
testcase_04 AC 67 ms
15,068 KB
testcase_05 AC 66 ms
15,020 KB
testcase_06 AC 66 ms
15,128 KB
testcase_07 AC 68 ms
15,040 KB
testcase_08 AC 69 ms
15,100 KB
testcase_09 AC 72 ms
15,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
a = ('0'..'9').to_a.reverse
ans = ''
n.times do |i|
  ans << a[i] * n
end
puts ans
0