結果

問題 No.1291 小手調べ
ユーザー yuruhiyayuruhiya
提出日時 2020-11-20 21:46:55
言語 Crystal
(1.3.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 16,177 ms
使用メモリ 6,952 KB
最終ジャッジ日時 2023-01-31 20:14:05
合計ジャッジ時間 16,618 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 3 ms
4,900 KB
testcase_01 AC 3 ms
4,900 KB
testcase_02 AC 3 ms
4,904 KB
testcase_03 AC 3 ms
6,952 KB
testcase_04 AC 3 ms
4,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

lib C
  fun strtoll(s : UInt8*, p : UInt8**, b : Int32) : Int64
end

class String
  def to_i64
    C.strtoll(self, nil, 10)
  end
end

read_line.to_i.times do
  x = read_line.to_i
  if x == 1
    puts 10
  else
    puts "9" + "0"*(x - 1)
  end
end
0