結果

問題 No.1336 Union on Blackboard
ユーザー 👑 KazunKazun
提出日時 2021-01-15 21:34:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 86,792 KB
実行使用メモリ 76,588 KB
最終ジャッジ日時 2023-08-17 16:14:43
合計ジャッジ時間 4,318 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,052 KB
testcase_01 AC 82 ms
76,504 KB
testcase_02 AC 82 ms
76,548 KB
testcase_03 AC 84 ms
76,252 KB
testcase_04 AC 87 ms
76,196 KB
testcase_05 AC 87 ms
76,472 KB
testcase_06 AC 83 ms
76,436 KB
testcase_07 AC 82 ms
76,276 KB
testcase_08 AC 83 ms
76,464 KB
testcase_09 AC 81 ms
76,224 KB
testcase_10 AC 84 ms
76,588 KB
testcase_11 AC 83 ms
76,280 KB
testcase_12 AC 84 ms
76,208 KB
testcase_13 AC 84 ms
76,276 KB
testcase_14 AC 84 ms
76,444 KB
testcase_15 AC 84 ms
76,508 KB
testcase_16 AC 85 ms
76,500 KB
testcase_17 AC 84 ms
76,444 KB
testcase_18 AC 85 ms
76,524 KB
testcase_19 AC 84 ms
76,128 KB
testcase_20 AC 83 ms
76,464 KB
testcase_21 AC 84 ms
76,528 KB
testcase_22 AC 83 ms
76,268 KB
testcase_23 AC 83 ms
76,276 KB
testcase_24 AC 82 ms
76,204 KB
testcase_25 AC 82 ms
76,236 KB
testcase_26 AC 82 ms
76,228 KB
testcase_27 AC 82 ms
76,324 KB
testcase_28 AC 82 ms
76,180 KB
testcase_29 AC 82 ms
76,204 KB
testcase_30 AC 71 ms
71,076 KB
testcase_31 AC 72 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())

Mod=10**9+7

for _ in range(T):
    N=int(input())
    A=list(map(int,input().split()))

    B=[a+1 for a in A]

    prod=1
    for b in B:
        prod*=b
        prod%=Mod

    prod-=1
    prod%=Mod
    print(prod)
0