Untitled
unknown
plain_text
2 years ago
309 B
9
Indexable
#include <chrono>
#include <thread>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
void foo();
int main()
{
int n;
cin >> n;
int t;
int max = 0;
for (int i = 0; i < n; i++) {
cin >> t;
if (t > max) {
max = t;
}
}
cout << max;
return 0;
}Editor is loading...