結果

問題 No.2051 Divide
ユーザー first_vil
提出日時 2022-09-21 17:22:06
言語 Bash
(Bash 5.2.21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 6,696 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-22 04:14:19
合計ジャッジ時間 2,489 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

read a b
c=0
for ((i=1; i*i <= a; i++)) ; do
	if ((a%i==0)); then
		if ((i%b==0)); then
			c=$((c+1))
		fi
		if ((i*i!=a && a/i%b==0)); then
			c=$((c+1))
		fi
	fi
done
echo $c
0