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
原文地址:https://www.cnblogs.com/XuYiting/p/9692361.html
时间: 2024-10-15 14:13:46