結果

問題 No.964 2020
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-01-31 00:34:59
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 96 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 15,284 KB
最終ジャッジ日時 2023-10-14 09:07:42
合計ジャッジ時間 2,027 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,232 KB
testcase_01 AC 83 ms
15,100 KB
testcase_02 AC 82 ms
15,016 KB
testcase_03 AC 82 ms
15,244 KB
testcase_04 AC 82 ms
15,088 KB
testcase_05 AC 82 ms
15,108 KB
testcase_06 AC 83 ms
15,284 KB
testcase_07 AC 82 ms
15,108 KB
testcase_08 AC 80 ms
15,248 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - a
Syntax OK

ソースコード

diff #

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