guxuan

guxuan : 1922. Toothpick Arithmetic,怎么老是WA,样例和其他东西(我的自测样例)测的都对的呀,麻烦大家看一下,谢谢!
3 年,3 月前

include define N 5009 define INF 1e15 using namespace std; typedef long long ll; ll n,f[N],g[N],chen[N]; char op[N]; void solve(ll x){ // f[x]=chen[x]=x; // for(ll i=1;i<=x;++i){ // ll now=chen[i]+chen[x-i]+2; // if(now<f[x]) f[x ...查看全文