水题,读完题意可以发现,实际上就是让你输出 min。
#include<bits/stdc++.h> using i64 = long long; int main() { std::cin.tie(nullptr)->sync_with_stdio(false); int mi = 1e9; for (int i = 0; i < 7; i++) { int x; std::cin >> x; mi = std::min(mi, x); } std::cout << mi; return 0; }