結果

問題 No.1336 Union on Blackboard
ユーザー hir355hir355
提出日時 2021-01-15 21:42:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 81,992 KB
実行使用メモリ 62,816 KB
最終ジャッジ日時 2024-11-26 13:47:38
合計ジャッジ時間 2,459 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 10 ** 9 + 7
t = int(input())
for _ in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    ans = 1
    for x in a:
        ans *= (x + 1)
        ans %= MOD
    print((ans - 1) % MOD)
0