結果

問題 No.83 最大マッチング
コンテスト
ユーザー koyumeishi
提出日時 2014-12-02 23:33:41
言語 C++11
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
+ 396µs
コード長 433 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 443 ms
コンパイル使用メモリ 97,256 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-25 09:06:26
合計ジャッジ時間 1,384 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>

using namespace std;


int main(){
	int n;
	cin >> n;
	vector<int> m = {6,2,5,5,4,5,6,3,7,6};
	vector<int> dp(n+1, 0);
	string s;
	if(n%2 == 1){
		s += '7';
		n -= 3;
	}
	while(n>0){
		s += '1';
		n -= 2;
	}
	cout << s << endl;
	return 0;
}
0