Created
January 26, 2019 16:52
-
-
Save tuankiet65/cd4a88271a0566e150d88390874500e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <iostream> | |
#include <vector> | |
int k; | |
std::vector<int> a; | |
int main() { | |
std::cin >> k; | |
for (int i = 0; i < k; ++i) { | |
int n; | |
std::cin >> n; | |
a.push_back(n); | |
} | |
std::cout << *std::max_element(a.begin(), a.end()) << std::endl; | |
return 0; | |
} |
huynhducduy
commented
Jan 26, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment