結果
問題 |
No.490 yukiソート
|
ユーザー |
![]() |
提出日時 | 2017-03-12 18:29:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 485 bytes |
コンパイル時間 | 1,844 ms |
コンパイル使用メモリ | 64,996 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 00:32:23 |
合計ジャッジ時間 | 1,879 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 21 |
ソースコード
// ConsoleApplication49.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // //#include "stdafx.h" #include <iostream> #include <vector> #include <algorithm> using namespace std; int n; vector<int> as; int main() { cin >> n; for (int i = 0; i < n; i++) { int t; cin >> t; as.push_back(t); } sort(as.begin(), as.end()); cout << as[0]; for (int i = 1; i < n; i++) { cout << " " << as[i]; } cout << endl; return 0; }