結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー | hotate29 |
提出日時 | 2020-10-13 01:47:28 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 436 bytes |
コンパイル時間 | 725 ms |
コンパイル使用メモリ | 87,268 KB |
実行使用メモリ | 79,900 KB |
最終ジャッジ日時 | 2023-09-27 23:53:58 |
合計ジャッジ時間 | 6,202 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
71,548 KB |
testcase_01 | AC | 68 ms
71,208 KB |
testcase_02 | AC | 209 ms
75,436 KB |
testcase_03 | AC | 181 ms
75,612 KB |
testcase_04 | AC | 179 ms
75,760 KB |
testcase_05 | TLE | - |
testcase_06 | AC | 69 ms
71,344 KB |
testcase_07 | AC | 69 ms
71,572 KB |
testcase_08 | AC | 68 ms
71,592 KB |
testcase_09 | TLE | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
from math import gcd def pf(n): r = [] for p in range(2, n): if p * p > n: break e = 0 if n % p == 0: while(n % p == 0): n //= p e += 1 r.append((p, e)) if n != 1: r.append((n, 1)) return r a,b = map(int,input().split()) g = gcd(a,b) c = pf(g) ans = 1 for p,e in c: ans *= e+1 print("Odd" if ans%2 else "Even")