# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22713 | 응 내인생 터졌어~ (#40) | Fully Generate (KRIII5_FG) | C++11 | 179 ms | 626116 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
unsigned long long dp[40000000],dp2[40000000];
int ass[100] = {0,1,2,4,12,36,144,576,2304,11520,57600};
long long go(int i)
{
if (dp[i] !=0) return dp[i];
return dp[i] = 1 + go(i - go(go(i - 1)));
}
unsigned long long po(unsigned int a, unsigned int b)
{
if (b == 0)
return 1;
else if (b == 1)
return a;
unsigned long long ret = po(a, b/2) % 1000000007;
ret = ret*ret;
ret %= 1000000007;
if (b % 2)
return (ret* a)%1000000007;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |