結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2025-04-09 21:53:46 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 693 bytes |
コンパイル時間 | 1,235 ms |
コンパイル使用メモリ | 115,980 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-04-09 21:53:48 |
合計ジャッジ時間 | 2,257 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream> #include <iomanip> #include <vector> #include <math.h> #include <queue> #include <deque> #include <map> #include <set> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define all(a) a.begin(), a.end() #define arr(a) a.rbegin(), a.rend() template<typename T> bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;} template<typename T> bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;} using ll = long long; //Konishii int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; string ans; rep(i, n/2) ans += '1'; if(n%2 == 1) ans[0] = '7'; cout << ans << endl; }