結果

問題 No.83 最大マッチング
ユーザー CotaSirogami
提出日時 2019-04-05 20:35:04
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 597 ms
コンパイル使用メモリ 119,936 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 14:00:54
合計ジャッジ時間 1,235 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstring>
using namespace std;

int main() {
	int N;
	cin >> N;

	string ans = "";

	while (N >= 1) {
		if (N == 3) {
			ans.append("7");
			N -= 3;
		} else {
			ans.append("1");
			N -= 2;
		}
	}

	cout << ans << endl;
}
0