记忆化
by ycr_qwq @ 2020-10-13 16:23:27
```cpp
#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
long long jiyi[101][101][101],n,m,p;
int w(long long a,long long b,long long c)
{
/*和谐*/
}
int main()
{
memset(jiyi,-1,sizeof(jiyi));
while(cin>>n>>m>>p)
{
if(n==-1&&m==-1&&p==-1)
return 0;
//cout<<"w("<<n<<", "<<m<<", "<<p<<") = "<<w(n,m,p);
long long ans=w(n,m,p);
printf("w(%lld, %lld, %lld) = %ld\n",n,m,p,ans);
}
}
```
by ycr_qwq @ 2020-10-13 16:24:43