結果
問題 | No.1336 Union on Blackboard |
ユーザー |
![]() |
提出日時 | 2021-01-15 22:02:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 59,904 KB |
最終ジャッジ日時 | 2024-11-26 14:44:28 |
合計ジャッジ時間 | 2,500 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 31 |
ソースコード
tests = int(input())for _ in range(tests):n = int(input())a = map(int, input().split())current = 0for ai in a:current = (current + ai + current * ai) % 1000000007print(current)