結果

問題 No.646 逆ピラミッド
ユーザー b0ntenmarub0ntenmaru
提出日時 2018-04-11 02:19:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 81 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 11,404 KB
実行使用メモリ 15,272 KB
最終ジャッジ日時 2023-09-09 04:02:53
合計ジャッジ時間 1,951 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,140 KB
testcase_01 AC 80 ms
15,272 KB
testcase_02 AC 82 ms
15,024 KB
testcase_03 AC 80 ms
15,124 KB
testcase_04 AC 81 ms
15,212 KB
testcase_05 AC 79 ms
15,132 KB
testcase_06 AC 81 ms
15,072 KB
testcase_07 AC 81 ms
15,036 KB
testcase_08 AC 80 ms
15,040 KB
testcase_09 AC 79 ms
15,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - i
Syntax OK

ソースコード

diff #

n = gets.chomp
sum = n.to_i

for i in 1..n.to_i
    puts n * sum
    sum -= 1
end
0