結果

問題 No.1177 余りは?
ユーザー kozykozy
提出日時 2020-07-20 14:22:06
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 283 ms / 1,000 ms
コード長 78 bytes
コンパイル時間 464 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 9,756 KB
最終ジャッジ日時 2023-08-05 08:55:17
合計ジャッジ時間 4,903 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
8,636 KB
testcase_01 AC 283 ms
9,756 KB
testcase_02 AC 55 ms
8,692 KB
testcase_03 AC 168 ms
9,228 KB
testcase_04 AC 75 ms
8,608 KB
testcase_05 AC 96 ms
8,892 KB
testcase_06 AC 26 ms
8,420 KB
testcase_07 AC 25 ms
8,260 KB
testcase_08 AC 223 ms
9,392 KB
testcase_09 AC 187 ms
9,368 KB
testcase_10 AC 16 ms
7,928 KB
testcase_11 AC 109 ms
8,900 KB
testcase_12 AC 22 ms
8,312 KB
testcase_13 AC 33 ms
8,384 KB
testcase_14 AC 42 ms
8,564 KB
testcase_15 AC 65 ms
8,672 KB
testcase_16 AC 48 ms
8,608 KB
testcase_17 AC 225 ms
9,360 KB
testcase_18 AC 84 ms
8,744 KB
testcase_19 AC 138 ms
9,076 KB
testcase_20 AC 33 ms
8,348 KB
testcase_21 AC 114 ms
8,884 KB
testcase_22 AC 205 ms
9,492 KB
testcase_23 AC 87 ms
8,856 KB
testcase_24 AC 51 ms
8,532 KB
testcase_25 AC 168 ms
9,124 KB
testcase_26 AC 213 ms
9,448 KB
testcase_27 AC 33 ms
8,344 KB
testcase_28 AC 109 ms
8,952 KB
testcase_29 AC 97 ms
8,948 KB
testcase_30 AC 94 ms
8,816 KB
testcase_31 AC 138 ms
8,980 KB
testcase_32 AC 15 ms
7,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod=10**9+7
p,k=map(int,input().split())
print((((pow(10,p-1)-1-k)//p)+1)%mod)
0