結果
| 問題 | 
                            No.1372 Median of Submasks
                             | 
                    
| コンテスト | |
| ユーザー | 
                             crossick_love
                         | 
                    
| 提出日時 | 2021-03-04 13:39:29 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                MLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 283 bytes | 
| コンパイル時間 | 603 ms | 
| コンパイル使用メモリ | 69,064 KB | 
| 実行使用メモリ | 814,216 KB | 
| 最終ジャッジ日時 | 2024-10-04 19:35:33 | 
| 合計ジャッジ時間 | 3,132 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 7 MLE * 1 -- * 16 | 
ソースコード
#include <iostream>
#include <vector>
int n;
std::vector<int> Sn;
int count;
int main(){
    std::cin >> n;
    for(int i = 1;i <= n;i++){
        if( (i&n) == i ){
            Sn.push_back(i);
            count++;
        }
    }
    std::cout << Sn.at((count-1)/2) << std::endl;
}
            
            
            
        
            
crossick_love