結果
| 問題 | 
                            No.83 最大マッチング
                             | 
                    
| コンテスト | |
| ユーザー | 
                             guracoro_corori
                         | 
                    
| 提出日時 | 2019-06-24 21:18:29 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 404 bytes | 
| コンパイル時間 | 1,114 ms | 
| コンパイル使用メモリ | 64,276 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-13 02:27:18 | 
| 合計ジャッジ時間 | 1,440 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
#include <iostream>
#include <string>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
  int num,ans;
  cin>>num;
  ans=0;
  string str;
  str="";
  if(num%2==0){
        for(int i=0; i<num/2;i++){
        str.push_back('1');
    }
  }else{
     str.push_back('7');
    for(int i=0; i<num/2-1;i++){
         str.push_back('1');
    }
    
  }
  cout<<str<<endl;
}
            
            
            
        
            
guracoro_corori