結果

問題 No.1113 二つの整数 / Two Integers
ユーザー 👑 KazunKazun
提出日時 2020-07-17 21:34:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 185 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 71,640 KB
最終ジャッジ日時 2023-08-20 06:04:29
合計ジャッジ時間 2,394 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,412 KB
testcase_01 AC 70 ms
71,356 KB
testcase_02 AC 70 ms
71,324 KB
testcase_03 AC 73 ms
71,028 KB
testcase_04 AC 70 ms
71,428 KB
testcase_05 AC 71 ms
71,640 KB
testcase_06 AC 70 ms
71,324 KB
testcase_07 AC 71 ms
71,636 KB
testcase_08 AC 71 ms
71,228 KB
testcase_09 AC 73 ms
71,336 KB
testcase_10 AC 71 ms
71,420 KB
testcase_11 AC 72 ms
71,320 KB
testcase_12 AC 70 ms
71,260 KB
testcase_13 AC 72 ms
71,272 KB
testcase_14 AC 72 ms
71,180 KB
testcase_15 AC 71 ms
71,572 KB
testcase_16 AC 73 ms
71,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd,sqrt
A,B=map(int,input().split())
X=gcd(A,B)

M=int(sqrt(X))

F=False
for k in range(-2,3):
    F|=((M-k)*(M-k)==X)

if F:
    print("Odd")
else:
    print("Even")
0