結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
|
提出日時 | 2020-07-18 19:21:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 438 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 24,520 KB |
最終ジャッジ日時 | 2024-12-14 02:55:22 |
合計ジャッジ時間 | 29,191 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 TLE * 14 |
ソースコード
a, b = map(int, input().split()) def divisible(n): divisors = [] for i in range(1, int(n ** 0.5) + 1): if n % i == 0: divisors.append(i) # nが約数dをもつとき、n/dも約数 if i != n // i: divisors.append(n // i) return set(divisors) a_fact = divisible(a) b_fact = divisible(b) res = len(a_fact & b_fact) print('Even') if res % 2 == 0 else print('Odd')