結果

問題 No.1336 Union on Blackboard
ユーザー sigmani
提出日時 2022-02-19 16:47:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 1,702 ms
コンパイル使用メモリ 165,932 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-29 10:28:13
合計ジャッジ時間 2,575 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
int T;
cin>>T;
for(int i=1;i<=T;i++){
  int N;
  cin>>N;
  int A[109];
  for(int i=1;i<=N;i++)cin>>A[i];
  long long answer=1;
  for(int i=1;i<=N;i++)answer=(answer*(A[i]+1))%1000000009;
  cout<<(answer-1)%1000000009<<endl;
}



}
0