結果

問題 No.83 最大マッチング
コンテスト
ユーザー keishi7773
提出日時 2019-08-29 15:11:56
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 446 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,282 ms
コンパイル使用メモリ 91,704 KB
実行使用メモリ 9,924 KB
最終ジャッジ日時 2026-09-25 11:29:22
合計ジャッジ時間 5,113 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <queue>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i <= (int)(n); i++)
#define mod 1000000007

int main(){
	int N;
	cin >> N;
	if(N % 2 == 1){
		cout << "7" << endl;
		N-= 3;
		for(int i = 0; i < N / 2; i++){
			cout << "1" << endl;
		}
	}else{
		for(int i = 0; i < N /2; i++){
			cout << "1" << endl;	
		}
	}
}
0