#include <iostream>
int Labadaga(int A);
int main ()
{
//Witaj:
int T[]={-20,5,1,-4,2,3,9,0};
int i=T[0];
int y=32;
int z=11;
//Lubie Cie:
int *X0 = &i;
int *Y0 = &y;
int *Z0 = T;
int **X1 = &X0;
int **Y1 = &Z0;
int ***X2 = &X1;
//Jestes fajna:
for(++i;--(***X2)>=i;(***X2)-=2)
{
//Bardzo fajna:
if(X2 == &X1)
X2 = &Y1;
else
X2 = &X1;
//Uwielbiam Cie!:
if(*X2 == &X0)
*X2 = &Y0;
else if(*X2 == &Y0)
*X2 = &Z0;
else *X2 = &X0;
//Kocham Cię!:
if(**X2 == &i)
{
y = --y + Labadaga(*X0);
if(***X2 <= 0)
**X2 = &y;
else
**X2 = T;
}
else if(**X2 == &y)
{
i += Labadaga(**Y1);
if(***X2 <= 0)
**X2 = &i;
else
**X2 = T;
}
if(**X2 == T)/// ODDAM ZA CIEBIE ZYCIE, Haha!:
{
if(***X2==0)
**X2 = &y;
else
{
***X2 = Labadaga(**X1);
if(***X2 >= 0)
**Y1 += --*Z0;
else
**Y1 += **Y1--;
(**X2)++;
}
}
std::cout<<***X2<<" ";
}
return 0;
}
int Labadaga(int A) //Oto moje serce:
{
if(A>0) return Labadaga(-A)*Labadaga(!(A%2));
if(A == 0) return 3;
return A/2;
}
Replies to Zadanie - Co wypisze
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}