結果

問題 No.83 最大マッチング
ユーザー KuraKura
提出日時 2019-07-13 12:29:57
言語 C++11
(gcc 11.4.0)
結果
OLE  
実行時間 -
コード長 262 bytes
コンパイル時間 2,172 ms
コンパイル使用メモリ 143,388 KB
実行使用メモリ 7,656 KB
最終ジャッジ日時 2023-08-13 23:59:09
合計ジャッジ時間 14,708 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 OLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

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