結果
| 問題 | No.638 Sum of "not power of 2" | 
| コンテスト | |
| ユーザー |  aim_cpo | 
| 提出日時 | 2018-02-21 13:37:59 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 325 bytes | 
| コンパイル時間 | 1,492 ms | 
| コンパイル使用メモリ | 166,152 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-15 07:54:54 | 
| 合計ジャッジ時間 | 2,122 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 | 
ソースコード
#include<bits/stdc++.h>
#define ll long long
#define fi first
#define se second
using namespace std;
ll 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;
}
            
            
            
        