。。。。无符号32位整数
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
BigInteger n,k;
BigInteger m= BigInteger.ZERO;
int t;
t=cin.nextInt();
int casee=1;
while(t>0)
{
t--;
n=cin.nextBigInteger();
k=cin.nextBigInteger();
n=n.abs();
k=k.abs();
if(n.mod(k).compareTo(m)==0)
{
System.out.println("Case "+casee+": divisible");
casee++;
}
else
{
System.out.println("Case "+casee+": not divisible");
casee++;
}
}
//System.out.println("Hello world!");
cin.close();
}
}
- 版权声明:本文基于《知识共享署名-相同方式共享 3.0 中国大陆许可协议》发布,转载请遵循本协议
- 文章链接:http://www.carlstedt.cn/archives/98 (转载时请注明本文出处及文章链接)


发表评论
快来吐槽一下吧!