#include <stdio.h>
int max(int a, int b, int c);
int main() {
int a, b, c, money = 0;
scanf("%d %d %d", &a, &b, &c);
if (a==b && b==c){
money = 10000 + a * 1000;
}else if(a == b || a == c){
money = 1000 + a * 100;
}else if(b == c){
money = 1000 + b * 100;
}else{
money = max(a, b, c) * 100;
}
printf("%d", money);
}
int max(int a, int b, int c){
int max = 0;
int arr[3];
arr[0] = a;
arr[1] = b;
arr[2] = c;
for(int i=0;i<3;i++){
if (arr[i] > max){
max = arr[i];
}
}
return max;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: