diff --git a/du2/program b/du2/program index e304772..e7f8a3b 100755 Binary files a/du2/program and b/du2/program differ diff --git a/du2/program.c b/du2/program.c index 6a80236..e709244 100644 --- a/du2/program.c +++ b/du2/program.c @@ -15,9 +15,11 @@ int main(){ if(max < results[i]){ //printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]); max = results[i]; + a = 0; }else if(max == results[i]){ - kolvo[a] = i; + kolvo[a] = i - 1; a++; + kolvo[a] = i; } printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]); i++;