結果
問題 | No.1336 Union on Blackboard |
ユーザー |
![]() |
提出日時 | 2021-01-15 21:51:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 253 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-26 14:11:20 |
合計ジャッジ時間 | 1,970 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 31 |
ソースコード
def solve():n = int(input())a = list(map(int,input().split()))mod = 10**9 + 7s = a[0]for i in range(1,n):s = s+a[i] + (s*a[i])s %= modprint(s)t = int(input())for _ in range(t):solve()