This commit is contained in:
Yaroslav Orlianskyi 2022-03-09 14:58:53 +01:00
parent 4a75ad9032
commit 3af41b04fc
2 changed files with 4 additions and 13 deletions

Binary file not shown.

View File

@ -13,13 +13,14 @@ int main(){
if (r == 1){
results[i] = value;
if(max < results[i]){
//printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]);
max = results[i];
kolvo[a] = i + 1;
a = 0;
}else if(max == results[i]){
if(a == 0){
kolvo[a] = i - 1;
a++;
}
kolvo[a] = i;
a++;
}
@ -40,15 +41,5 @@ int main(){
break;
}
}
/*do{
printf("Súťažiaci č. %d vypil %d pohárov.\n",a+1,results[a]);
if(a == i - 1){
a = first;
printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",a+1,max);
printf("%d %d\n", a, first);
break;
}
a++;
}while(a < i);*/
return 0;
}