結果

問題 No.1291 小手調べ
ユーザー harurunharurun
提出日時 2021-02-04 13:21:31
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 7,884 KB
最終ジャッジ日時 2023-09-13 07:52:54
合計ジャッジ時間 854 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 AC 15 ms
7,760 KB
testcase_02 AC 16 ms
7,776 KB
testcase_03 AC 16 ms
7,884 KB
testcase_04 AC 16 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
pin=stdin.readline
def main():
  N=int(pin())
  d=[0]*100
  d[0]=1
  a=1
  b=9
  for i in range(100):
    d[i]+=b-a+1
    a*=10
    b*=10
    b+=9
  for i in range(N):
    print(d[int(pin())-1])
  return
main()
0