← Back to List

17263번: Sort 마스터 배지훈 ↗

Solutions

C++14
188 B | 188 chars
#include <iostream>
#include <algorithm>
using namespace std;
int N;
int ar[550000];
int main()
{
    cin>>N;
    for(int x=0; x<N; x++) cin>>ar[x];
    sort(ar,ar+N);
    cout<<ar[N-1];
}