結果

問題 No.1177 余りは?
ユーザー nikkukunnikkukun
提出日時 2020-08-21 22:54:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 159 ms / 1,000 ms
コード長 133 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,512 KB
実行使用メモリ 76,832 KB
最終ジャッジ日時 2024-04-23 06:43:00
合計ジャッジ時間 3,747 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
72,104 KB
testcase_01 AC 159 ms
76,832 KB
testcase_02 AC 60 ms
71,040 KB
testcase_03 AC 114 ms
73,688 KB
testcase_04 AC 69 ms
72,080 KB
testcase_05 AC 82 ms
72,708 KB
testcase_06 AC 40 ms
58,876 KB
testcase_07 AC 39 ms
57,864 KB
testcase_08 AC 139 ms
75,912 KB
testcase_09 AC 119 ms
74,800 KB
testcase_10 AC 38 ms
53,440 KB
testcase_11 AC 88 ms
72,696 KB
testcase_12 AC 42 ms
56,904 KB
testcase_13 AC 48 ms
60,944 KB
testcase_14 AC 52 ms
70,068 KB
testcase_15 AC 66 ms
72,056 KB
testcase_16 AC 54 ms
70,988 KB
testcase_17 AC 139 ms
75,876 KB
testcase_18 AC 85 ms
72,984 KB
testcase_19 AC 98 ms
73,112 KB
testcase_20 AC 46 ms
61,864 KB
testcase_21 AC 87 ms
72,516 KB
testcase_22 AC 128 ms
75,196 KB
testcase_23 AC 77 ms
72,240 KB
testcase_24 AC 61 ms
71,284 KB
testcase_25 AC 117 ms
74,520 KB
testcase_26 AC 134 ms
75,480 KB
testcase_27 AC 45 ms
61,012 KB
testcase_28 AC 86 ms
73,072 KB
testcase_29 AC 83 ms
72,992 KB
testcase_30 AC 76 ms
72,552 KB
testcase_31 AC 95 ms
73,028 KB
testcase_32 AC 34 ms
53,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p, k = map(int, input().split())
n = 10 ** (p - 1) - k - 1

MOD = 10 ** 9 + 7
ans = 0
if n >= 0:
	ans = (n // p + 1) % MOD
print(ans)
0