結果

問題 No.1291 小手調べ
ユーザー kcvlexkcvlex
提出日時 2020-11-20 21:23:35
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 8,032 KB
最終ジャッジ日時 2023-09-30 18:53:54
合計ジャッジ時間 639 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

pows = [10]
for _ in range(110):
    last = pows[-1]
    pows.append(last * 10)
pows[0] += 1
n = int(input())
for _ in range(n):
    d = int(input())
    if d == 1:
        print(pows[0])
    else:
        print(pows[d - 1] - pows[d - 2])
0