Pagini recente » Cod sursa (job #701870) | Cod sursa (job #2662934) | Cod sursa (job #1116893) | Cod sursa (job #850118) | Cod sursa (job #3132455)
#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;
}