結果
| 問題 |
No.2344 (l+r)^2
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2023-06-07 22:20:34 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 392 bytes |
| コンパイル時間 | 9,249 ms |
| コンパイル使用メモリ | 260,128 KB |
| 最終ジャッジ日時 | 2025-02-13 23:16:30 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 TLE * 3 |
ソースコード
#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