結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-17 23:17:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 351 bytes |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 108,800 KB |
| 最終ジャッジ日時 | 2024-11-30 02:58:55 |
| 合計ジャッジ時間 | 26,497 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 TLE * 13 |
ソースコード
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')