結果

問題 No.1035 Color Box
ユーザー pluto77pluto77
提出日時 2020-06-14 15:37:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 580 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 76,952 KB
最終ジャッジ日時 2023-09-09 18:29:56
合計ジャッジ時間 6,844 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 201 ms
76,952 KB
testcase_01 AC 71 ms
71,288 KB
testcase_02 AC 70 ms
71,488 KB
testcase_03 AC 90 ms
76,256 KB
testcase_04 AC 90 ms
76,312 KB
testcase_05 AC 85 ms
76,128 KB
testcase_06 AC 71 ms
71,288 KB
testcase_07 AC 73 ms
71,240 KB
testcase_08 AC 186 ms
76,688 KB
testcase_09 AC 121 ms
76,344 KB
testcase_10 AC 69 ms
71,308 KB
testcase_11 AC 69 ms
71,128 KB
testcase_12 AC 71 ms
71,360 KB
testcase_13 AC 166 ms
76,732 KB
testcase_14 AC 176 ms
76,888 KB
testcase_15 AC 201 ms
76,852 KB
testcase_16 AC 71 ms
71,408 KB
testcase_17 AC 71 ms
71,540 KB
testcase_18 AC 71 ms
71,116 KB
testcase_19 AC 199 ms
76,928 KB
testcase_20 AC 71 ms
71,472 KB
testcase_21 AC 71 ms
71,380 KB
testcase_22 AC 71 ms
71,472 KB
testcase_23 AC 70 ms
71,148 KB
testcase_24 AC 70 ms
71,472 KB
testcase_25 AC 72 ms
71,336 KB
testcase_26 AC 69 ms
71,516 KB
testcase_27 AC 70 ms
71,236 KB
testcase_28 AC 70 ms
71,140 KB
testcase_29 AC 71 ms
71,168 KB
testcase_30 AC 69 ms
71,352 KB
testcase_31 AC 71 ms
71,360 KB
testcase_32 AC 71 ms
71,472 KB
testcase_33 AC 71 ms
71,368 KB
testcase_34 AC 71 ms
71,024 KB
testcase_35 AC 69 ms
71,416 KB
testcase_36 AC 70 ms
71,460 KB
testcase_37 AC 69 ms
71,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1035
mod=10**9+7
n,m=map(int,input().split())
res=0
c=1
for i in range(m+1):
 t=pow(i,n,mod)
 if (m+i)%2:
  t=mod-t
 res+=t*c
 c*=(m-i)*pow(i+1,mod-2,mod)
 c%=mod
print(res%mod)
0