結果

問題 No.1177 余りは?
ユーザー sansaquasansaqua
提出日時 2020-08-21 23:06:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 181 ms / 1,000 ms
コード長 130 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 82,012 KB
実行使用メモリ 75,796 KB
最終ジャッジ日時 2024-04-23 06:43:58
合計ジャッジ時間 3,853 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
72,136 KB
testcase_01 AC 181 ms
75,796 KB
testcase_02 AC 58 ms
70,896 KB
testcase_03 AC 113 ms
73,420 KB
testcase_04 AC 67 ms
71,688 KB
testcase_05 AC 78 ms
72,428 KB
testcase_06 AC 41 ms
57,900 KB
testcase_07 AC 37 ms
57,836 KB
testcase_08 AC 135 ms
74,860 KB
testcase_09 AC 119 ms
74,148 KB
testcase_10 AC 36 ms
52,484 KB
testcase_11 AC 80 ms
72,400 KB
testcase_12 AC 39 ms
56,748 KB
testcase_13 AC 43 ms
60,652 KB
testcase_14 AC 51 ms
68,112 KB
testcase_15 AC 65 ms
71,556 KB
testcase_16 AC 53 ms
69,484 KB
testcase_17 AC 142 ms
74,604 KB
testcase_18 AC 73 ms
71,936 KB
testcase_19 AC 95 ms
72,628 KB
testcase_20 AC 44 ms
61,820 KB
testcase_21 AC 83 ms
72,280 KB
testcase_22 AC 132 ms
74,424 KB
testcase_23 AC 76 ms
72,036 KB
testcase_24 AC 56 ms
71,248 KB
testcase_25 AC 119 ms
73,356 KB
testcase_26 AC 131 ms
74,692 KB
testcase_27 AC 44 ms
60,820 KB
testcase_28 AC 85 ms
72,332 KB
testcase_29 AC 80 ms
72,440 KB
testcase_30 AC 81 ms
72,644 KB
testcase_31 AC 97 ms
72,504 KB
testcase_32 AC 36 ms
52,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
input = stdin.readline

p, k = map(int, input().split())

print((pow(10, p-1) + (p-k-1)) // p % 1000000007)
0