結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-27 17:56:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 1,784 ms |
| コンパイル使用メモリ | 191,312 KB |
| 最終ジャッジ日時 | 2025-02-24 13:26:11 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, e) for (int i = (int)s; i < (int)e; i++)
int main() {
cin.tie(nullptr);
int N;
cin >> N;
if (N % 2 == 0) {
rep(i, 0, N / 2) cout << 1;
} else {
cout << 7;
rep(i, 0, N / 2 - 1) cout << 1;
}
cout << '\n';
}