結果

問題 No.1177 余りは?
ユーザー 37zigen37zigen
提出日時 2020-08-22 07:33:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 290 ms / 1,000 ms
コード長 127 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,456 KB
最終ジャッジ日時 2024-04-23 06:58:26
合計ジャッジ時間 4,709 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
11,392 KB
testcase_01 AC 290 ms
12,456 KB
testcase_02 AC 66 ms
11,136 KB
testcase_03 AC 184 ms
11,744 KB
testcase_04 AC 86 ms
11,392 KB
testcase_05 AC 108 ms
11,520 KB
testcase_06 AC 36 ms
11,008 KB
testcase_07 AC 35 ms
10,880 KB
testcase_08 AC 244 ms
11,872 KB
testcase_09 AC 201 ms
12,088 KB
testcase_10 AC 27 ms
10,752 KB
testcase_11 AC 121 ms
11,496 KB
testcase_12 AC 34 ms
10,880 KB
testcase_13 AC 43 ms
11,008 KB
testcase_14 AC 53 ms
11,136 KB
testcase_15 AC 77 ms
11,264 KB
testcase_16 AC 60 ms
11,136 KB
testcase_17 AC 241 ms
12,052 KB
testcase_18 AC 96 ms
11,392 KB
testcase_19 AC 155 ms
11,768 KB
testcase_20 AC 43 ms
11,008 KB
testcase_21 AC 132 ms
11,520 KB
testcase_22 AC 218 ms
11,964 KB
testcase_23 AC 100 ms
11,392 KB
testcase_24 AC 62 ms
11,136 KB
testcase_25 AC 189 ms
11,920 KB
testcase_26 AC 224 ms
11,856 KB
testcase_27 AC 46 ms
11,008 KB
testcase_28 AC 126 ms
11,520 KB
testcase_29 AC 109 ms
11,488 KB
testcase_30 AC 105 ms
11,520 KB
testcase_31 AC 151 ms
11,764 KB
testcase_32 AC 26 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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