From 4702d0e22ec6153dc956a12c79158e7a5e0262ae Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Wed, 9 Mar 2022 14:33:23 +0100 Subject: [PATCH] ASD --- du2/program | Bin 5582 -> 5494 bytes du2/program.c | 9 +++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/du2/program b/du2/program index fbdfc5a12bf221e1d39370841d736b9727df917a..eb5ec6d3463b0590ec0ee4b2faaf52015f8f4f1b 100755 GIT binary patch delta 1495 zcmZ`(Uuaup6hB|?O>#5RtV!Cn-Kt5Oo7PQ6S0A*{igsl9;=^XsjlmE%>bMUPBBX2& z!>lBk2}vR46czEo3BrmBl}zZv#C4r+dy!7)gRln&6B5Z_QtUR-U4Q3hk^0~V_x{eG z@0{~H-@hN9-`ZD=y4HOQgQuRcyhQT338Rxp0UXG?Y!ygkTVQJ2*OPr7OoGau=OM?*Bwi@awAT}0;u zVLvaZ6XgX_e=65B>NV7#TN~#C+F&*XhaFGjFXZgFB(g+o{9U?I1Rz%xhyG0maa;WYe`}=q6Frh`N*0V82~)bFd0;7F z>LBqd8mO;6vF%dctizSN;(*#&n1@zQn!V+`De`!VmHcv{wSBHusWvb?u< zo2|U)1m&(N)X5s9q*E**#kx`K|7QMYV)Jj?&b7*@#zFK9ZcZn&K@d+#uAecbF$|Z} zIaX}@m_9aYADyblpY+)F+}c+mG}r7er_2NMH60=KBmBU9+*?BmIX8zrC*o?4HvSx% z!`Y(if7x~d7zJH9J0?Pkz(w|Xht*jg^~MI45&IA}nhY2P*TD|AYx8@*uG1JyZ{b_y zS?{>I$zOX%`b_ZcgU!NT?Ey-S-S|@c*!!BYc+$wKOl{TpLQ@%j#~*P^fXNH~m~RZy z7%otfzlFVZjqdtmo)y?vJiMc0&@EXl9_@&^Q;<@SdN|$Tcgx90^BnBXRpcc|a=m8w zHY5v@#g8EsAr*Nb5Oa=I72YtP2z03`zZ)2K-8A^)z>w=wfUf}_g=)VAcBrfnL<6MJ zP5}~{f|@)B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zQ6ck~wF+4)tNZHWHK-@~1`z+24l{qgyks+UR zcZ;k%?S9f@olMvSe#8-AMqY9I@hjHd-J{DJLIs58;HwA`)IisH?uIae@O5xrS^#ow zqC3D!W9+ZO7OChG+j&-z#GhioOQ6?Tfq;`S73{fAA7e8BYDO9 GsqKGLmDlzF diff --git a/du2/program.c b/du2/program.c index 21d47f6..d775c49 100644 --- a/du2/program.c +++ b/du2/program.c @@ -5,8 +5,6 @@ int main(){ int results[VELKOST_POLA]; int max; int i = 0; - int first; - //int a = 0; while(1){ int value = 0; int r = scanf("%d",&value); @@ -14,16 +12,15 @@ int main(){ results[i] = value; max = results[0]; if(max < results[i]){ - max = results[i]; - first = i + 1; + printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]); } printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]); i++; }else if(i == 0){ printf("Chyba: Málo platných hodnôt.\n"); }else{ - first = i; - printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",i,max); + /*first = i; + printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",i,max);*/ break; } }