Skip to content

Instantly share code, notes, and snippets.

@fffprograming
Created April 16, 2014 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fffprograming/10821990 to your computer and use it in GitHub Desktop.
Save fffprograming/10821990 to your computer and use it in GitHub Desktop.
#include <cstdio>
int main(){
int min,n,k[100];
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%d", &k[i]);
}
min = k[0];
for(int i = 1; i < n; i++){
if(min > k[i]){
min = k[i];
}
}
printf("%d\n", min);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment