結果
| 問題 |
No.1336 Union on Blackboard
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-15 21:23:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 375 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 60,544 KB |
| 最終ジャッジ日時 | 2024-11-26 13:07:14 |
| 合計ジャッジ時間 | 2,601 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 |
ソースコード
import sys
input = sys.stdin.readline
for _ in range(int(input())):
n = int(input())
A = list(map(int,input().split()))
res = 1
mod = 10**9+7
for i in range(n):
res *= (A[i]+1)
res %= mod
res -= 1
res %= mod
print(res)