結果
問題 |
No.490 yukiソート
|
ユーザー |
![]() |
提出日時 | 2017-03-10 22:26:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 531 bytes |
コンパイル時間 | 1,961 ms |
コンパイル使用メモリ | 170,736 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 09:56:33 |
合計ジャッジ時間 | 2,906 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define FOR(i,l,r) for(int i = (int) (l);i < (int) (r);i++) #define ALL(x) x.begin(),x.end() template<typename T> bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; } template<typename T> bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; } typedef long long ll; int N; int main() { scanf("%d",&N); vector<int> A(N); FOR(i,0,N){ scanf("%d",&A [i]); } sort(ALL(A)); FOR(i,0,N){ printf("%d%s",A [i],i == N - 1 ? "\n" : " "); } return 0; }