結果
| 問題 | 
                            No.83 最大マッチング
                             | 
                    
| コンテスト | |
| ユーザー | 
                             machy
                         | 
                    
| 提出日時 | 2015-06-11 20:54:27 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 377 bytes | 
| コンパイル時間 | 567 ms | 
| コンパイル使用メモリ | 72,228 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-06 15:43:59 | 
| 合計ジャッジ時間 | 1,066 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
using namespace std;
typedef long long LL;
int main(){
    LL N;
    cin >> N;
    string ans;
    if(N%2 == 1 && N>=3){
        ans += "7";
        N -= 3;
    }
    for(int i = 0; i < N; i+= 2){
        ans += "1";
    }
    cout << ans << endl;
    return 0;
}
            
            
            
        
            
machy