标签:acm
1 2 3 4 5
1 5
#include <iostream> #include <climits> using namespace std; int main() { int m; int max=INT_MIN; int min = INT_MAX; for (int i = 0; i < 5; i++) { cin >> m; if (m>max) max = m; if (m < min) min = m; } cout << min << " " << max << endl; return 0; }
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:acm
原文地址:http://blog.csdn.net/u011694809/article/details/48107363