結果

問題 No.3029 素因数
ユーザー 👑 kmjpkmjp
提出日時 2017-03-31 23:27:29
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 6,604 KB
実行使用メモリ 6,188 KB
最終ジャッジ日時 2023-09-21 12:02:36
合計ジャッジ時間 1,731 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,052 KB
testcase_01 WA -
testcase_02 AC 10 ms
5,972 KB
testcase_03 AC 10 ms
6,000 KB
testcase_04 AC 10 ms
6,116 KB
testcase_05 AC 11 ms
6,072 KB
testcase_06 AC 13 ms
5,964 KB
testcase_07 AC 11 ms
6,004 KB
testcase_08 WA -
testcase_09 AC 10 ms
6,112 KB
testcase_10 WA -
testcase_11 AC 10 ms
6,104 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 11 ms
6,024 KB
testcase_15 AC 10 ms
6,044 KB
testcase_16 AC 10 ms
6,024 KB
testcase_17 AC 10 ms
5,948 KB
testcase_18 AC 10 ms
6,088 KB
testcase_19 WA -
testcase_20 AC 10 ms
6,072 KB
testcase_21 AC 11 ms
6,160 KB
testcase_22 AC 10 ms
6,024 KB
testcase_23 AC 10 ms
6,132 KB
testcase_24 WA -
testcase_25 AC 10 ms
6,064 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 10 ms
6,072 KB
testcase_29 AC 11 ms
6,068 KB
testcase_30 WA -
testcase_31 AC 11 ms
6,068 KB
testcase_32 AC 10 ms
6,060 KB
testcase_33 WA -
testcase_34 AC 11 ms
6,048 KB
testcase_35 AC 10 ms
6,120 KB
testcase_36 WA -
testcase_37 AC 10 ms
6,064 KB
testcase_38 WA -
testcase_39 AC 10 ms
6,004 KB
権限があれば一括ダウンロードができます

ソースコード

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