結果

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

ソースコード

diff #

#include<iostream>
#include<stdio.h>

using namespace std;

int main()
{
	int N;
	int one=0, seven=0;
	cin >> N;
	if (N % 2 && N>=3)
	{
		seven++;
		N -= 3;
	}
	one = N / 2;
	if(seven)cout << 7;
	while (one)
	{
		cout << 1;
		one--;
	}


	return 0;
}
0