結果

問題 No.83 最大マッチング
ユーザー ThorIIDX
提出日時 2017-07-31 20:01:48
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 5,000 ms
コード長 294 bytes
コンパイル時間 499 ms
コンパイル使用メモリ 63,232 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 00:10:58
合計ジャッジ時間 1,096 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int a,i;
	long long int b;
	cin >> a;
	if(a==0 || a==1){cout << "0";}
	else if(1==a%2){cout << 7;
		for(i=3;i<a;i=i+2){
			cout << 1;
		}
	}
	else if(0==a%2){cout << 1;
		for(i=2;i<a;i=i+2){
		cout << 1;
		}
	}
	cout << endl;
	return 0;
}
0