結果

問題 No.1113 二つの整数 / Two Integers
ユーザー AzumabashiAzumabashi
提出日時 2020-08-22 18:23:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 23 ms / 1,000 ms
コード長 254 bytes
コンパイル時間 724 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 9,220 KB
最終ジャッジ日時 2023-08-05 14:58:16
合計ジャッジ時間 1,980 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
9,116 KB
testcase_01 AC 21 ms
9,208 KB
testcase_02 AC 22 ms
9,052 KB
testcase_03 AC 21 ms
9,200 KB
testcase_04 AC 22 ms
9,164 KB
testcase_05 AC 22 ms
9,048 KB
testcase_06 AC 21 ms
9,096 KB
testcase_07 AC 23 ms
9,164 KB
testcase_08 AC 21 ms
9,168 KB
testcase_09 AC 21 ms
9,100 KB
testcase_10 AC 21 ms
9,220 KB
testcase_11 AC 21 ms
9,020 KB
testcase_12 AC 21 ms
9,064 KB
testcase_13 AC 22 ms
9,168 KB
testcase_14 AC 22 ms
9,016 KB
testcase_15 AC 21 ms
9,096 KB
testcase_16 AC 22 ms
9,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
from decimal import Decimal


def main():
    a, b = map(int, input().split())
    ab_gcd = gcd(a, b)
    print("Odd" if float(Decimal(str(ab_gcd)) ** Decimal("0.5")).is_integer() else "Even")


if __name__ == '__main__':
    main()
0