http://lx.lanqiao.cn/problem.page?gpid=T52
#include <iostream> #include <algorithm> using namespace std; int main() { int Sequence[205]; int Number; cin >> Number; for(int i = 0; i < Number; i++) { cin >> Sequence[i]; } sort(Sequence,Sequence+Number); for(int i = 0; i < Number; i++) cout << Sequence[i] << " "; return 0; }
ao.cn/problem.page?gpid=T52