結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2021-03-01 14:15:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 2,793 bytes |
コンパイル時間 | 940 ms |
コンパイル使用メモリ | 97,428 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 00:51:05 |
合計ジャッジ時間 | 1,658 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 6 |
ソースコード
#define _USE_MATH_DEFINES#include <iostream> // cout, endl, cin#include <cstdio> // printf, scanf#include <string> // string, to_string, stoi#include <algorithm> // min, max, swap, lower_bound, upper_bound// & stable_sort, sort, reverse#include <cmath> //sin(rad),cos,tan, abs, pow, sqrt, cbrt, exp, log, log10, log2#include <utility> // pair, make_pair#include <map> // map#include <set> // set#include <vector> // vector#include <queue> // queue, priority_queue#include <stack> // stack#include <list> // list#include <deque> // deque#include <iomanip>#include <numeric>#include <string.h>#include <stdio.h>#include <stdlib.h>using namespace std;typedef long long ll;typedef unsigned long long ull;typedef vector<int> vi;typedef vector<string> vs;typedef pair<int, int> pii;typedef pair<string, int> psi;typedef pair<int, string> pis;typedef set<int> si;typedef map<string, int> msi;typedef map<string, bool> msb;typedef priority_queue<int> pqi;typedef stack<int> sti;typedef queue<int> qi;#define infi 2147483647#define infl 9223372036854775806#define MOD 1000000007#define EPS 0.0000000001#define rep(i,n) for(int i=0;i<(int)n;i++)#define repa(i,n) for(int i=1;i<=(int)n;i++)#define irep(i,n) for(int i=(int)n-1;i>=0;i--)using std::cin;using std::string;template <typename T>T in() {T temp; cin >> temp; return temp;}template <>int in() {int temp; (void)scanf("%d", &temp); return temp;}template <>double in() {double temp; (void)scanf("%lf", &temp); return temp;}template <>char in() {char temp; (void)scanf("%c", &temp); return temp;}template<typename T1, typename T2>constexpr auto equals(T1 a, T2 b) { return (fabs(a - b) < EPS); }//その他便利なメソッドvoid clear(std::queue<int>& q){std::queue<int> empty;std::swap(q, empty);}bool compare_by_b(pair<int, int> a, pair<int, int> b) {if (a.second != b.second) {return a.second > b.second;}else {return a.first > b.first;}}//---------------------------------------------------int main() {//int a = in<int>(); string b = in<string>(); char c = in<char>();//double d = in<double>();//(void)scanf("%d",&);//(void)scanf("%d%d",& ,&);int n;cin >> n;int x = n - 3;if (n == 2) {cout << 1 << endl;return 0;}if (x % 2 == 0) {rep(i, x / 2) {cout << 1;}cout << 7 << endl;}else {rep(i, n / 2) {cout << 1;}cout << endl;}return 0;}