結果

問題 No.1336 Union on Blackboard
ユーザー MitarushiMitarushi
提出日時 2020-12-11 18:43:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 1,314 ms
コンパイル使用メモリ 86,892 KB
実行使用メモリ 76,332 KB
最終ジャッジ日時 2023-08-14 16:17:09
合計ジャッジ時間 4,417 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,164 KB
testcase_01 AC 67 ms
75,924 KB
testcase_02 AC 66 ms
76,056 KB
testcase_03 AC 64 ms
76,160 KB
testcase_04 AC 66 ms
76,004 KB
testcase_05 AC 65 ms
76,180 KB
testcase_06 AC 67 ms
76,232 KB
testcase_07 AC 67 ms
75,900 KB
testcase_08 AC 66 ms
76,044 KB
testcase_09 AC 65 ms
76,072 KB
testcase_10 AC 67 ms
76,100 KB
testcase_11 AC 66 ms
76,088 KB
testcase_12 AC 66 ms
76,220 KB
testcase_13 AC 68 ms
76,208 KB
testcase_14 AC 67 ms
75,924 KB
testcase_15 AC 66 ms
76,000 KB
testcase_16 AC 66 ms
76,156 KB
testcase_17 AC 66 ms
76,084 KB
testcase_18 AC 67 ms
76,208 KB
testcase_19 AC 69 ms
76,056 KB
testcase_20 AC 68 ms
76,088 KB
testcase_21 AC 67 ms
76,156 KB
testcase_22 AC 67 ms
76,208 KB
testcase_23 AC 67 ms
75,924 KB
testcase_24 AC 67 ms
76,172 KB
testcase_25 AC 68 ms
76,332 KB
testcase_26 AC 65 ms
76,228 KB
testcase_27 AC 66 ms
76,004 KB
testcase_28 AC 69 ms
76,232 KB
testcase_29 AC 65 ms
76,204 KB
testcase_30 AC 59 ms
71,328 KB
testcase_31 AC 61 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
mod = 10**9 + 7
for _ in range(t):
    n = int(input())
    ans = 1
    for i in map(int, input().split()):
        ans *= i+1
        ans %= mod
    print((ans - 1) % mod)
0