結果

問題 No.83 最大マッチング
ユーザー alpha_virginis
提出日時 2015-03-25 23:05:53
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 411 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 57,224 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-29 00:57:59
合計ジャッジ時間 905 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>

int main() {

  long i, j, k;
  long ans;
  long count = 0;
  std::string str;

  long N;

  std::cin >> N;

  if((N&0x01) == 0) {
    for(i = 0; i < (N/2); i++) {
      std::cout << '1';
    }
    std::cout << std::endl;
  }
  else {
    std::cout << '7';
    for(i = 0; i < (N/2)-1; i++) {
      std::cout << '1';
    }
    std::cout << std::endl;
  }

  return 0;
}
0