結果

問題 No.1336 Union on Blackboard
ユーザー rlangevinrlangevin
提出日時 2023-01-02 16:30:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 1,283 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2023-08-17 23:40:28
合計ジャッジ時間 5,831 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,124 KB
testcase_01 AC 84 ms
76,192 KB
testcase_02 AC 84 ms
76,360 KB
testcase_03 AC 82 ms
76,296 KB
testcase_04 AC 82 ms
76,500 KB
testcase_05 AC 82 ms
76,504 KB
testcase_06 AC 81 ms
76,336 KB
testcase_07 AC 82 ms
76,360 KB
testcase_08 AC 82 ms
76,544 KB
testcase_09 AC 82 ms
76,404 KB
testcase_10 AC 81 ms
76,244 KB
testcase_11 AC 82 ms
76,472 KB
testcase_12 AC 82 ms
76,320 KB
testcase_13 AC 81 ms
76,248 KB
testcase_14 AC 82 ms
76,376 KB
testcase_15 AC 81 ms
76,544 KB
testcase_16 AC 80 ms
76,284 KB
testcase_17 AC 82 ms
76,368 KB
testcase_18 AC 81 ms
76,508 KB
testcase_19 AC 81 ms
76,476 KB
testcase_20 AC 82 ms
76,360 KB
testcase_21 AC 81 ms
76,376 KB
testcase_22 AC 83 ms
76,544 KB
testcase_23 AC 82 ms
76,328 KB
testcase_24 AC 81 ms
76,500 KB
testcase_25 AC 82 ms
76,368 KB
testcase_26 AC 81 ms
76,284 KB
testcase_27 AC 83 ms
76,356 KB
testcase_28 AC 81 ms
76,312 KB
testcase_29 AC 80 ms
76,320 KB
testcase_30 AC 74 ms
71,524 KB
testcase_31 AC 74 ms
71,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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