結果
問題 |
No.2344 (l+r)^2
|
ユーザー |
|
提出日時 | 2023-06-09 21:40:02 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,352 KB |
実行使用メモリ | 156,812 KB |
最終ジャッジ日時 | 2025-01-02 02:34:56 |
合計ジャッジ時間 | 12,950 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 RE * 6 TLE * 3 |
ソースコード
T=int(input()) def f(i,j): if (i,j) not in d: d[(i,j)]=(f(i-1,j)+f(i-1,j+1))**2 % 2**m return d[(i,j)] for _ in range(T): n,m=map(int,input().split()) L=list(map(int,input().split())) d=dict() for j in range(n): d[(0,j)]=L[j] print(f(n-1,0))