結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
stack9996
|
| 提出日時 | 2015-08-27 00:41:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 575 bytes |
| コンパイル時間 | 569 ms |
| コンパイル使用メモリ | 67,496 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 14:52:53 |
| 合計ジャッジ時間 | 1,095 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 6 |
ソースコード
#include <iostream>
#include <numeric>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <queue>
#define rep(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for(int i = a; i < b; ++i)
typedef long long ll;
typedef unsigned long long ull;
typedef std::pair<int, int> P;
int main(){
int n;
std::cin >> n;
if (n == 2)std::cout << "1" << std::endl;
else if (n == 3)std::cout << 7 << std::endl;
else {
std::string str;
rep(i, n / 4)str += "11";
if (n % 4 != 0)str.pop_back(), str = "7" + str;
std::cout << str << std::endl;
}
return 0;
}
stack9996