結果

問題 No.1291 小手調べ
ユーザー tamura2004tamura2004
提出日時 2021-01-21 23:26:25
言語 Ruby
(3.3.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 11,244 KB
実行使用メモリ 15,308 KB
最終ジャッジ日時 2023-08-26 15:11:58
合計ジャッジ時間 1,521 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,148 KB
testcase_01 AC 76 ms
15,124 KB
testcase_02 AC 77 ms
15,308 KB
testcase_03 AC 76 ms
15,268 KB
testcase_04 AC 74 ms
15,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_s.to_i
n.times do
  d = gets.to_s.to_i
  if d == 1
    puts 10
  else
    puts 9 * 10 ** (d - 1)
  end
end
0