結果

問題 No.83 最大マッチング
ユーザー Kura
提出日時 2019-07-13 12:29:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
OLE  
実行時間 -
コード長 262 bytes
コンパイル時間 1,565 ms
コンパイル使用メモリ 157,312 KB
実行使用メモリ 8,576 KB
最終ジャッジ日時 2024-11-21 18:12:11
合計ジャッジ時間 81,019 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 OLE * 2
other OLE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include"bits/stdc++.h"
using namespace std;
int main() {
	int n; cin >> n;
	if (n % 2 == 0) {
		for (int i = 1; i <= n / 2; n++)cout << 1;
		cout << endl;
	}
	else {
		cout << 7;
		for (int i = 1; i <= n / 2 - 1; n++)cout << 1;
		cout << endl;
	}
}
0