結果

問題 No.83 最大マッチング
ユーザー koyopro
提出日時 2015-10-01 19:44:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 1,086 ms
コンパイル使用メモリ 157,028 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 18:55:11
合計ジャッジ時間 1,641 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

#define REP(i, n) for(int i=0; i<(n); i++)

int N;
signed main()
{
    cin >> N;
    while(N > 1) {
        if (N == 3) {
            cout << 7;
            N -= 3;
        } else {
            cout << 1;
            N -= 2;
        }
    }
    cout << endl;
    return 0;
}
0