結果

問題 No.1177 余りは?
ユーザー ryusukeryusuke
提出日時 2022-08-10 21:28:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 288 ms / 1,000 ms
コード長 127 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 79,604 KB
最終ジャッジ日時 2023-10-21 06:25:42
合計ジャッジ時間 6,938 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
72,148 KB
testcase_01 AC 288 ms
79,604 KB
testcase_02 AC 74 ms
70,952 KB
testcase_03 AC 190 ms
74,532 KB
testcase_04 AC 100 ms
72,096 KB
testcase_05 AC 114 ms
73,044 KB
testcase_06 AC 45 ms
63,620 KB
testcase_07 AC 45 ms
63,620 KB
testcase_08 AC 237 ms
77,132 KB
testcase_09 AC 211 ms
76,548 KB
testcase_10 AC 40 ms
53,380 KB
testcase_11 AC 123 ms
72,952 KB
testcase_12 AC 43 ms
61,572 KB
testcase_13 AC 53 ms
67,716 KB
testcase_14 AC 66 ms
70,948 KB
testcase_15 AC 87 ms
71,604 KB
testcase_16 AC 69 ms
70,828 KB
testcase_17 AC 250 ms
77,892 KB
testcase_18 AC 107 ms
72,332 KB
testcase_19 AC 156 ms
73,988 KB
testcase_20 AC 57 ms
70,960 KB
testcase_21 AC 127 ms
73,044 KB
testcase_22 AC 222 ms
76,912 KB
testcase_23 AC 115 ms
72,660 KB
testcase_24 AC 72 ms
70,920 KB
testcase_25 AC 188 ms
74,900 KB
testcase_26 AC 234 ms
77,476 KB
testcase_27 AC 55 ms
67,716 KB
testcase_28 AC 126 ms
73,024 KB
testcase_29 AC 123 ms
73,028 KB
testcase_30 AC 122 ms
73,052 KB
testcase_31 AC 152 ms
73,896 KB
testcase_32 AC 36 ms
53,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 10 ** (p - 1) // p

if 10 ** (p - 1) % p >= k:
    ans += 1

print(ans % (10 ** 9 + 7))
0