結果
問題 | No.1336 Union on Blackboard |
ユーザー | googol_S0 |
提出日時 | 2021-01-15 21:51:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 60,544 KB |
最終ジャッジ日時 | 2024-11-26 14:10:46 |
合計ジャッジ時間 | 2,530 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()