#include <stdio.h>
int func(int x, int y, int z){
int ans, xz = 1, yz = 1, i;
static int count = 0;
if( (x != 0) || (y != 0) || (z != 0) )
count++;
else
return count;
for( i = 0; i < z; i++ ) {
xz *= x;
yz *= y;
}
ans = xz+yz;
return ans;
}
int main(void) {
int i;
for( i = 1; i < 5; i++ ){
func(i, i, i);
}
printf("%d\n", func
(0, 0, 0)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBmdW5jKGludCB4LCBpbnQgeSwgaW50IHopewppbnQgYW5zLCB4eiA9IDEsIHl6ID0gMSwgaTsKc3RhdGljIGludCBjb3VudCA9IDA7CmlmKCAoeCAhPSAwKSB8fCAoeSAhPSAwKSB8fCAoeiAhPSAwKSApCmNvdW50Kys7CmVsc2UKcmV0dXJuIGNvdW50Owpmb3IoIGkgPSAwOyBpIDwgejsgaSsrICkgewp4eiAqPSB4Owp5eiAqPSB5Owp9CmFucyA9IHh6K3l6OwpyZXR1cm4gYW5zOwp9CmludCBtYWluKHZvaWQpIHsKaW50IGk7CmZvciggaSA9IDE7IGkgPCA1OyBpKysgKXsKZnVuYyhpLCBpLCBpKTsKfQpwcmludGYoIiVkXG4iLCBmdW5jKDAsIDAsIDApKTsJCnJldHVybiAwOwp9