結果

問題 No.1177 余りは?
ユーザー tikitaka1201tikitaka1201
提出日時 2020-09-19 13:02:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 460 ms / 1,000 ms
コード長 120 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,344 KB
実行使用メモリ 84,504 KB
最終ジャッジ日時 2023-09-05 16:43:27
合計ジャッジ時間 8,946 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
73,892 KB
testcase_01 AC 460 ms
84,504 KB
testcase_02 AC 125 ms
72,020 KB
testcase_03 AC 302 ms
77,776 KB
testcase_04 AC 160 ms
74,104 KB
testcase_05 AC 187 ms
74,632 KB
testcase_06 AC 84 ms
72,212 KB
testcase_07 AC 82 ms
71,368 KB
testcase_08 AC 376 ms
81,828 KB
testcase_09 AC 328 ms
80,224 KB
testcase_10 AC 69 ms
71,408 KB
testcase_11 AC 203 ms
75,568 KB
testcase_12 AC 77 ms
71,324 KB
testcase_13 AC 95 ms
72,072 KB
testcase_14 AC 108 ms
71,968 KB
testcase_15 AC 143 ms
73,888 KB
testcase_16 AC 116 ms
72,308 KB
testcase_17 AC 390 ms
82,980 KB
testcase_18 AC 173 ms
74,920 KB
testcase_19 AC 244 ms
76,568 KB
testcase_20 AC 98 ms
71,968 KB
testcase_21 AC 212 ms
75,468 KB
testcase_22 AC 361 ms
81,364 KB
testcase_23 AC 180 ms
74,900 KB
testcase_24 AC 121 ms
72,408 KB
testcase_25 AC 306 ms
78,540 KB
testcase_26 AC 364 ms
81,248 KB
testcase_27 AC 96 ms
72,108 KB
testcase_28 AC 205 ms
75,492 KB
testcase_29 AC 187 ms
74,436 KB
testcase_30 AC 185 ms
74,644 KB
testcase_31 AC 247 ms
76,692 KB
testcase_32 AC 69 ms
71,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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