#3AC,其它全WA

P1464 Function

有dalao看看么?
by underline__jian @ 2021-10-29 20:00:05


@[___include___](/user/494992) wihle循环里改成: ``` memset(wc,0,sizeof(wc)); if(a==-1&&b==-1&&c==-1) break; printf("w(%lld, %lld, %lld) = ",a,b,c); if(a>20) a=21; if(b>20) b=21; if(c>20) c=21; printf("%lld\n",w(a,b,c)); ```
by Matikanetannhauser @ 2021-10-29 20:17:49


@[憨憨的chengheng](/user/366400) 为什么呢 (题解也是这样但我不太理解
by underline__jian @ 2021-10-29 20:19:45


```cpp signed main(){ long long a,b,c; while(scanf("%lld%lld%lld",&a,&b,&c)==3){ //记忆化搜索 if(a!=-1&&b!=-1&&c!=-1) printf("w(%lld, %lld, %lld) = ",a,b,c); else break; printf("%lld\n",w(a,b,c)); } return 0; } ``` 错在这里...额if里面应该是 or 吧......(写成且了).........
by WHH_FZZ @ 2022-08-05 01:23:16


|