結果

問題 No.83 最大マッチング
ユーザー ふう
提出日時 2015-01-26 14:21:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 99 ms / 5,000 ms
コード長 519 bytes
コンパイル時間 610 ms
コンパイル使用メモリ 83,404 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 03:14:47
合計ジャッジ時間 1,338 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <iostream>
#include <map>
#include <list>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
#include <iomanip>

using namespace std;

int main(void)
{
	long long n;
	string res;
	long long tmp = 1;

	cin >> n;

	if(n % 2 == 0) res = "1";
	else		   res = "7";

	for (int i = 1; i < n / 2; i++) {
		res = res + "1";
	}

	cout << res << endl;

	return (0);
}
0