結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-12-01 11:18:13 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 82,232 KB |
実行使用メモリ | 65,200 KB |
最終ジャッジ日時 | 2024-09-13 02:52:36 |
合計ジャッジ時間 | 5,171 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 TLE * 2 -- * 12 |
ソースコード
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')