結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2014-12-02 23:28:09 |
言語 | C++11 (gcc 4.8.5) |
結果 |
AC
|
実行時間 | 5 ms |
コード長 | 835 Byte |
コンパイル時間 | 1,153 ms |
使用メモリ | 8,916 KB |
最終ジャッジ日時 | 2019-02-06 12:53:36 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
sample01.txt | AC | 3 ms
6,868 KB |
sample02.txt | AC | 2 ms
6,872 KB |
sample03.txt | AC | 2 ms
6,868 KB |
test01.txt | AC | 3 ms
6,868 KB |
test02.txt | AC | 3 ms
6,872 KB |
test03.txt | AC | 2 ms
6,868 KB |
test04.txt | AC | 2 ms
6,872 KB |
test05.txt | AC | 3 ms
6,868 KB |
test06.txt | AC | 3 ms
6,872 KB |
test07.txt | AC | 3 ms
6,872 KB |
test08.txt | AC | 4 ms
8,916 KB |
test09.txt | AC | 5 ms
6,872 KB |
test10.txt | AC | 5 ms
6,868 KB |
ソースコード
#include <bits/stdc++.h> using namespace std; #define all(c) (c).begin(),(c).end() #define rrep(i,n) for(int i=(int)(n)-1;i>=0;i--) #define REP(i,m,n) for(int i=(int)(m);i<(int)(n);i++) #define rep(i,n) REP(i,0,n) #define iter(c) __typeof((c).begin()) #define tr(it,c) for(iter(c) it=(c).begin();it!=(c).end();it++) #define pb(a) push_back(a) #define pr(a) cout<<(a)<<endl #define PR(a,b) cout<<(a)<<" "<<(b)<<endl #define F first #define S second #define ll long long bool check(int n,int m,int x,int y){return (x<0||x>=n||y<0||y>=m)?false:true;} const ll MAX=1000000007,MAXL=1LL<<60,dx[4]={-1,0,1,0},dy[4]={0,-1,0,1}; typedef pair<int,int> P; int main() { int n; cin >> n; if(n>=3 && n%2) { cout << 7; n-=3; } while(n>1) { cout << 1; n-=2; } cout << endl; return 0; }