This commit is contained in:
Yaroslav Orlianskyi 2022-03-09 15:14:09 +01:00
parent d486c225fb
commit e32a709a68

View File

@ -11,7 +11,7 @@ int main(){
int value = 0;
int r = scanf("%d",&value);
if (r == 1){
if(r < 0 && r > 1000)
if(r < 0 || r > 1000)
continue;
results[i] = value;
if(max < results[i]){