結果

問題 No.83 最大マッチング
ユーザー eri
提出日時 2015-07-06 02:52:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 55,004 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 01:16:36
合計ジャッジ時間 914 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;
int main(){
	string ans;
	int n; cin >> n;
	while (n != 3 && n){ n -= 2; ans += '1'; }
	if (n == 3){ ans += '7'; }
	cout << ans << endl;
	return 0;
}
0