結果

問題 No.1113 二つの整数 / Two Integers
ユーザー 37zigen37zigen
提出日時 2020-07-24 11:18:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 8,080 KB
最終ジャッジ日時 2023-09-07 03:11:04
合計ジャッジ時間 6,977 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 267 ms
8,048 KB
testcase_01 AC 256 ms
7,856 KB
testcase_02 AC 285 ms
7,972 KB
testcase_03 AC 282 ms
7,840 KB
testcase_04 WA -
testcase_05 AC 292 ms
8,048 KB
testcase_06 AC 257 ms
7,920 KB
testcase_07 AC 275 ms
7,916 KB
testcase_08 AC 273 ms
7,964 KB
testcase_09 WA -
testcase_10 AC 267 ms
7,896 KB
testcase_11 AC 257 ms
8,020 KB
testcase_12 WA -
testcase_13 AC 248 ms
7,972 KB
testcase_14 AC 280 ms
7,844 KB
testcase_15 AC 287 ms
8,052 KB
testcase_16 AC 259 ms
8,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

a,b=map(int,input().split())
g=math.gcd(a,b)
# p^(2k+1)
even=False
for d in range(2,10**6+1):
    cnt=0
    while g%d==0:
        g//=d
        cnt+=1
    even|=cnt%2==1
if even or g>1:
    print("Even")
else:
    print("Odd")
0