結果

問題 No.1113 二つの整数 / Two Integers
ユーザー brthyyjpbrthyyjp
提出日時 2020-07-17 21:26:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 71,976 KB
最終ジャッジ日時 2023-08-20 06:03:26
合計ジャッジ時間 3,089 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,368 KB
testcase_01 AC 75 ms
71,308 KB
testcase_02 AC 74 ms
71,488 KB
testcase_03 AC 77 ms
71,588 KB
testcase_04 AC 73 ms
71,656 KB
testcase_05 AC 74 ms
71,564 KB
testcase_06 AC 74 ms
71,196 KB
testcase_07 AC 76 ms
71,120 KB
testcase_08 AC 77 ms
71,556 KB
testcase_09 AC 77 ms
71,572 KB
testcase_10 AC 77 ms
71,740 KB
testcase_11 AC 78 ms
71,748 KB
testcase_12 AC 77 ms
71,572 KB
testcase_13 AC 76 ms
71,816 KB
testcase_14 AC 78 ms
71,408 KB
testcase_15 AC 79 ms
71,976 KB
testcase_16 AC 76 ms
71,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, input().split())
import math
g = math.gcd(a, b)

def try_square_root_naive(n):
    m = int(n**.5)
    return True if abs(m*m - n) < 1e-6 else False

if try_square_root_naive(g):
    print('Odd')
else:
    print('Even')
0