题解 | 彩虹糖的梦
彩虹糖的梦
https://www.nowcoder.com/practice/1d8e370f4e6a43f89203ae616ededfdb
//活动地址: 牛客春招刷题训练营 - 编程打卡活动 #include <iostream> #include<algorithm> using namespace std; int main() { int ans=1e9; // 切记这里不能太大 我刚开始开 1e18结果找半天bug // 其它的没什么问题 for(int i=1;i<=7;i++){ int x; cin>>x; ans=min(ans,x); } cout<<ans; } // 64 位输出请用 printf("%lld") //活动地址: 牛客春招刷题训练营 - 编程打卡活动