結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
|
提出日時 | 2020-07-25 19:40:07 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 385 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 82,020 KB |
実行使用メモリ | 80,384 KB |
最終ジャッジ日時 | 2024-06-27 13:50:26 |
合計ジャッジ時間 | 2,784 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | TLE * 1 -- * 14 |
ソースコード
def make_divisors(a): ret = [] d = 1 while d * d <= a ** 2: if a % d == 0: ret.append(d) d += 1 return ret a, b = map(int, input().split()) a_divisors = set(make_divisors(a)) b_divisors = set(make_divisors(b)) # print(a_divisors) # print(b_divisors) x = len(a_divisors & b_divisors) if x % 2 == 0: print("Even") else: print("Odd")