No.2051 Divide
レベル :
/ AI推定難易度 : 243
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 140
作問者 :
PCTprobability
/ テスター :
butsurizuki
タグ : / 解いたユーザー数 140
作問者 :
PCTprobability
/ テスター :
butsurizuki
問題文最終更新日: 2022-08-20 22:51:47
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
NPCA 合宿コンテスト
(順位表)
の他の問題:
Problem Statement
You are given positive integers $A,B$. Find the number of positive integers that are divisors of $A$ and multiples of $B$.
Constraints
- $1 \le A,B \le 10^9$
- All input values are integers.
Input
$A$ $B$
Output
Output the answer.
Sample
Sample 1
Input
6 3
Output
2
$3,6$ satisfy the condition. $1$ is a divisor of $6$, but it is not a multiple of $3$, so it does not satisfy the condition.
Sample 2
Input
1 1
Output
1
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。