結果

問題 No.638 Sum of "not power of 2"
ユーザー kobajin
提出日時 2018-01-27 00:17:24
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 760 ms
コンパイル使用メモリ 53,720 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-30 02:41:16
合計ジャッジ時間 3,044 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 1 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#define ZERO 0
using namespace std;

int main(){
  int n, res=-1;
  cin >> n;

  for(int i=1; i<=n/2; i++){
    if(n&(n-1)){
      res=i;
    }
  }

  cout << res << " " << n-res << endl;

  return 0;
}
0