結果
| 問題 | No.1113 二つの整数 / Two Integers |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-17 23:17:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| 記録 | |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 85,896 KB |
| 実行使用メモリ | 65,860 KB |
| 最終ジャッジ日時 | 2026-05-23 20:02:50 |
| 合計ジャッジ時間 | 5,343 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 WA * 2 TLE * 1 -- * 8 |
ソースコード
A,B = map(int, input().split())
def divisors(n):
ans = []
i = 2
while i * i <= n:
if n % i == 0:
ans.append(i)
if i != n // i:
ans.append(n // i)
i += 1
return ans
ans = 1
for i in divisors(min(A,B)):
if B % i == 0:
ans += 1
print('Even' if ans % 2 == 0 else 'Odd')