Pagini recente » Cod sursa (job #2224466) | Cod sursa (job #763090) | Cod sursa (job #1387551) | Cod sursa (job #1053363) | Cod sursa (job #3132456)
#include <stdio.h>
const int n_max = 10001;
const int m = 1999999973;
long long exp_log(float x, int n)
{
if (n < 0)
{
x = 1.0 / x;
n = (-1) * n;
}
if (n == 0)
{
return 1;
}
float p = 1;
while (n > 0)
{
if (n % 2)
{
p = p * x;
}
x = x * x;
n = n / 2;
}
return p;
}
int main(void)
{
unsigned int n, p;
long long sol;
freopen("lgput.in","r",stdin);
freopen("lgput.out","w",stdout);
scanf("%d %d", &n, &p);
printf("%lld\n", sol); // Afisam solutia
return 0;
}