結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
rei60
|
| 提出日時 | 2020-08-22 16:20:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 429 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 61,952 KB |
| 最終ジャッジ日時 | 2024-10-15 10:24:12 |
| 合計ジャッジ時間 | 5,000 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 TLE * 2 -- * 12 |
ソースコード
A, B = map(int,input().split())
def gcd(a,b):
while b != 0:
r = a % b
a = b
b = r
return a
def make_divisors(n):
divisors = []
for i in range(1, int(n**0.5)+1):
if n % i == 0:
divisors.append(i)
if i != n // i:
divisors.append(n//i)
return divisors
if len(make_divisors(gcd(A,B))) % 2 == 0:
print("Even")
else:
print("Odd")
rei60