ASD
This commit is contained in:
parent
4a75ad9032
commit
3af41b04fc
BIN
du2/program
BIN
du2/program
Binary file not shown.
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user