結果

問題 No.1177 余りは?
ユーザー ntudantuda
提出日時 2021-11-23 18:47:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 331 ms / 1,000 ms
コード長 135 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 87,312 KB
実行使用メモリ 80,472 KB
最終ジャッジ日時 2023-09-07 22:04:37
合計ジャッジ時間 7,478 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
73,100 KB
testcase_01 AC 331 ms
80,472 KB
testcase_02 AC 103 ms
72,260 KB
testcase_03 AC 216 ms
76,064 KB
testcase_04 AC 126 ms
73,320 KB
testcase_05 AC 144 ms
73,812 KB
testcase_06 AC 78 ms
71,404 KB
testcase_07 AC 79 ms
71,404 KB
testcase_08 AC 283 ms
78,472 KB
testcase_09 AC 245 ms
77,380 KB
testcase_10 AC 71 ms
71,484 KB
testcase_11 AC 157 ms
74,204 KB
testcase_12 AC 72 ms
71,392 KB
testcase_13 AC 84 ms
71,388 KB
testcase_14 AC 95 ms
71,876 KB
testcase_15 AC 117 ms
73,052 KB
testcase_16 AC 95 ms
72,136 KB
testcase_17 AC 276 ms
79,132 KB
testcase_18 AC 138 ms
73,708 KB
testcase_19 AC 188 ms
74,556 KB
testcase_20 AC 91 ms
72,060 KB
testcase_21 AC 163 ms
73,916 KB
testcase_22 AC 260 ms
78,460 KB
testcase_23 AC 141 ms
73,912 KB
testcase_24 AC 102 ms
72,000 KB
testcase_25 AC 224 ms
76,340 KB
testcase_26 AC 266 ms
78,112 KB
testcase_27 AC 86 ms
71,348 KB
testcase_28 AC 163 ms
73,868 KB
testcase_29 AC 151 ms
73,868 KB
testcase_30 AC 153 ms
73,396 KB
testcase_31 AC 189 ms
74,768 KB
testcase_32 AC 73 ms
71,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p, k = map(int, input().split())
MOD = 10 ** 9 + 7
ans = 10 ** (p - 1) // p
x = 10 ** (p - 1) % p
if x > k:
    ans += 1
print(ans%MOD)
0