結果

問題 No.964 2020
ユーザー koba-e964koba-e964
提出日時 2020-01-14 01:07:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,020 ms
コード長 122 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 15,324 KB
最終ジャッジ日時 2023-08-24 22:48:51
合計ジャッジ時間 1,784 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,272 KB
testcase_01 AC 83 ms
15,224 KB
testcase_02 AC 82 ms
15,324 KB
testcase_03 AC 80 ms
15,204 KB
testcase_04 AC 80 ms
15,028 KB
testcase_05 AC 82 ms
15,236 KB
testcase_06 AC 82 ms
15,004 KB
testcase_07 AC 82 ms
15,140 KB
testcase_08 AC 82 ms
15,248 KB
testcase_09 AC 82 ms
15,036 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
for _ in 1..n
  lo=[1,10-n].min
  hi=lo+n-1
  for i in (lo..hi).map{|v| v}.reverse
    print i
  end
end
puts
0