結果

問題 No.2344 (l+r)^2
ユーザー tailstails
提出日時 2023-06-10 01:17:32
言語 cLay
(20240104-1)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 5,294 ms
コンパイル使用メモリ 162,768 KB
実行使用メモリ 5,920 KB
最終ジャッジ日時 2023-08-30 16:01:01
合計ジャッジ時間 5,556 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 19 ms
5,380 KB
testcase_02 AC 4 ms
4,376 KB
testcase_03 AC 4 ms
4,380 KB
testcase_04 AC 4 ms
4,376 KB
testcase_05 AC 4 ms
4,380 KB
testcase_06 AC 4 ms
4,376 KB
testcase_07 AC 3 ms
4,380 KB
testcase_08 AC 3 ms
4,376 KB
testcase_09 AC 3 ms
4,376 KB
testcase_10 AC 4 ms
4,552 KB
testcase_11 AC 3 ms
4,376 KB
testcase_12 AC 8 ms
5,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@t;
rep(t){
	ull@n,@m,@a[n];
	if(n>=m){
		rep(j,18){
			ll k=1<<j;
			if(k&n-m){
				n-=k;
				rep(i,n){
					a[i]+=a[i+k];
				}
			}
		}
	}
	rep(i,n-1){
		rep(j,n-1-i){
			a[j]=(a[j]+a[j+1])**2;
		}
	}
	wt(a[0]%2**m);
}
0