This commit is contained in:
Yaroslav Orlianskyi 2022-03-09 15:33:44 +01:00
parent 881ada8836
commit a2ac0f1481
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

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