能不能整除
来源:互联网 发布:淘宝盗图有什么处罚 编辑:程序博客网 时间:2024/04/27 15:47
Description
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if there exists an integer c such that a = b * c.
Input
Input starts with an integer T (≤ 525), denoting the number of test cases.
Each case starts with a line containing two integers a (-10200 ≤ a ≤ 10200) and b (|b| > 0, b fits into a 32 bit signed integer). Numbers will not contain leading zeroes.
Output
For each case, print the case number first. Then print 'divisible' if a is divisible by b. Otherwise print 'not divisible'.
Sample Input
6
101 101
0 67
-101 101
7678123668327637674887634 101
11010000000000000000 256
-202202202202000202202202 -101
Sample Output
Case 1: divisible
Case 2: divisible
Case 3: divisible
Case 4: not divisible
Case 5: divisible
Case 6: divisible
代码:
- 能不能整除
- 怎么判断一个数能不能被某个数整除。
- 能不能
- 整除
- 整除
- 整除
- 整除
- 整除
- 整除
- b能不能能不能把能不能不
- 发个图看能不能
- 能不能有敢说张韶涵
- 能不能买房
- 能不能把能不能那边能不能把能不能吧
- 能不能日更啊?!
- [引]整除
- 整除问题
- 整除规则
- mysql随机查询若干条数据
- 电子或通信领域当前的主流技术及其社会需求调查报告
- IIS添加WCF支持
- android横竖屏切换和布局的问题
- 杭电Phone List1671
- 能不能整除
- PHP魔术函数、魔术常量、预定义常量
- jquery分页插件开发
- MyBatis一对多双向关联以及collection的两种形式
- 指针遍历数组
- C#之构造函数
- Linux网络流量控制工具—Netem(可用于网络故障注入)
- Masonry的使用
- ceph rgw md_config_t(SubsystemMap/subsystem)