結果

問題 No.1177 余りは?
ユーザー anagohirameanagohirame
提出日時 2020-08-21 23:41:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 284 ms / 1,000 ms
コード長 162 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 82,092 KB
実行使用メモリ 80,024 KB
最終ジャッジ日時 2024-04-23 06:45:07
合計ジャッジ時間 4,868 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
72,484 KB
testcase_01 AC 284 ms
80,024 KB
testcase_02 AC 74 ms
71,052 KB
testcase_03 AC 178 ms
75,224 KB
testcase_04 AC 93 ms
72,272 KB
testcase_05 AC 111 ms
73,348 KB
testcase_06 AC 44 ms
64,352 KB
testcase_07 AC 42 ms
63,044 KB
testcase_08 AC 223 ms
77,736 KB
testcase_09 AC 199 ms
77,212 KB
testcase_10 AC 34 ms
53,832 KB
testcase_11 AC 121 ms
73,212 KB
testcase_12 AC 43 ms
60,940 KB
testcase_13 AC 52 ms
67,764 KB
testcase_14 AC 63 ms
70,976 KB
testcase_15 AC 83 ms
71,828 KB
testcase_16 AC 66 ms
71,052 KB
testcase_17 AC 228 ms
78,444 KB
testcase_18 AC 105 ms
72,640 KB
testcase_19 AC 148 ms
74,912 KB
testcase_20 AC 56 ms
71,220 KB
testcase_21 AC 124 ms
73,580 KB
testcase_22 AC 209 ms
77,996 KB
testcase_23 AC 103 ms
72,888 KB
testcase_24 AC 68 ms
71,396 KB
testcase_25 AC 183 ms
75,568 KB
testcase_26 AC 218 ms
77,792 KB
testcase_27 AC 51 ms
68,528 KB
testcase_28 AC 122 ms
73,400 KB
testcase_29 AC 111 ms
73,708 KB
testcase_30 AC 109 ms
73,604 KB
testcase_31 AC 142 ms
74,772 KB
testcase_32 AC 34 ms
52,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 10**9+7
p, k = map(int, input().split())
if (pow(10, p-1)-1) % p >= k:
	print(((pow(10, p-1)-1) // p + 1) % MOD)
else:
	print(((pow(10, p-1)-1) // p) % MOD)
0