結果

問題 No.1113 二つの整数 / Two Integers
ユーザー 👑 tamatotamato
提出日時 2020-08-02 20:30:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 459 bytes
コンパイル時間 1,683 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 71,984 KB
最終ジャッジ日時 2023-09-26 12:54:33
合計ジャッジ時間 3,766 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,732 KB
testcase_01 AC 83 ms
71,784 KB
testcase_02 AC 77 ms
71,680 KB
testcase_03 AC 79 ms
71,780 KB
testcase_04 AC 81 ms
71,784 KB
testcase_05 AC 82 ms
71,984 KB
testcase_06 AC 79 ms
71,696 KB
testcase_07 AC 79 ms
71,900 KB
testcase_08 AC 79 ms
71,832 KB
testcase_09 AC 79 ms
71,820 KB
testcase_10 AC 77 ms
71,592 KB
testcase_11 AC 76 ms
71,900 KB
testcase_12 AC 78 ms
71,928 KB
testcase_13 AC 78 ms
71,896 KB
testcase_14 AC 76 ms
71,588 KB
testcase_15 AC 74 ms
71,752 KB
testcase_16 AC 75 ms
71,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    from math import gcd
    input = sys.stdin.readline

    A, B = map(int, input().split())
    g = gcd(A, B)
    ok = 1
    ng = g
    mid = (ok+ng) // 2
    while ng - ok > 1:
        if mid * mid <= g:
            ok = mid
        else:
            ng = mid
        mid = (ok+ng)//2
    if ok*ok == g:
        print("Odd")
    else:
        print("Even")


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