From cd455fa2e231fd2ef9277c7abda09c18397e1a17 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 17 Mar 2022 20:15:29 +0100 Subject: [PATCH] SDA --- du3/program | Bin 8292 -> 6558 bytes du3/program.c | 41 +++++++++++++++-------------------------- du3/test | Bin 5003 -> 5295 bytes du3/test.c | 15 +++++++++------ 4 files changed, 24 insertions(+), 32 deletions(-) diff --git a/du3/program b/du3/program index 0d73c7e0b5ae4ad0406899216355c7709fc80556..084775cc3a880b6312c40aaae0be335e25edb7a2 100755 GIT binary patch literal 6558 zcmb7Ie{5CN9Y6Q|Xdkvb3RFd5^3+!cPHsyrQYD-82Zd^Z0tIKxyuS9`_C0uguY2#l z+A7(A2WnGEaB)tvMYAm1{!vFVVj4#_v|vE-aemm?rC42 zm}MvV-tYH&zMu0w=X}ra``t}#ErwwTojk%Ts2#}p0(IcW%9W)~ghW8B61Rz4MG3NK zt2+P;NESdLKk|GaFKy844#Eyv3Y|n7eUoHjSDw{dt3y|)Bjil{6V2ApJr2SVX;+@rr z=$b@4nH?}QDYI6UMbl*8HgDT4%d(v;69Un9C5W-1{qmJR-k-eG^4_{vUOVR5^uoa7 zi~VoYrt6?A;{jfn=o4L&F`%8Y#D!!vQhw$B_fH{vUaBw9mOy4Xok9@q)e1Q6tBdp- zp-&)I?8jmbf@Sserjl01iKHFN5(r5bLvfd|TDK!N8c$l;j2#6oo=J7xeYchAiX^*5 zUpk(2x{=EQZt31gJSjG}wKg_cwdVR+sfJBpfAyR+ATh=yrt9PJg^cJ9$TDB*9`TU0 z3NiKrU!VjI&V!et!;|FDr^pfDi{$9guH41I)K5_8;OJS5(Qxi^KA%5w%JEN`$jqG% zJT&Th6e7QF9HsJA6ZkSSUq$aRiWknKSiXw2#Av%PCUw>pWAiSYk~(XREu(%M`r3~k z9{O8ua=N`^XY3T>8*9gB$DY{!!@j`OZveP-Y+f2(5gskf82JqD*396On<;tJ^YQ2i zJPS1blifofkHGEA3HaC?5J~_7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y~Vl{jtDrmzd8zGeQ4N#^+mM zwNmjpR#@Gl==+PHxSqxGo?6Lyi=ysV6y{)Je~sry;Tt99^Q7=i66?R9;M?_D2+Es_ zT8u%j2|=-{2GM?=lCOoJh+G561;wok&jkgh_^)|-SohDsEfFm|=ij*murkJg=W1{t zu)e#Z{0qSH78j|3TdFit?LPx6{Rv>+cOk(%4~uUh)&4f%?=uwmf%eqSW8&{a*7KCA zZ{VxR3~;Tz{|v0#<4)ukz?$&y$0D(N&%ytaLR|1NuEc=sqicBR~sJDx4$XkdGJJBgDXcFdnrWZS8t zJ)SF$IXOG!6-#B?sT>g4aZl!4&rQYdx_e_MG=B=o=H6fJf7Z{Zo~EehO7; zkj*2*BI>nsx@`~c>U&_Ty>}#$WeW0I?8RZ!c+ygz`F?{i}CzH09sT3w+ zV+RC}A?iDy|820h_u8jE`F*gqz;@-a#c#~6sa*FhlAjzGRkTy(qMdOHDO$o~igqjcHQU4S|LAB*5Vo;&};I}qfkpwA2w@C)SZU!*z}~G*$?mFDCRpt9lr11XYcZ- eSbxqbmodL=8y?joNmuI$x5&{vxYn5{4f|jD$phB_ diff --git a/du3/program.c b/du3/program.c index 9882a7f..3215859 100644 --- a/du3/program.c +++ b/du3/program.c @@ -1,32 +1,21 @@ #include -#include -#include -#define LINE_SIZE 999 int main(){ - char riadok[LINE_SIZE]; - memset(riadok, 0,LINE_SIZE); - char* r = fgets(riadok,LINE_SIZE,stdin); - char line[LINE_SIZE]; - int len = strlen(line); - char* endptr = NULL; - char* start = line; - int num = 0; - if (r == NULL){ - exit(0); - } - int r2 = atol(line); - if (r2 == 0){ - exit(0); - } - while (start < (line + len)){ - num = strtol(start,&endptr,10); - if (num){ - printf("Nacital som %d\n",num); - start = endptr + 1; - } - else - break; + int vxod[999]; + int i = 0; + int result = 0; + while(1){ + int value = 0; + int r = scanf("%d",&value); + if(r == 1){ + vxod[i++] = value; + } + else{ + for(int a = 1; a < i; a++) + result = vxod[0] * result + vxod[a]; + printf("Vysledok je: %d.00\n", result); + break; + } } return 0; } diff --git a/du3/test b/du3/test index 6ef1c5807e7b819af6e7bc988564428bd17b3441..d371975a448489ad800623ea2f0399cd6f9992af 100755 GIT binary patch literal 5295 zcmb7IZERG>6`ftL$+j^YFwhdP!nRpb)7meFnuI25%d$3LYCZx66h&cp_C9;J*$->? zEwNFmnr`^8uqCUqQX(Z4QL6~4{$VM!MQxNAOdzRJl}1seDv?T6N3~N|bqY!OLD-%% zvjfitr1na8XU^O+ckax)GjI0&u(@@k&*u|H{Gvh-jTQsJMwC~B+R`Y(A}DIb3Q;5G zp^3J}K5(F_13FcrEdZ^c4Y=_T?9fHPRNCm9s)T)^18_)Xf3ZN@Roe@&L2J>W0m^Y{ z_oFxgZ~`{!3^0{;jzQfF{$`9#Z33nm+m4Ui_$US&Jsb#9>tLfA`xCGO-X_NX!>MHZ z!>M?EDw!$tSoy5AM)yT%YHpjh?N)smC;Nn<^t~9$wW0khPkxYndm_ANdiPju^BZsP zS@d%3C~aJBvySX*1k+JM&OPNi{hKjpXTQE$HJloEV`>)LHItXaZmXQUbx{Xo46Bq~>1;;kT|4JWDX@GUT((DqY}t<1 zcrqgkc_%KMo}?=j7M)#=n-^&(op)UHXP0vSw4Ka|O|2~(Vseeuz))-G`Es zHWOcvOwK237s-%gh;1G^F~&+P<_VPdU=dzoiT0B$vCuzfiAkMeiN)PjoDNR@0uBz1 z@5Qq`Uc6o^l@5=&m6H#lv3NfC)VL_E9Rja1d z=I=ju_Tv@4OMkppK*!&xj_;X{{Y{a8>HHo$pXQ>7zHgs_15sF{+y^J0Lx>kD+2(ua z%6R9{E5q2p82$kh$C8_I(1JLodeLRd#SbkLGl!@O~uz$AqrIpnhqv&FsdLB{4LqNcXescuE}4*cxc>4 z_7|sXj;A6GgRcb;(d5+UrP5$gpt|b9*&F`DpSfQf{1x3DZ;GtzuZu7WR2#WErQzR_ zSiI=_)_)3rDW0!+YM*?1{2%jg4Tjnk46gDlrbhhN!g69EWR=~%xTDZC@-Tt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CEVX-<6w=*#7mtN2pTvq#>JOV6HWMy1EDQn$%|wx%-IhcAk54(#qxV(51voO@tW& LlLadSpvL$wWd6Cc diff --git a/du3/test.c b/du3/test.c index a69198d..668b584 100644 --- a/du3/test.c +++ b/du3/test.c @@ -1,11 +1,14 @@ #include +#include +#include +#define LINE_SIZE 999 int main(){ - int c = 0; - char a = 'a'; - if(a >= 0 && a <= 255) - printf("yes\n"); - else - printf("no\n"); + char riadok[LINE_SIZE]; + memset(riadok, 0,LINE_SIZE); + char* r = fgets(riadok,LINE_SIZE,stdin); + if(r == NULL){ + exit(0); + } return 0; }