結果

問題 No.2071 Shift and OR
ユーザー tailstails
提出日時 2022-09-16 21:50:58
言語 cLay
(20220312-1)
結果
AC  
実行時間 583 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 1,967 ms
使用メモリ 8,876 KB
最終ジャッジ日時 2023-01-11 06:36:16
合計ジャッジ時間 9,185 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 2 ms
4,904 KB
testcase_01 AC 2 ms
4,900 KB
testcase_02 AC 13 ms
4,904 KB
testcase_03 AC 161 ms
7,328 KB
testcase_04 AC 58 ms
6,764 KB
testcase_05 AC 317 ms
7,204 KB
testcase_06 AC 88 ms
7,428 KB
testcase_07 AC 25 ms
5,448 KB
testcase_08 AC 41 ms
5,996 KB
testcase_09 AC 83 ms
7,152 KB
testcase_10 AC 85 ms
7,348 KB
testcase_11 AC 407 ms
7,636 KB
testcase_12 AC 401 ms
8,728 KB
testcase_13 AC 342 ms
7,544 KB
testcase_14 AC 1 ms
6,948 KB
testcase_15 AC 235 ms
7,584 KB
testcase_16 AC 220 ms
7,516 KB
testcase_17 AC 377 ms
7,420 KB
testcase_18 AC 2 ms
4,904 KB
testcase_19 AC 512 ms
7,624 KB
testcase_20 AC 398 ms
6,872 KB
testcase_21 AC 583 ms
7,172 KB
testcase_22 AC 496 ms
7,296 KB
testcase_23 AC 2 ms
4,904 KB
testcase_24 AC 1 ms
4,904 KB
testcase_25 AC 1 ms
4,900 KB
testcase_26 AC 2 ms
4,900 KB
testcase_27 AC 1 ms
4,904 KB
testcase_28 AC 2 ms
4,900 KB
testcase_29 AC 2 ms
6,952 KB
testcase_30 AC 182 ms
8,876 KB
testcase_31 AC 56 ms
6,952 KB
testcase_32 AC 67 ms
6,952 KB
testcase_33 AC 77 ms
7,240 KB
testcase_34 AC 95 ms
7,284 KB
testcase_35 AC 117 ms
8,144 KB
testcase_36 AC 160 ms
8,624 KB
testcase_37 AC 100 ms
7,548 KB
testcase_38 AC 79 ms
7,340 KB
testcase_39 AC 66 ms
6,948 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