結果
| 問題 | No.2344 (l+r)^2 |
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2023-06-07 22:20:34 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 392 bytes |
| 記録 | |
| コンパイル時間 | 1,799 ms |
| コンパイル使用メモリ | 206,088 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2026-07-01 03:56:54 |
| 合計ジャッジ時間 | 8,514 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 TLE * 2 -- * 4 |
ソースコード
#pragma GCC target("avx2")
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
ios::sync_with_stdio(false);
std::cin.tie(0);
int T;
cin>>T;
while(T--){
int N,M;
cin>>N>>M;
vector<int> A(N);
for(int i=0;i<N;i++) cin>>A[i];
for(int i=2;i<=N;i++)for(int j=0;i+j<=N;j++) A[j] = (A[j]+A[j+1])*(A[j]+A[j+1])%(1<<M);
cout<<A[0]<<endl;
}
}
keisuke6