結果

問題 No.1113 二つの整数 / Two Integers
ユーザー yuly3yuly3
提出日時 2020-07-18 21:52:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 306 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 72,140 KB
最終ジャッジ日時 2023-08-21 01:21:46
合計ジャッジ時間 2,542 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,640 KB
testcase_01 AC 72 ms
71,316 KB
testcase_02 AC 70 ms
71,612 KB
testcase_03 AC 73 ms
71,944 KB
testcase_04 AC 72 ms
71,640 KB
testcase_05 AC 72 ms
71,868 KB
testcase_06 AC 71 ms
71,524 KB
testcase_07 AC 70 ms
71,392 KB
testcase_08 AC 71 ms
72,028 KB
testcase_09 AC 71 ms
71,696 KB
testcase_10 AC 71 ms
72,140 KB
testcase_11 AC 70 ms
71,600 KB
testcase_12 AC 70 ms
71,708 KB
testcase_13 AC 69 ms
71,764 KB
testcase_14 AC 72 ms
71,684 KB
testcase_15 AC 70 ms
71,868 KB
testcase_16 AC 72 ms
71,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from math import gcd

sys.setrecursionlimit(10 ** 7)
rl = sys.stdin.readline


def solve():
    A, B = map(int, rl().split())
    
    gcd_ab = gcd(A, B)
    sq = gcd_ab ** 0.5
    if sq.is_integer():
        print('Odd')
    else:
        print('Even')


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