結果

問題 No.1177 余りは?
ユーザー neetotoneetoto
提出日時 2020-10-30 23:48:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 281 ms / 1,000 ms
コード長 112 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 9,848 KB
最終ジャッジ日時 2023-09-29 08:57:37
合計ジャッジ時間 5,479 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
8,696 KB
testcase_01 AC 281 ms
9,848 KB
testcase_02 AC 55 ms
8,584 KB
testcase_03 AC 170 ms
9,244 KB
testcase_04 AC 75 ms
8,712 KB
testcase_05 AC 97 ms
8,764 KB
testcase_06 AC 26 ms
8,268 KB
testcase_07 AC 26 ms
8,376 KB
testcase_08 AC 222 ms
9,444 KB
testcase_09 AC 188 ms
9,404 KB
testcase_10 AC 17 ms
7,920 KB
testcase_11 AC 110 ms
8,932 KB
testcase_12 AC 23 ms
8,268 KB
testcase_13 AC 34 ms
8,316 KB
testcase_14 AC 43 ms
8,432 KB
testcase_15 AC 67 ms
8,512 KB
testcase_16 AC 49 ms
8,632 KB
testcase_17 AC 231 ms
9,396 KB
testcase_18 AC 87 ms
8,712 KB
testcase_19 AC 140 ms
9,044 KB
testcase_20 AC 34 ms
8,312 KB
testcase_21 AC 115 ms
9,004 KB
testcase_22 AC 207 ms
9,392 KB
testcase_23 AC 90 ms
8,812 KB
testcase_24 AC 52 ms
8,604 KB
testcase_25 AC 171 ms
9,156 KB
testcase_26 AC 214 ms
9,424 KB
testcase_27 AC 33 ms
8,428 KB
testcase_28 AC 111 ms
8,852 KB
testcase_29 AC 98 ms
8,768 KB
testcase_30 AC 95 ms
8,824 KB
testcase_31 AC 139 ms
8,948 KB
testcase_32 AC 16 ms
7,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p, k = map(int, input().split())
n = 0
ans = 0


ans = (10**(p-1) - k)//p + 1

ans = ans % (10**9+7)
print(ans)
0