結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2023-07-23 12:29:14 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 439 bytes |
コンパイル時間 | 1,958 ms |
コンパイル使用メモリ | 193,076 KB |
最終ジャッジ日時 | 2025-02-15 18:28:38 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define fi first #define se second int main(){ int n; cin >> n; string ans = ""; if(n % 2 == 0){ for(int i = 0; i < n / 2; i++){ ans.push_back('1'); } } else{ ans.push_back('7'); for(int i = 0; i < n / 2 - 1; i++){ ans.push_back('1'); } } cout << ans << endl; return 0; }