blob: 3662ca4b3c9d8c94b3faf4657dc0ce25cbac9698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <vector>
#include <fstream>
#include <algorithm>
#include <climits>
extern "C" int main() {
std::vector<int> numbers = {};
std::ofstream cout("/dev/stdout");
std::ifstream cin("/dev/stdin");
//
while (1) {
int n = INT_MIN;
cin >> n;
if (n == INT_MIN) break;
numbers.push_back(n);
}
std::sort(numbers.begin(), numbers.end());
//
for (int n: numbers)
cout << n << std::endl;
exit(0);
}
|