結果

問題 No.83 最大マッチング
ユーザー koyumeishi
提出日時 2014-12-02 23:33:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 433 bytes
コンパイル時間 636 ms
コンパイル使用メモリ 75,800 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 07:44:13
合計ジャッジ時間 1,160 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#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