結果
問題 | No.1336 Union on Blackboard |
ユーザー | Mitarushi |
提出日時 | 2020-12-11 18:43:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 189 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 82,412 KB |
実行使用メモリ | 60,288 KB |
最終ジャッジ日時 | 2024-11-22 14:50:32 |
合計ジャッジ時間 | 2,622 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 31 |
ソースコード
t = int(input()) mod = 10**9 + 7 for _ in range(t): n = int(input()) ans = 1 for i in map(int, input().split()): ans *= i+1 ans %= mod print((ans - 1) % mod)