結果

問題 No.490 yukiソート
ユーザー No___OpNo___Op
提出日時 2017-03-10 22:24:45
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 462 bytes
コンパイル時間 733 ms
コンパイル使用メモリ 75,624 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-24 08:23:56
合計ジャッジ時間 1,595 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <set>
#include <cmath>
#include <cstdio>
#include <cstring>

using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)

int main(){
	int n; cin >> n;
	vector<int> a;
	for(int i=0; i<n; ++i){
		int m; cin >> m;
		a.push_back(m);
	}

	std::sort(a.begin(), a.end());

	for(int i=0; i<n-1; ++i){
		cout << a[i] << " ";
	}
	cout << a[n -1] << endl;

	return 0;
}
0