結果
| 問題 | No.1336 Union on Blackboard |
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2021-01-15 21:51:08 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 31 ms / 2,000 ms |
| + 410µs | |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 80,868 KB |
| 実行使用メモリ | 64,692 KB |
| 最終ジャッジ日時 | 2026-09-30 09:52:15 |
| 合計ジャッジ時間 | 3,274 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 |
ソースコード
mod=10**9+7
def solve():
N=int(input())
A=list(map(int,input().split()))
P=A[0]
for i in range(1,N):
P=(P+A[i]+P*A[i])%mod
print(P)
for i in range(int(input())):
solve()
googol_S0