結果

問題 No.2051 Divide
ユーザー dangodango
提出日時 2023-06-12 20:41:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 1,943 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 75,916 KB
最終ジャッジ日時 2023-09-02 14:18:36
合計ジャッジ時間 4,103 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,268 KB
testcase_01 AC 68 ms
71,272 KB
testcase_02 AC 73 ms
75,732 KB
testcase_03 AC 73 ms
75,772 KB
testcase_04 AC 72 ms
75,720 KB
testcase_05 AC 71 ms
75,876 KB
testcase_06 AC 73 ms
75,620 KB
testcase_07 AC 72 ms
75,628 KB
testcase_08 AC 70 ms
75,732 KB
testcase_09 AC 74 ms
75,796 KB
testcase_10 AC 74 ms
75,732 KB
testcase_11 AC 73 ms
75,704 KB
testcase_12 AC 75 ms
75,556 KB
testcase_13 AC 76 ms
75,568 KB
testcase_14 AC 75 ms
75,644 KB
testcase_15 AC 75 ms
75,644 KB
testcase_16 AC 74 ms
75,732 KB
testcase_17 AC 77 ms
75,916 KB
testcase_18 AC 75 ms
75,616 KB
testcase_19 AC 76 ms
75,612 KB
testcase_20 AC 75 ms
75,748 KB
testcase_21 AC 72 ms
75,732 KB
testcase_22 AC 74 ms
75,872 KB
testcase_23 AC 74 ms
75,616 KB
testcase_24 AC 74 ms
75,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int,input().split())
H, D = {}, 1
while D * D <= A:
	if A % D == 0:
		if D % B == 0: H[D] = 0
		C = A // D
		if C % B == 0: H[C] = 0
	D += 1
print(len(H))
0