結果

問題 No.638 Sum of "not power of 2"
ユーザー aim_cpo
提出日時 2018-02-21 13:36:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 1,470 ms
コンパイル使用メモリ 165,768 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 07:54:01
合計ジャッジ時間 2,218 ms
ジャッジサーバーID
(参考情報)
judge4 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define ll long long
#define fi first
#define se second
using namespace std;

int n;

int main(){
  cin>>n;
  if(n==1 || n==2 || n==3 || n==4 || n==5 || n==7){
    cout<<-1<<endl;
    return 0;
  }
  if((n-3)&(n-4)){
    cout<<3<<" "<<n-3<<endl;
  }else{
    cout<<5<<" "<<n-5<<endl;
  }
  return 0;
}
0