题解 | 彩虹糖的梦
彩虹糖的梦
https://www.nowcoder.com/practice/1d8e370f4e6a43f89203ae616ededfdb
求七个数里的最小值
#include <climits> #include <iostream> using namespace std; int main() { int max_num = INT_MAX; for(int i = 0; i < 7; ++i) { int tmp; cin >> tmp; max_num = min(max_num, tmp); } cout << max_num << endl; return 0; }