結果

問題 No.1113 二つの整数 / Two Integers
ユーザー zaki_chemtechzaki_chemtech
提出日時 2020-07-30 18:30:16
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 428 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 72,060 KB
最終ジャッジ日時 2023-09-17 19:03:36
合計ジャッジ時間 4,038 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
72,060 KB
testcase_01 AC 95 ms
71,884 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

def prime(p):
    memo = []
    for i in range(1,(int(p**0.5)+1)):
        if p%i == 0:
            memo.append(i)
            memo.append(p//i)
    return memo

a,b = map(int,input().split())

memo_a = prime(a)
memo_b = prime(b)

memo = memo_a + memo_b

memo = collections.Counter(memo)

ans = 0

for v in memo.values():
    if v == 2:
        ans += 1

if ans%2==0:
    print('Even')
else:
    print('Odd')
0