結果

問題 No.8029 素因数
ユーザー kmjp
提出日時 2017-03-31 23:27:29
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-07 05:56:08
合計ジャッジ時間 1,457 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

A=1309020564363155364990198847863210152708042104341971929
M=input()
D=1
while M%2==0:
	M /= 2
	D *= 2

if M==1:
	print "odd"
else:
	MM=A%M
	while D>1 and MM%2==0:
		MM /= 2
		D /= 2

	if MM%2==0:
		print "even"
	else:
		print "odd"


0