結果

問題 No.1113 二つの整数 / Two Integers
ユーザー stngstng
提出日時 2022-09-04 15:18:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 456 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 52,608 KB
最終ジャッジ日時 2024-04-29 15:47:29
合計ジャッジ時間 1,618 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,096 KB
testcase_01 AC 35 ms
52,224 KB
testcase_02 AC 34 ms
52,352 KB
testcase_03 AC 35 ms
52,224 KB
testcase_04 AC 36 ms
51,840 KB
testcase_05 AC 36 ms
52,352 KB
testcase_06 AC 34 ms
51,968 KB
testcase_07 AC 34 ms
52,224 KB
testcase_08 AC 35 ms
52,352 KB
testcase_09 AC 35 ms
52,608 KB
testcase_10 AC 39 ms
52,352 KB
testcase_11 AC 36 ms
52,096 KB
testcase_12 AC 35 ms
52,352 KB
testcase_13 AC 35 ms
52,352 KB
testcase_14 AC 35 ms
52,224 KB
testcase_15 AC 36 ms
52,352 KB
testcase_16 AC 35 ms
52,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a,b = map(int,input().split())

def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    divisors.sort()
    return divisors

tmp = math.gcd(a,b)
if tmp**0.5 == int(tmp**0.5):
    print("Odd")
else:
    print("Even")
#if len(make_divisors(tmp)) % 2 == 0:
#    print("Even")
#else:
#    print("Odd")
0