結果
問題 |
No.1336 Union on Blackboard
|
ユーザー |
|
提出日時 | 2021-02-12 09:40:07 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 198 bytes |
コンパイル時間 | 867 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 61,312 KB |
最終ジャッジ日時 | 2024-07-19 04:08:46 |
合計ジャッジ時間 | 3,037 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 31 |
ソースコード
t=int(input()) ans=[] mod=10**9+7 for _ in range(t): n=int(input()) a=list(map(int,input().split())) tmp=0 for x in a: tmp=tmp+tmp*x+x tmp%=mod ans.append(tmp) print(*ans,sep='\n')