原文链接:https://acs.jxnu.edu.cn/problem/ICPCJX2020Bhttps://acs.jxnu.edu.cn/problem/ICPCJX2020B
原文:
Apple
1000ms 262144K
描述:
There are a box of apples,which contains NN apples. You're going to give them to MM person. It is required that everyone must be given a positive integer apple, and no one must have the same amount. If it can be done, output
possible
; otherwise outputimpossible
.
输入:
The first line contains a positive integerT(1≤T≤5)T(1≤T≤5)- the number of test cases.
In each of the following TT lines there are two positive integers N,M.(1≤N≤1000000,1≤M≤1000)N,M.(1≤N≤1000000,1≤M≤1000).
输出:
For each test case output a line. If it can be done, output possible
; otherwise output impossible
.
样例输入:
3 9 3 12 1 9 4
样例输出:
possible possible impossible
参考译文:
苹果
1000ms 262144K
描述:
现在有一个装有N个苹果的箱子,你打算把这些苹果分给M个人。要求是每个人分到正整数个苹果,且所有人分得的苹果数不能相同,如果能做到满足上述条件则输出“possible”,否则输出“impossible”。
输入:
第一行包含一个整数T(1 <= T =< 5),用来表示测试组数
接下来T行,每行代表一组测试,每组测试包含两个正整数N,M用来分别表示苹果数和总人数
输出:
每组测试对应一行输出,如果可以满足题设则输出“possible”,否则输出“impossible”。
样例输入:
3 9 3 12 1 9 4
样例输出:
possible possible impossible