結果

問題 No.1113 二つの整数 / Two Integers
ユーザー titiatitia
提出日時 2020-07-17 21:29:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 8,212 KB
最終ジャッジ日時 2023-08-19 23:45:33
合計ジャッジ時間 4,960 ms
ジャッジサーバーID
(参考情報)
judge10 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 163 ms
8,152 KB
testcase_01 AC 168 ms
8,160 KB
testcase_02 AC 261 ms
8,148 KB
testcase_03 AC 268 ms
8,052 KB
testcase_04 WA -
testcase_05 AC 261 ms
8,052 KB
testcase_06 AC 162 ms
8,052 KB
testcase_07 AC 165 ms
8,212 KB
testcase_08 AC 163 ms
8,048 KB
testcase_09 WA -
testcase_10 AC 172 ms
8,092 KB
testcase_11 AC 164 ms
8,060 KB
testcase_12 WA -
testcase_13 AC 162 ms
8,204 KB
testcase_14 AC 261 ms
8,148 KB
testcase_15 AC 264 ms
8,096 KB
testcase_16 AC 175 ms
8,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

if X==1:
    print("Odd")
else:
    print("Even")
0