結果
問題 | No.964 2020 |
ユーザー |
![]() |
提出日時 | 2020-01-13 20:25:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,020 ms |
コード長 | 1,478 bytes |
コンパイル時間 | 1,730 ms |
コンパイル使用メモリ | 168,660 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-21 16:09:42 |
合計ジャッジ時間 | 2,353 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h>#define PI 3.14159265358979323846#define MAXINF (1e18L)#define INF (1e9L)#define EPS (1e-9)#define MOD ((ll)(1e9+7))#define REP(i, n) for(int i=0;i<int(n);++i)#define Rep(i,sta,n) for(int i=sta;i<n;i++)#define RREP(i, n) for(int i=int(n)-1;i>=0;--i)#define ALL(v) v.begin(),v.end()#define FIND(v,x) (binary_search(ALL(v),(x)))#define SORT(v) sort(ALL(v))#define RSORT(v) sort(ALL(v));reverse(ALL(v))#define DEBUG(x) cerr<<#x<<": "<<x<<endl;#define DEBUG_VEC(v) cerr<<#v<<":";for(int i=0;i<v.size();i++) cerr<<" "<<v[i]; cerr<<endl#define Yes(n) cout<<((n)?"Yes":"No")<<endl#define YES(n) cout<<((n)?"YES":"NO")<<endl#define pb push_back#define fi first#define se secondusing namespace std;template<class A>void pr(A a){cout << (a) << endl;}template<class A,class B>void pr(A a,B b){cout << a << " " ;pr(b);}template<class A,class B,class C>void pr(A a,B b,C c){cout << a << " " ;pr(b,c);}template<class A,class B,class C,class D>void pr(A a,B b,C c,D d){cout << a << " " ;pr(b,c,d);}template<class T> inline bool chmin(T& a, T b){return a>b ? a=b, true : false;}template<class T> inline bool chmax(T& a, T b){return a<b ? a=b, true : false;}typedef long long ll;typedef pair<int, int> pii;typedef pair<ll,ll> pll;int main(void){int N;cin >> N;string s;if(N == 1){pr(1);return 0;}for (int i = N; i > 0; i--){REP(j, N) s += (to_string(i-1));}pr(s);}