結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-07-17 21:35:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,632 KB |
最終ジャッジ日時 | 2024-11-29 22:08:01 |
合計ジャッジ時間 | 18,057 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 TLE * 9 |
ソースコード
from math import gcd def create_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() return divisors a,b=map(int,input().split()) d=gcd(a,b) div_ab=create_divisors(d) if len(div_ab)%2==0: print("Even") else: print("Odd")