結果

問題 No.646 逆ピラミッド
ユーザー leafcupleafcup
提出日時 2023-05-12 18:15:40
言語 Ruby
(3.3.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 11,560 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-08-19 02:17:29
合計ジャッジ時間 1,903 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
15,356 KB
testcase_01 AC 68 ms
15,100 KB
testcase_02 AC 77 ms
15,056 KB
testcase_03 AC 76 ms
15,048 KB
testcase_04 AC 75 ms
15,244 KB
testcase_05 AC 75 ms
15,056 KB
testcase_06 AC 67 ms
15,020 KB
testcase_07 AC 64 ms
15,284 KB
testcase_08 AC 73 ms
15,100 KB
testcase_09 AC 65 ms
15,096 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# 入力された値を文字列で受け取る
input = gets.chomp

# 数値に変換する
a = input.to_i

a.times do|n|
  puts input * (a - n)
end
0