結果

問題 No.1336 Union on Blackboard
ユーザー convexineqconvexineq
提出日時 2021-01-15 21:26:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 62,824 KB
最終ジャッジ日時 2024-05-04 22:40:46
合計ジャッジ時間 2,505 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,220 KB
testcase_01 AC 41 ms
61,580 KB
testcase_02 AC 41 ms
60,836 KB
testcase_03 AC 43 ms
60,932 KB
testcase_04 AC 42 ms
60,156 KB
testcase_05 AC 42 ms
61,884 KB
testcase_06 AC 41 ms
61,712 KB
testcase_07 AC 43 ms
61,544 KB
testcase_08 AC 41 ms
61,732 KB
testcase_09 AC 42 ms
61,188 KB
testcase_10 AC 43 ms
62,152 KB
testcase_11 AC 42 ms
61,000 KB
testcase_12 AC 45 ms
61,816 KB
testcase_13 AC 42 ms
62,064 KB
testcase_14 AC 43 ms
61,320 KB
testcase_15 AC 41 ms
61,476 KB
testcase_16 AC 42 ms
62,400 KB
testcase_17 AC 41 ms
62,332 KB
testcase_18 AC 41 ms
61,600 KB
testcase_19 AC 41 ms
61,160 KB
testcase_20 AC 41 ms
62,520 KB
testcase_21 AC 43 ms
62,824 KB
testcase_22 AC 41 ms
61,460 KB
testcase_23 AC 41 ms
60,944 KB
testcase_24 AC 39 ms
62,536 KB
testcase_25 AC 40 ms
61,880 KB
testcase_26 AC 40 ms
62,476 KB
testcase_27 AC 42 ms
61,648 KB
testcase_28 AC 40 ms
61,596 KB
testcase_29 AC 41 ms
61,288 KB
testcase_30 AC 33 ms
52,464 KB
testcase_31 AC 32 ms
52,952 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