結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-25 19:41:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 82,292 KB |
| 実行使用メモリ | 65,420 KB |
| 最終ジャッジ日時 | 2024-06-27 13:51:52 |
| 合計ジャッジ時間 | 2,794 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 14 |
ソースコード
def make_divisors(a):
ret = []
d = 1
while d * d <= a:
if a % d == 0:
ret.append(d)
ret.append(a // 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")