結果

問題 No.1336 Union on Blackboard
ユーザー tktk_snsntktk_snsn
提出日時 2021-01-15 23:28:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 76,604 KB
最終ジャッジ日時 2023-08-17 19:07:54
合計ジャッジ時間 4,188 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,260 KB
testcase_01 AC 80 ms
76,504 KB
testcase_02 AC 79 ms
76,416 KB
testcase_03 AC 80 ms
76,572 KB
testcase_04 AC 80 ms
76,540 KB
testcase_05 AC 81 ms
76,360 KB
testcase_06 AC 80 ms
76,392 KB
testcase_07 AC 78 ms
76,316 KB
testcase_08 AC 80 ms
76,376 KB
testcase_09 AC 78 ms
76,416 KB
testcase_10 AC 80 ms
76,604 KB
testcase_11 AC 80 ms
76,476 KB
testcase_12 AC 79 ms
76,596 KB
testcase_13 AC 80 ms
76,376 KB
testcase_14 AC 80 ms
76,492 KB
testcase_15 AC 81 ms
76,316 KB
testcase_16 AC 79 ms
76,360 KB
testcase_17 AC 81 ms
76,256 KB
testcase_18 AC 81 ms
76,472 KB
testcase_19 AC 79 ms
76,280 KB
testcase_20 AC 81 ms
76,364 KB
testcase_21 AC 79 ms
76,360 KB
testcase_22 AC 82 ms
76,576 KB
testcase_23 AC 79 ms
76,356 KB
testcase_24 AC 79 ms
76,496 KB
testcase_25 AC 80 ms
76,256 KB
testcase_26 AC 78 ms
76,416 KB
testcase_27 AC 78 ms
76,420 KB
testcase_28 AC 80 ms
76,380 KB
testcase_29 AC 80 ms
76,480 KB
testcase_30 AC 73 ms
71,380 KB
testcase_31 AC 73 ms
71,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)

mod = 10 ** 9 + 7
T = int(input())
for _ in range(T):
    N = int(input())
    A = list(map(int, input().split()))
    ans = 1
    for a in A:
        ans *= 1 + a
        ans %= mod
    ans -= 1
    print(ans % mod)
0