不用sort 直接找max
1.抓n進來
2.重複n次讀資料
3.輸出
#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int max=-1;
while(n--){
int k;
cin>>k;
if(k>max) max=k;
}
cout<<max;
return 0;
}