結果

問題 No.1372 Median of Submasks
コンテスト
ユーザー mtmtmtmtmt
提出日時 2021-02-06 11:58:49
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 502 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 812 ms
コンパイル使用メモリ 99,264 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2026-03-24 02:59:39
合計ジャッジ時間 3,541 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4 WA * 3 RE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <map>
#include <utility>
#include <list>
#include <math.h>
#include <algorithm>
#include <bitset>
using namespace std;
/*
int binary(int a){
    for (int i=0;a>0;i++)
    {
        ans=ans+(a%2)*pow(10,i);
        a=a/2;
    }
    return ans;
}
*/
int main(){
    int n;
    cin>>n;
    vector<int> ans(60);
    for(int i=0;i<n;i++)
    {
        ans[i]=pow(2,i);
    }
    cout<<ans[(n-1)/2]<<endl;

    return 0;
}
0