結果

問題 No.1177 余りは?
ユーザー nikkukunnikkukun
提出日時 2020-08-21 22:54:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 196 ms / 1,000 ms
コード長 133 bytes
コンパイル時間 1,290 ms
コンパイル使用メモリ 86,900 KB
実行使用メモリ 77,132 KB
最終ジャッジ日時 2023-08-05 09:03:47
合計ジャッジ時間 6,472 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
72,752 KB
testcase_01 AC 196 ms
77,132 KB
testcase_02 AC 86 ms
71,700 KB
testcase_03 AC 147 ms
74,884 KB
testcase_04 AC 101 ms
73,000 KB
testcase_05 AC 109 ms
73,052 KB
testcase_06 AC 74 ms
70,968 KB
testcase_07 AC 73 ms
70,756 KB
testcase_08 AC 172 ms
75,972 KB
testcase_09 AC 155 ms
75,188 KB
testcase_10 AC 69 ms
70,964 KB
testcase_11 AC 115 ms
73,384 KB
testcase_12 AC 70 ms
70,956 KB
testcase_13 AC 77 ms
71,236 KB
testcase_14 AC 83 ms
71,712 KB
testcase_15 AC 96 ms
72,672 KB
testcase_16 AC 85 ms
71,744 KB
testcase_17 AC 175 ms
76,608 KB
testcase_18 AC 106 ms
73,136 KB
testcase_19 AC 130 ms
73,736 KB
testcase_20 AC 78 ms
71,116 KB
testcase_21 AC 120 ms
73,144 KB
testcase_22 AC 169 ms
76,112 KB
testcase_23 AC 106 ms
73,296 KB
testcase_24 AC 86 ms
71,764 KB
testcase_25 AC 148 ms
74,816 KB
testcase_26 AC 169 ms
75,664 KB
testcase_27 AC 76 ms
70,956 KB
testcase_28 AC 116 ms
73,372 KB
testcase_29 AC 109 ms
73,236 KB
testcase_30 AC 109 ms
73,084 KB
testcase_31 AC 126 ms
73,584 KB
testcase_32 AC 69 ms
71,176 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