#include <stdio.h>
unsigned long long xdon (unsigned long long x, unsigned long long n) {
unsigned long long wynik = 1;
for (;n;n--) wynik *= x;
return wynik;
}
int main (void) {
unsigned long long suma, n;
if (n
>15) printf ("DLA N>15 OBLICZONY WYNIK JEST BŁĘDNY!\n"); for(suma = 0; n; --n) suma += xdon(n, n);
printf ("Wynik: %12llu\n", suma
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp1bnNpZ25lZCBsb25nIGxvbmcgeGRvbiAodW5zaWduZWQgbG9uZyBsb25nIHgsIHVuc2lnbmVkIGxvbmcgbG9uZyBuKSB7CiAgICB1bnNpZ25lZCBsb25nIGxvbmcgd3luaWsgPSAxOwogICAgZm9yICg7bjtuLS0pIHd5bmlrICo9IHg7CiAgICByZXR1cm4gd3luaWs7Cn0KCmludCBtYWluICh2b2lkKSB7CiAgICB1bnNpZ25lZCBsb25nIGxvbmcgc3VtYSwgbjsKICAgIHByaW50ZigiUG9kYWogbjogIik7CiAgICBzY2FuZigiJWxsdSIsICZuKTsKICAgIHByaW50ZiAoIlxuIik7CiAgICBpZiAobj4xNSkgcHJpbnRmICgiRExBIE4+MTUgT0JMSUNaT05ZIFdZTklLIEpFU1QgQsWBxJhETlkhXG4iKTsKICAgIHByaW50ZiAoIm46ICUybGx1XHQiLCBuKTsKCWZvcihzdW1hID0gMDsgbjsgLS1uKSBzdW1hICs9IHhkb24obiwgbik7CiAgICBwcmludGYgKCJXeW5pazogJTEybGx1XG4iLCBzdW1hKTsKICAgIHJldHVybiAwOwp9