https://www.acmicpc.net/problem/10817
#include<stdio.h>
int main() {
int arr[3];
int min=100;
int count=0;
for(int i=0;i<3;i++){
scanf("%d",&arr[i]);
if(arr[i]<=min){
min=arr[i];
count=i;
}
}
if(count==0) printf("%d",arr[1]<=arr[2] ? arr[1] : arr[2]);
else if(count==1) printf("%d",arr[0]<=arr[2] ? arr[0] : arr[2]);
else printf("%d",arr[0]<=arr[1] ? arr[0] : arr[1]);
}