wordpress幻灯片回收站在哪,做学校网站素材,黄骅市海边,网站建设行D. Circle Game
看到博弈题#xff0c;直接打表不过并不能发现什么规律gg
后手每次按照先手对称进行移动#xff0c;如果先手向右则向上#xff0c;先手向上则向右#xff0c;然后考虑最后一步即可。 对称技巧#xff01;#xff01;#xff01;
#define IO ios::syn…D. Circle Game
看到博弈题直接打表不过并不能发现什么规律gg
后手每次按照先手对称进行移动如果先手向右则向上先手向上则向右然后考虑最后一步即可。 对称技巧
#define IO ios::sync_with_stdio(false);cin.tie();cout.tie(0)
#pragma GCC optimize(2)
#includeset
#includemap
#includecmath
#includestack
#includequeue
#includerandom
#includebitset
#includestring
#includevector
#includecstdio
#includecstring
#includeiostream
#includealgorithm
#includeunordered_map
#includeunordered_set
using namespace std;
typedef long long ll;
typedef pairint,int pii;
const ll mod998244353;
const int N2010;
// int sg[N][N],k,d;
// bool check(int i,int j)
// {
// return i*ij*jd*d;
// }
// int dfs(int x,int y)
// {
// if(sg[x][y]!-1) return sg[x][y];// if(!check(xk,y)!check(x,yk)) return sg[x][y]0;// return sg[x][y](!dfs(xk,y)||!dfs(x,yk));
// }
void solve()
{ll d,k;cindk;ll now0;while(2*(nowk)*(nowk)d*d)nowk;if((nowk)*(nowk)now*nowd*d) coutUtkarsh\n;else coutAshish\n;}
int main()
{IO;int T1;cinT;while(T--)solve();return 0;
}博弈论考智商智商不够还是多见见题吧 要加油哦~