結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
![]() |
提出日時 | 2020-07-17 22:02:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 1,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 82,244 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-11-30 06:32:43 |
合計ジャッジ時間 | 1,391 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
def gcd(a: int, b: int) -> int:"""a, bの最大公約数(greatest common divisor: GCD)を求める計算量: O(log(min(a, b)))"""while b:a, b = b, a % breturn aa, b = map(int, input().split())gcd_ = gcd(a, b)if int(gcd_ ** 0.5) == gcd_ ** 0.5:print("Odd")else:print("Even")