結果

問題 No.1113 二つの整数 / Two Integers
ユーザー mkawa2mkawa2
提出日時 2020-07-17 21:24:43
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 996 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 11,020 KB
実行使用メモリ 10,264 KB
最終ジャッジ日時 2023-08-20 06:01:10
合計ジャッジ時間 1,825 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,124 KB
testcase_01 AC 30 ms
9,852 KB
testcase_02 AC 30 ms
10,236 KB
testcase_03 AC 30 ms
10,152 KB
testcase_04 AC 30 ms
10,100 KB
testcase_05 AC 30 ms
10,140 KB
testcase_06 AC 30 ms
9,856 KB
testcase_07 AC 29 ms
9,956 KB
testcase_08 AC 30 ms
10,152 KB
testcase_09 AC 29 ms
10,096 KB
testcase_10 AC 29 ms
10,232 KB
testcase_11 AC 29 ms
10,100 KB
testcase_12 AC 30 ms
10,156 KB
testcase_13 AC 29 ms
10,184 KB
testcase_14 AC 30 ms
10,228 KB
testcase_15 AC 30 ms
10,264 KB
testcase_16 AC 30 ms
10,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from operator import itemgetter
from itertools import *
from bisect import *
from collections import *
from heapq import *
from fractions import Fraction
import sys

sys.setrecursionlimit(10 ** 6)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def SI(): return sys.stdin.readline()[:-1]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]
int1 = lambda x: int(x) - 1
def MI1(): return map(int1, sys.stdin.readline().split())
def LI1(): return list(map(int1, sys.stdin.readline().split()))
p2D = lambda x: print(*x, sep="\n")
dij = [(1, 0), (0, 1), (-1, 0), (0, -1)]

def gcd(a,b):
    while b:a,b=b,a%b
    return a

def issquare(a):
    for d in range(int(a**0.5)-1,a+1):
        if d**2==a:return True
        if d**2>a:return False

a,b=MI()
g=gcd(a,b)
if issquare(g):print("Odd")
else:print("Even")
0