結果

問題 No.1336 Union on Blackboard
ユーザー convexineqconvexineq
提出日時 2021-01-15 21:26:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 1,730 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 76,432 KB
最終ジャッジ日時 2023-08-17 16:01:45
合計ジャッジ時間 4,098 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,308 KB
testcase_01 AC 77 ms
76,256 KB
testcase_02 AC 76 ms
76,432 KB
testcase_03 AC 80 ms
76,124 KB
testcase_04 AC 78 ms
76,252 KB
testcase_05 AC 75 ms
75,900 KB
testcase_06 AC 77 ms
76,104 KB
testcase_07 AC 77 ms
76,164 KB
testcase_08 AC 77 ms
76,260 KB
testcase_09 AC 81 ms
75,944 KB
testcase_10 AC 81 ms
76,072 KB
testcase_11 AC 81 ms
76,104 KB
testcase_12 AC 78 ms
76,280 KB
testcase_13 AC 78 ms
76,204 KB
testcase_14 AC 79 ms
76,372 KB
testcase_15 AC 78 ms
75,968 KB
testcase_16 AC 79 ms
76,252 KB
testcase_17 AC 79 ms
76,104 KB
testcase_18 AC 78 ms
76,152 KB
testcase_19 AC 77 ms
76,308 KB
testcase_20 AC 78 ms
76,228 KB
testcase_21 AC 76 ms
76,428 KB
testcase_22 AC 78 ms
76,364 KB
testcase_23 AC 77 ms
76,372 KB
testcase_24 AC 78 ms
76,248 KB
testcase_25 AC 77 ms
76,248 KB
testcase_26 AC 78 ms
76,252 KB
testcase_27 AC 78 ms
76,160 KB
testcase_28 AC 79 ms
76,156 KB
testcase_29 AC 78 ms
76,432 KB
testcase_30 AC 69 ms
71,540 KB
testcase_31 AC 70 ms
71,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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