結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2015-06-03 17:46:11 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 499 bytes |
コンパイル時間 | 494 ms |
コンパイル使用メモリ | 59,588 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-06 13:54:43 |
合計ジャッジ時間 | 1,067 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 6 |
ソースコード
#include <iostream> #include <vector> using namespace std; # define M_PI 3.14159265358979323846 int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; vector<char> output; int tmp = n / 2; if(n % 2 == 0) { for(int i = 0; i < tmp; i++){ output.push_back('1'); } } else { int tmp = n / 2 - 1; for(int i = 0; i < tmp; i++){ output.push_back('1'); } output.push_back('7'); } for(auto x:output){ cout << x; } cout << endl; return 0; }