結果

問題 No.1113 二つの整数 / Two Integers
ユーザー FromBooskaFromBooska
提出日時 2023-02-23 22:58:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 332 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 87,284 KB
実行使用メモリ 71,972 KB
最終ジャッジ日時 2023-09-30 22:24:38
合計ジャッジ時間 2,866 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,972 KB
testcase_01 AC 72 ms
71,316 KB
testcase_02 AC 73 ms
71,792 KB
testcase_03 AC 71 ms
71,876 KB
testcase_04 AC 71 ms
71,560 KB
testcase_05 AC 72 ms
71,636 KB
testcase_06 AC 72 ms
71,388 KB
testcase_07 AC 72 ms
71,508 KB
testcase_08 AC 72 ms
71,632 KB
testcase_09 AC 71 ms
71,772 KB
testcase_10 AC 72 ms
71,888 KB
testcase_11 AC 73 ms
71,632 KB
testcase_12 AC 71 ms
71,912 KB
testcase_13 AC 72 ms
71,576 KB
testcase_14 AC 72 ms
71,772 KB
testcase_15 AC 72 ms
71,660 KB
testcase_16 AC 71 ms
71,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 公約数は最大公約数の約数
# 最大公約数の約数の個数が奇数のときは、その最大公約数が二乗数のとき
# 巨大数のときの誤差に注意か

A, B = map(int, input().split())
from math import gcd
G = gcd(A, B)
sqrt = int(G**0.5)
if sqrt**2 == G:
    print('Odd')
else:
    print('Even')



0