結果
| 問題 |
No.1336 Union on Blackboard
|
| コンテスト | |
| ユーザー |
zumin
|
| 提出日時 | 2021-02-22 21:59:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 359 bytes |
| コンパイル時間 | 612 ms |
| コンパイル使用メモリ | 65,664 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 17:36:16 |
| 合計ジャッジ時間 | 1,668 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 31 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int t;
cin>>t;
for(int i=0;i<t;i++){
int n;
int ret=0;
cin>>n;
for(int j=0;j<n;j++){
int aj;
cin>>aj;
ret=ret*aj+ret+aj;
ret%=1000000007;
}
cout<<ret<<endl;
}
return 0;
}
zumin