結果

問題 No.1113 二つの整数 / Two Integers
ユーザー titiatitia
提出日時 2020-07-17 21:32:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 8,232 KB
最終ジャッジ日時 2023-08-20 05:56:26
合計ジャッジ時間 6,767 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 244 ms
8,040 KB
testcase_01 AC 255 ms
8,040 KB
testcase_02 AC 379 ms
8,112 KB
testcase_03 WA -
testcase_04 AC 389 ms
8,052 KB
testcase_05 WA -
testcase_06 AC 243 ms
8,232 KB
testcase_07 AC 247 ms
8,036 KB
testcase_08 AC 253 ms
8,164 KB
testcase_09 AC 389 ms
8,140 KB
testcase_10 AC 293 ms
8,220 KB
testcase_11 AC 253 ms
8,040 KB
testcase_12 AC 371 ms
8,220 KB
testcase_13 AC 249 ms
8,048 KB
testcase_14 AC 381 ms
8,044 KB
testcase_15 AC 373 ms
8,044 KB
testcase_16 AC 296 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for i in range(2,10**6+1):
    while X%(i**2)==0:
        X//=i**2
    if X%i==0:
        flag=1

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