結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2020-07-18 23:51:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 458 bytes |
コンパイル時間 | 3,183 ms |
コンパイル使用メモリ | 180,688 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 13:50:25 |
合計ジャッジ時間 | 3,845 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>#include<ext/pb_ds/assoc_container.hpp>#include<ext/pb_ds/tree_policy.hpp>#include<ext/pb_ds/tag_and_trait.hpp>using namespace __gnu_pbds;using ll = long long;using namespace std;signed main() {int n;cin >> n;string s;for(;n > 1;){n -= 2;s.push_back('1');}if(n % 2 == 1){s.pop_back();s.push_back('7');}reverse(s.begin(), s.end());cout<<s<<endl;}