結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-07-17 21:22:48 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 397 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 81,848 KB |
実行使用メモリ | 118,876 KB |
最終ジャッジ日時 | 2024-11-29 20:52:36 |
合計ジャッジ時間 | 14,311 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 TLE * 7 |
ソースコード
a,b = map(int, input().split()) import math g = math.gcd(a, b) 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) #divisors.sort(reverse=True) return divisors d = make_divisors(g) if len(d)%2 == 0: print('Even') else: print('Odd')