結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-12-01 11:21:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 1,000 ms |
コード長 | 435 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 82,356 KB |
実行使用メモリ | 53,916 KB |
最終ジャッジ日時 | 2024-09-13 02:52:47 |
合計ジャッジ時間 | 1,531 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
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()) GC = math.gcd(A, B) if GC > 1 and int(GC**0.5)**2 != GC: print('Even') else: print('Odd')