SRM 599 DIV2 500p
程序员文章站
2022-05-20 16:27:08
...
Problem Statement This problem statement contains superscipts that may not display properly outside the applet. You are given four ints A , B , C and D . Return divisible (quotes for clarity) if A B is divisible by C D . Return not divisib
Problem Statement |
|||||||||||||
This problem statement contains superscipts that may not display properly outside the applet. You are given four ints A, B, C and D. Return "divisible" (quotes for clarity) if AB is divisible by CD. Return "not divisible" otherwise. |
|||||||||||||
Definition |
|||||||||||||
|
|||||||||||||
Notes |
|||||||||||||
- | The return value is case-sensitive. | ||||||||||||
- | Positive integer y divides a positive integer x if and only if there is a positive integer z such that y*z=x. In particular, for each positive integer x, both 1 and x divide x. | ||||||||||||
Constraints |
|||||||||||||
- | A, B, C and D will each be between 1 and 1,000,000,000 (109), inclusive. | ||||||||||||
Examples |
|||||||||||||
0) | |||||||||||||
|
|||||||||||||
1) | |||||||||||||
|
|||||||||||||
2) | |||||||||||||
|
|||||||||||||
3) | |||||||||||||
|
|||||||||||||
4) | |||||||||||||
|
|||||||||||||
5) | |||||||||||||
|
This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2003, TopCoder, Inc. All rights reserved.
分解质因数。。。。注意A或C可能是质数。。。。
#include#include #include
上一篇: linux gzip压缩页面和图片靠谱么
下一篇: 基于PHP服务端图片生成缩略图的方法详解