結果

問題 No.1177 余りは?
ユーザー jensenjensen
提出日時 2021-01-14 16:16:17
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 247 ms / 1,000 ms
コード長 74 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 9,836 KB
最終ジャッジ日時 2023-08-15 22:13:03
合計ジャッジ時間 5,262 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
8,792 KB
testcase_01 AC 247 ms
9,836 KB
testcase_02 AC 51 ms
8,604 KB
testcase_03 AC 158 ms
9,140 KB
testcase_04 AC 67 ms
8,700 KB
testcase_05 AC 87 ms
8,888 KB
testcase_06 AC 23 ms
8,364 KB
testcase_07 AC 21 ms
8,416 KB
testcase_08 AC 198 ms
9,416 KB
testcase_09 AC 169 ms
9,484 KB
testcase_10 AC 15 ms
7,800 KB
testcase_11 AC 97 ms
8,956 KB
testcase_12 AC 20 ms
8,200 KB
testcase_13 AC 30 ms
8,564 KB
testcase_14 AC 38 ms
8,648 KB
testcase_15 AC 58 ms
8,736 KB
testcase_16 AC 43 ms
8,544 KB
testcase_17 AC 206 ms
9,360 KB
testcase_18 AC 75 ms
8,880 KB
testcase_19 AC 124 ms
9,084 KB
testcase_20 AC 30 ms
8,372 KB
testcase_21 AC 101 ms
8,912 KB
testcase_22 AC 184 ms
9,336 KB
testcase_23 AC 84 ms
8,708 KB
testcase_24 AC 49 ms
8,568 KB
testcase_25 AC 158 ms
9,284 KB
testcase_26 AC 194 ms
9,432 KB
testcase_27 AC 30 ms
8,344 KB
testcase_28 AC 98 ms
9,008 KB
testcase_29 AC 87 ms
8,952 KB
testcase_30 AC 87 ms
8,968 KB
testcase_31 AC 125 ms
9,180 KB
testcase_32 AC 14 ms
7,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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