結果

問題 No.83 最大マッチング
ユーザー uvarimeron
提出日時 2015-12-19 23:07:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 567 bytes
コンパイル時間 1,179 ms
コンパイル使用メモリ 81,976 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-17 10:58:29
合計ジャッジ時間 1,250 ms
ジャッジサーバーID
(参考情報)
judge5 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <set>
#include <list>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
#include <cmath>
#include <cctype>
#include <climits>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <numeric>
#include <sstream>
#include <algorithm>
#include <functional>
using namespace std;
int main(){
	int n,cnt=0;
	cin>>n;
	while(n>=4){
		n-=2;
		cnt++;
	}
	if(n==3){
		cout<<7;
	}
	if(n==2){
		cout<<1;
	}
	for(int i=0;i<cnt;i++){
		cout<<1;
	}
	cout<<endl;
	return 0;
}
0