25 lines
427 B
C++
25 lines
427 B
C++
|
//acmp.ru 0754 tri_tolstyaka.cpp 7%
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(){
|
||
|
freopen("INPUT.TXT", "r", stdin);
|
||
|
freopen("OUTPUT.TXT", "w", stdout);
|
||
|
|
||
|
int M1, M2, M3;
|
||
|
scanf("%i %i %i", &M1, &M2, &M3);
|
||
|
int arr[3] = {M1, M2, M3};
|
||
|
int max = 0;
|
||
|
for(int i = 0; i < 3; i++){
|
||
|
if(arr[i] >= 94 && arr[i] <= 727){
|
||
|
if(arr[i] > max){
|
||
|
max = arr[i];
|
||
|
}
|
||
|
}else {
|
||
|
printf("Error");
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
printf("%i", max);
|
||
|
return 0;
|
||
|
}
|