結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー | 👑 H20 |
提出日時 | 2020-12-01 11:18:13 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 282 ms |
コンパイル使用メモリ | 87,196 KB |
実行使用メモリ | 79,860 KB |
最終ジャッジ日時 | 2023-10-11 03:26:49 |
合計ジャッジ時間 | 4,383 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,416 KB |
testcase_01 | AC | 72 ms
71,408 KB |
testcase_02 | AC | 303 ms
75,696 KB |
testcase_03 | TLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
import math def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 1 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] A,B = map(int,input().split()) if len(make_divisors(math.gcd(A, B)))%2==0: print('Even') else: print('Odd')