結果

問題 No.1291 小手調べ
ユーザー yuruhiyayuruhiya
提出日時 2020-11-20 21:46:55
言語 Crystal
(1.11.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 17,179 ms
コンパイル使用メモリ 253,280 KB
実行使用メモリ 4,404 KB
最終ジャッジ日時 2023-09-13 12:38:24
合計ジャッジ時間 17,895 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,404 KB
testcase_01 AC 3 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 3 ms
4,380 KB
testcase_04 AC 3 ms
4,392 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