結果
| 問題 | 
                            No.83 最大マッチング
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Yazaten
                         | 
                    
| 提出日時 | 2018-07-05 19:33:24 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 375 bytes | 
| コンパイル時間 | 1,575 ms | 
| コンパイル使用メモリ | 167,820 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-01 02:40:28 | 
| 合計ジャッジ時間 | 2,259 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define all(a) (a).begin(),(a).end()
#define pb emplace_back
#define INF (1e9+1)
int main(){
    int n;
    cin>>n;
    
    if(n%2==0){
        cout<<string(n/2,'1')<<endl;
    }else{
        cout<<"7"+string(n/2-1,'1')<<endl;
    }
}
            
            
            
        
            
Yazaten