結果

問題 No.83 最大マッチング
ユーザー zeronosu77108zeronosu77108
提出日時 2020-06-24 20:29:38
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 352 bytes
コンパイル時間 833 ms
コンパイル使用メモリ 129,608 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 18:43:43
合計ジャッジ時間 1,460 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <climits>
#include <map>
#include <queue>

using namespace std;

using int64 = long long;

int main() {
    int n;
    cin >> n;
    string ans(n/2,'1');
    if (n%2) ans.back() += 6;
    reverse(ans.begin(), ans.end());
    cout << ans << endl;
}
0