結果
| 問題 | No.2071 Shift and OR | 
| コンテスト | |
| ユーザー |  tails | 
| 提出日時 | 2022-09-16 21:49:15 | 
| 言語 | cLay (20241019-1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 236 bytes | 
| コンパイル時間 | 2,774 ms | 
| コンパイル使用メモリ | 181,116 KB | 
| 実行使用メモリ | 8,832 KB | 
| 最終ジャッジ日時 | 2024-12-21 19:05:05 | 
| 合計ジャッジ時間 | 8,451 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 27 WA * 10 | 
ソースコード
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);
	}
}
            
            
            
        