結果

問題 No.2071 Shift and OR
ユーザー tailstails
提出日時 2022-09-16 21:50:58
言語 cLay
(20240104-1)
結果
AC  
実行時間 587 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 1,772 ms
コンパイル使用メモリ 167,732 KB
実行使用メモリ 8,768 KB
最終ジャッジ日時 2023-08-23 14:56:36
合計ジャッジ時間 9,039 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 13 ms
4,688 KB
testcase_03 AC 155 ms
7,240 KB
testcase_04 AC 55 ms
6,684 KB
testcase_05 AC 323 ms
7,144 KB
testcase_06 AC 87 ms
7,340 KB
testcase_07 AC 25 ms
5,412 KB
testcase_08 AC 40 ms
5,944 KB
testcase_09 AC 81 ms
7,080 KB
testcase_10 AC 84 ms
7,328 KB
testcase_11 AC 403 ms
7,612 KB
testcase_12 AC 392 ms
8,692 KB
testcase_13 AC 337 ms
7,532 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 230 ms
7,444 KB
testcase_16 AC 215 ms
7,680 KB
testcase_17 AC 365 ms
7,476 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 511 ms
7,620 KB
testcase_20 AC 393 ms
6,820 KB
testcase_21 AC 587 ms
7,140 KB
testcase_22 AC 493 ms
7,228 KB
testcase_23 AC 2 ms
4,380 KB
testcase_24 AC 2 ms
4,376 KB
testcase_25 AC 2 ms
4,376 KB
testcase_26 AC 2 ms
4,376 KB
testcase_27 AC 2 ms
4,376 KB
testcase_28 AC 3 ms
4,608 KB
testcase_29 AC 2 ms
4,384 KB
testcase_30 AC 179 ms
8,768 KB
testcase_31 AC 56 ms
6,224 KB
testcase_32 AC 67 ms
6,668 KB
testcase_33 AC 76 ms
7,224 KB
testcase_34 AC 95 ms
7,216 KB
testcase_35 AC 116 ms
8,168 KB
testcase_36 AC 157 ms
8,604 KB
testcase_37 AC 99 ms
7,580 KB
testcase_38 AC 76 ms
7,276 KB
testcase_39 AC 65 ms
7,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n;
if(n>=16){
	wt(65535);
	exit(0);
}
set<ll>g,h;
h.insert(0);
rep(n){
	ll@a;
	for(ll k:h){
		rep(16){
			g.insert(a|k);
			a=a*2%65535;
		}
	}
	swap(g,h);g.clear();
}
rrep(i,65536){
	if(h.find(i)!=h.end()){
		wt(i);
		exit(0);
	}
}
0