結果

問題 No.1177 余りは?
ユーザー 37zigen37zigen
提出日時 2020-08-22 07:22:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,584 KB
最終ジャッジ日時 2024-04-23 06:57:57
合計ジャッジ時間 10,758 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 204 ms
11,392 KB
testcase_01 AC 831 ms
12,584 KB
testcase_02 AC 145 ms
11,136 KB
testcase_03 AC 493 ms
11,896 KB
testcase_04 AC 202 ms
11,392 KB
testcase_05 AC 270 ms
11,648 KB
testcase_06 AC 56 ms
11,008 KB
testcase_07 AC 53 ms
10,880 KB
testcase_08 AC 650 ms
12,148 KB
testcase_09 AC 540 ms
12,096 KB
testcase_10 AC 29 ms
10,880 KB
testcase_11 AC 366 ms
11,636 KB
testcase_12 AC 46 ms
10,880 KB
testcase_13 AC 79 ms
11,008 KB
testcase_14 AC 110 ms
11,136 KB
testcase_15 AC 177 ms
11,264 KB
testcase_16 AC 128 ms
11,264 KB
testcase_17 AC 689 ms
12,284 KB
testcase_18 AC 241 ms
11,392 KB
testcase_19 AC 398 ms
11,772 KB
testcase_20 AC 83 ms
11,008 KB
testcase_21 AC 329 ms
11,640 KB
testcase_22 AC 605 ms
12,284 KB
testcase_23 AC 243 ms
11,516 KB
testcase_24 AC 131 ms
11,136 KB
testcase_25 AC 486 ms
12,052 KB
testcase_26 AC 624 ms
12,152 KB
testcase_27 AC 80 ms
11,136 KB
testcase_28 AC 306 ms
11,640 KB
testcase_29 AC 271 ms
11,640 KB
testcase_30 AC 268 ms
11,520 KB
testcase_31 AC 393 ms
11,764 KB
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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