题解 | 彩虹糖的梦
彩虹糖的梦
https://www.nowcoder.com/practice/1d8e370f4e6a43f89203ae616ededfdb
#include <stdio.h> int main() { int a[7], b; int temp=0; for(int i=0;i<7;i++) { scanf("%d",&b); a[i]=b; } temp=a[0]; for(int i=0;i<7;i++) { if( a[i]<=temp) temp=a[i]; } printf("%d",temp); return 0; }