結果

問題 No.415 ぴょん
ユーザー taba
提出日時 2017-04-03 15:06:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
MLE  
実行時間 -
コード長 130 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 821,376 KB
最終ジャッジ日時 2024-07-08 03:20:30
合計ジャッジ時間 2,663 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 MLE * 1 -- * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

n,d=map(int,input().split())
a=list(range(n))
p=0
c=0
while 1:
	a.remove(p)
	p+=d
	p%=n
	if p in a:
		c+=1
	else:
		break
print(c)
0