結果

問題 No.1336 Union on Blackboard
ユーザー hir355hir355
提出日時 2021-01-15 21:42:11
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 76,720 KB
最終ジャッジ日時 2023-08-17 16:31:02
合計ジャッジ時間 4,307 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,372 KB
testcase_01 AC 83 ms
76,492 KB
testcase_02 AC 80 ms
76,496 KB
testcase_03 AC 79 ms
76,492 KB
testcase_04 AC 77 ms
76,536 KB
testcase_05 AC 79 ms
76,584 KB
testcase_06 AC 81 ms
76,388 KB
testcase_07 AC 80 ms
76,524 KB
testcase_08 AC 79 ms
76,420 KB
testcase_09 AC 78 ms
76,532 KB
testcase_10 AC 79 ms
76,572 KB
testcase_11 AC 79 ms
76,560 KB
testcase_12 AC 80 ms
76,720 KB
testcase_13 AC 79 ms
76,708 KB
testcase_14 AC 80 ms
76,680 KB
testcase_15 AC 78 ms
76,432 KB
testcase_16 AC 80 ms
76,700 KB
testcase_17 AC 80 ms
76,696 KB
testcase_18 AC 79 ms
76,516 KB
testcase_19 AC 78 ms
76,612 KB
testcase_20 AC 79 ms
76,540 KB
testcase_21 AC 81 ms
76,536 KB
testcase_22 AC 79 ms
76,628 KB
testcase_23 AC 80 ms
76,532 KB
testcase_24 AC 80 ms
76,548 KB
testcase_25 AC 83 ms
76,676 KB
testcase_26 AC 83 ms
76,496 KB
testcase_27 AC 80 ms
76,532 KB
testcase_28 AC 83 ms
76,512 KB
testcase_29 AC 82 ms
76,684 KB
testcase_30 AC 72 ms
71,312 KB
testcase_31 AC 70 ms
71,452 KB
権限があれば一括ダウンロードができます

ソースコード

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