摘要: #include #include #include using namespace std;int main(){ int n; cin >> n; vector a(n); for(int i = 0 ; i >a[i]; sort(a.begin(),a.end()); swap(a[0],a[n-1]); for(int i = 0 ; i < n; ++i) cout<<a[i]<<" "; cout<<endl; return 0;} 阅读全文
posted @ 2013-09-21 23:42 OpenSoucre 阅读(148) 评论(0) 推荐(0) 编辑