TopCoder

Y(OwO)Y
真実より 優しい嘘をプリーズ

User's AC Ratio

98.7% (514/521)

Submission's AC Ratio

67.0% (582/869)

Tags

Description

給你兩個正整數P,Q,請你判斷比較大的數是否能夠被比較小的數整除?

Input Format

兩個正整數P,Q(1<=P,Q<=10,000)。

Output Format

如果P,Q當中較小者可以整除較大者的話請輸出'Y',否則請輸出'N'。

Sample Input 1

3 5

Sample Output 1

N

Sample Input 2

10 2

Sample Output 2

Y

Hints

請在輸出完字母以後輸出End Of Line喔
例如在C語言當中:printf("Y\n");
在C++當中用:cout<<"Y"<<endl;

Problem Source

原TIOJ1053 / C/C++語言入門。Problem Setter: Tmt

Subtasks

No. Testdata Range Score
1 0 16
2 1 16
3 2 16
4 3 16
5 4 16
6 5 20

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 262144 1
1 1000 65536 262144 2
2 1000 65536 262144 3
3 1000 65536 262144 4
4 1000 65536 262144 5
5 1000 65536 262144 6