#include <stdio.h>
#define STUDENTS 3
#define EXAM 4
int minimum( const int (*grades)[EXAM] );
int main(void) {
int grades[STUDENTS][EXAM]={{77,68,86,73},{96,87,89,78},{70,90,86,81}};
return 0;
}
int minimum( const int (*grades)[EXAM] ){
int min=100;
for(int i=0;i<STUDENTS;i++){
for(int j=0;j<EXAM;j++){
if(grades[i][j]<min){
min=grades[i][j];
}
}
}
return min;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNkZWZpbmUgU1RVREVOVFMgMwojZGVmaW5lIEVYQU0gNAppbnQgbWluaW11bSggY29uc3QgaW50ICgqZ3JhZGVzKVtFWEFNXSApOwppbnQgbWFpbih2b2lkKSB7CglwcmludGYoIm1pblxuIik7CglpbnQgZ3JhZGVzW1NUVURFTlRTXVtFWEFNXT17ezc3LDY4LDg2LDczfSx7OTYsODcsODksNzh9LHs3MCw5MCw4Niw4MX19OwoJcHJpbnRmKCIlZCIsbWluaW11bShncmFkZXMpKTsKCXJldHVybiAwOwp9CmludCBtaW5pbXVtKCBjb25zdCBpbnQgKCpncmFkZXMpW0VYQU1dICl7CglpbnQgbWluPTEwMDsKCWZvcihpbnQgaT0wO2k8U1RVREVOVFM7aSsrKXsKCQlmb3IoaW50IGo9MDtqPEVYQU07aisrKXsKCQkJaWYoZ3JhZGVzW2ldW2pdPG1pbil7CgkJCQltaW49Z3JhZGVzW2ldW2pdOwoJCQl9CgkJfQoJfQoJcmV0dXJuIG1pbjsKfQo=