結果

問題 No.2071 Shift and OR
ユーザー tailstails
提出日時 2022-09-16 21:49:15
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 2,056 ms
コンパイル使用メモリ 167,716 KB
実行使用メモリ 8,756 KB
最終ジャッジ日時 2023-08-23 14:55:19
合計ジャッジ時間 10,443 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 13 ms
4,656 KB
testcase_03 AC 163 ms
7,388 KB
testcase_04 AC 57 ms
6,608 KB
testcase_05 WA -
testcase_06 AC 88 ms
7,492 KB
testcase_07 AC 25 ms
5,336 KB
testcase_08 AC 41 ms
5,908 KB
testcase_09 AC 81 ms
7,080 KB
testcase_10 AC 84 ms
7,360 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 1 ms
4,376 KB
testcase_15 WA -
testcase_16 AC 219 ms
7,668 KB
testcase_17 WA -
testcase_18 AC 2 ms
4,380 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
4,432 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,380 KB
testcase_28 AC 2 ms
4,376 KB
testcase_29 AC 2 ms
4,388 KB
testcase_30 AC 186 ms
8,756 KB
testcase_31 AC 56 ms
6,240 KB
testcase_32 AC 66 ms
6,824 KB
testcase_33 AC 75 ms
7,296 KB
testcase_34 AC 96 ms
7,432 KB
testcase_35 AC 117 ms
8,064 KB
testcase_36 AC 157 ms
8,596 KB
testcase_37 AC 100 ms
7,748 KB
testcase_38 AC 77 ms
7,188 KB
testcase_39 AC 66 ms
6,820 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,65535){
	if(h.find(i)!=h.end()){
		wt(i);
		exit(0);
	}
}
0