結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
👑 ![]() |
提出日時 | 2020-07-17 21:28:23 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 530 bytes |
コンパイル時間 | 349 ms |
コンパイル使用メモリ | 82,312 KB |
実行使用メモリ | 66,156 KB |
最終ジャッジ日時 | 2024-05-07 06:51:27 |
合計ジャッジ時間 | 4,875 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 35 ms
57,600 KB |
testcase_01 | AC | 36 ms
52,352 KB |
testcase_02 | WA | - |
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 | -- | - |
ソースコード
#最大公約数 def gcd(m,n): x,y=max(m,n),min(m,n) if x%y==0: return y else: while x%y!=0: z=x%y x,y=y,z else: return z #約数全部 def Divisors(N): N=abs(N) L,U=[],[] k=1 while k*k <=N: if N%k== 0: L.append(k) if k!=N//k: U.append(N//k) k+=1 return L+U[::-1] A,B=map(int,input().split()) X=gcd(A,B) S=len(Divisors(X)) if X%2: print("Odd") else: print("Even")