結果
| 問題 | 
                            No.83 最大マッチング
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tntan
                         | 
                    
| 提出日時 | 2015-12-14 19:31:52 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 3 ms / 5,000 ms | 
| コード長 | 337 bytes | 
| コンパイル時間 | 556 ms | 
| コンパイル使用メモリ | 64,140 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-15 12:39:38 | 
| 合計ジャッジ時間 | 1,183 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 | 
ソースコード
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
{
	int n;
	string s;
	cin >> n;
	if (n % 2 == 0)
	{
		for (int i = 0; i < n / 2; i++)
		{
			s += "1";
		}
	}
	else
	{
		s += "7";
		for (int i = 0; i < (n - 3) / 2; i++)
		{
			s += "1";
		}
	}
	cout << s << endl;
	return 0;
}
            
            
            
        
            
tntan