結果

問題 No.1181 Product Sum for All Subsets
ユーザー googol_S0googol_S0
提出日時 2020-08-21 22:33:51
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 78 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 213,448 KB
最終ジャッジ日時 2024-04-23 06:12:40
合計ジャッジ時間 4,320 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
59,500 KB
testcase_01 AC 35 ms
52,212 KB
testcase_02 AC 36 ms
52,988 KB
testcase_03 AC 33 ms
52,496 KB
testcase_04 AC 34 ms
52,572 KB
testcase_05 AC 33 ms
52,204 KB
testcase_06 AC 33 ms
53,312 KB
testcase_07 AC 33 ms
52,888 KB
testcase_08 AC 34 ms
52,556 KB
testcase_09 AC 36 ms
53,008 KB
testcase_10 AC 34 ms
52,988 KB
testcase_11 AC 35 ms
52,284 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K=map(int,input().split());m=10**9+7;X=K*(K+1)//2;print(((X+K)**N%m-X**N)%m)
0