結果

問題 No.1113 二つの整数 / Two Integers
ユーザー syunsukesyunsuke
提出日時 2020-09-13 18:13:01
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 460 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 75,692 KB
最終ジャッジ日時 2023-09-03 23:48:05
合計ジャッジ時間 3,382 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
75,676 KB
testcase_01 AC 72 ms
71,128 KB
testcase_02 AC 307 ms
75,508 KB
testcase_03 TLE -
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B=map(int,input().split())

if B>A:
    A,B=B,A

while A%B!=0:
    A,B=B,A%B

def make_divisors(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]

L=make_divisors(B)
#print(L)

if len(L)%2==1:
    print("Odd")
else:
    print("Even")
0