#include<bits/stdc++.h>usingnamespacestd;intmain(){intstat[100001]={};stat[0]=0;intpick[316]={};for(inti=1;i*i<100001;i++){pick[i-1]=i*i;}for(inti=1;i<100001;i++){for(intj=0;j<316;j++){if(pick[j]<=i){if(stat[i])break;elsestat[i]=!stat[i - pick[j]];}elsebreak;}}intT;cin>>T;while(T--){intn;cin>>n;if(stat[n])cout<<"JDG will get takeaways!"<<endl;elsecout<<"LJJ will get takeaways!"<<endl;}}
LJJ赢了的话输出是JDG- - 我就想怎么就是做不对呢