結果

問題 No.83 最大マッチング
ユーザー siguma323
提出日時 2016-05-18 13:50:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 464 bytes
コンパイル時間 633 ms
コンパイル使用メモリ 65,200 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-06 05:29:36
合計ジャッジ時間 1,007 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <iostream>
#include <fstream>
#include <queue>
#include <cstring>
using namespace std;

using ll = long long;
using ull = unsigned long long;

using P = pair<ll,ll>;

int main()
{
  int n;
  cin >> n;

  if(n & 1)
  {
    n-= 3;
    cout << 7;

    for(int i = n; i >0; i-=2)
      cout << 1;
  }
  else
  {
    for(int i = n; i >0; i-=2)
      cout << 1;
  }

  cout << endl;
}
0