题目链接:https://nanti.jisuanke.com/t/31719
有个好的板子就能过啦
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
int t=cin.nextInt();
while(t-->0) {
String str=cin.next();
BigInteger n=new BigInteger(str);
BigInteger m=n.multiply(n.subtract(BigInteger.ONE)).shiftRight(1);
boolean ni=isSquare(n),mi=isSquare(m);
if(ni&&mi)
System.out.println("Arena of Valor");
else if(ni&&!mi)
System.out.println("Hearth Stone");
else if(!ni&&mi)
System.out.println("Clash Royale");
else
System.out.println("League of Legends");
}
cin.clo