結果

問題 No.1113 二つの整数 / Two Integers
ユーザー roarisroaris
提出日時 2020-07-24 21:51:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 179 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 71,984 KB
最終ジャッジ日時 2023-09-08 03:56:46
合計ジャッジ時間 3,229 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,428 KB
testcase_01 AC 73 ms
71,296 KB
testcase_02 AC 68 ms
71,732 KB
testcase_03 AC 68 ms
71,772 KB
testcase_04 AC 70 ms
71,488 KB
testcase_05 AC 66 ms
71,712 KB
testcase_06 AC 69 ms
71,452 KB
testcase_07 AC 67 ms
71,324 KB
testcase_08 AC 68 ms
71,852 KB
testcase_09 AC 69 ms
71,984 KB
testcase_10 AC 70 ms
71,420 KB
testcase_11 AC 69 ms
71,728 KB
testcase_12 AC 70 ms
71,532 KB
testcase_13 AC 69 ms
71,852 KB
testcase_14 AC 69 ms
71,516 KB
testcase_15 AC 70 ms
71,788 KB
testcase_16 AC 68 ms
71,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def gcd(a, b):
    while b:
        a, b = b, a%b
    return a

A, B = map(int, input().split())
C = gcd(A, B)
r = int(C**0.5)

if r*r==C:
    print('Odd')
else:
    print('Even')
0