結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-09-13 18:13:01 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 62,592 KB |
最終ジャッジ日時 | 2024-06-13 04:20:14 |
合計ジャッジ時間 | 4,786 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 TLE * 2 -- * 12 |
ソースコード
A,B=map(int,input().split()) if B>A: A,B=B,A while A%B!=0: A,B=B,A%B 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] L=make_divisors(B) #print(L) if len(L)%2==1: print("Odd") else: print("Even")