結果

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

ソースコード

diff #

#include <iostream>

using namespace std;

int main() {
	int n;
	cin >> n;
	int answer = 0;
	if (n % 2 == 1) {
		n -= 3;
		answer = 7;
	}
	for (; n > 0; n -= 2) {
		answer = answer * 10 + 1;
	}
	cout << answer << endl;
	return 0;
}
0