結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー | zaki_chemtech |
提出日時 | 2020-07-30 22:21:06 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 577 ms |
コンパイル使用メモリ | 87,168 KB |
実行使用メモリ | 80,232 KB |
最終ジャッジ日時 | 2023-09-18 05:25:16 |
合計ジャッジ時間 | 5,782 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
76,432 KB |
testcase_01 | AC | 77 ms
71,264 KB |
testcase_02 | AC | 278 ms
75,640 KB |
testcase_03 | TLE | - |
testcase_04 | TLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
import math def prime(p): memo = [] for i in range(1,(int(p**0.5)+1)): if p%i == 0: memo.append(i) if i != p//i: memo.append(p//i) return memo a,b = map(int,input().split()) gcd_math = math.gcd(a, b) memo = prime(gcd_math) #print(memo) if len(memo)%2 == 0: print('Even') else: print('Odd')