結果

問題 No.1113 二つの整数 / Two Integers
ユーザー now4est
提出日時 2020-07-17 23:15:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 82,316 KB
実行使用メモリ 112,424 KB
最終ジャッジ日時 2024-11-30 02:54:35
合計ジャッジ時間 26,548 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 2 TLE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def divisors(n):
    ans = []
    i = 1
    while i * i <= n:
        if n % i == 0:
            ans.append(i)
            if i != n // i:
                ans.append(n // i)
        i += 1
    return ans

ans = 1
for i in divisors(min(A,B)):
    if B % i == 0:
        ans += 1
print('Even' if ans % 2 == 0 else 'Odd')
0