結果

問題 No.1177 余りは?
ユーザー WSKRWSKR
提出日時 2020-09-22 21:49:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 9,840 KB
最終ジャッジ日時 2023-09-09 04:20:30
合計ジャッジ時間 5,280 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
8,668 KB
testcase_01 AC 280 ms
9,840 KB
testcase_02 AC 55 ms
8,612 KB
testcase_03 AC 169 ms
9,228 KB
testcase_04 AC 74 ms
8,768 KB
testcase_05 AC 97 ms
8,852 KB
testcase_06 AC 25 ms
8,376 KB
testcase_07 AC 25 ms
8,300 KB
testcase_08 AC 220 ms
9,408 KB
testcase_09 AC 187 ms
9,484 KB
testcase_10 AC 16 ms
7,812 KB
testcase_11 AC 109 ms
8,968 KB
testcase_12 AC 23 ms
8,408 KB
testcase_13 AC 32 ms
8,452 KB
testcase_14 AC 42 ms
8,460 KB
testcase_15 AC 65 ms
8,820 KB
testcase_16 AC 48 ms
8,564 KB
testcase_17 AC 229 ms
9,504 KB
testcase_18 AC 84 ms
8,804 KB
testcase_19 AC 139 ms
9,136 KB
testcase_20 AC 33 ms
8,500 KB
testcase_21 AC 115 ms
9,008 KB
testcase_22 AC 206 ms
9,444 KB
testcase_23 AC 88 ms
8,800 KB
testcase_24 AC 51 ms
8,592 KB
testcase_25 AC 169 ms
9,328 KB
testcase_26 AC 212 ms
9,404 KB
testcase_27 AC 33 ms
8,412 KB
testcase_28 AC 110 ms
9,012 KB
testcase_29 AC 97 ms
8,900 KB
testcase_30 AC 94 ms
8,896 KB
testcase_31 AC 138 ms
9,172 KB
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 10** 9 + 7
def main():
    p, k = map(int, input().split())
    if k == 0:
        ans = 10**(p-1)//p
        print(ans%mod)
    else:
        ans = (10**(p-1)-k-1)//p+1
        print(ans%mod)


if __name__ == "__main__":
    main()

0