結果

問題 No.83 最大マッチング
ユーザー data9824
提出日時 2015-09-02 01:54:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 257 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 55,004 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 17:33:41
合計ジャッジ時間 1,018 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {
	int n;
	cin >> n;
	string answer;
	if (n % 2 == 1) {
		n -= 3;
		answer.push_back('7');
	}
	for (; n > 0; n -= 2) {
		answer.push_back('1');
	}
	cout << answer << endl;
	return 0;
}
0