結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-07-17 21:28:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 24,648 KB |
最終ジャッジ日時 | 2024-11-29 21:29:57 |
合計ジャッジ時間 | 19,059 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 WA * 4 TLE * 9 |
ソースコード
import math A, B = map(int,input().split()) gcd = math.gcd(A,B) if gcd == 1: print("Odd") exit() cnt = 1 for i in range(1,int(gcd**0.5)+2): if gcd % i == 0: cnt += 1 if cnt % 2: print("Odd") else: print("Even")