結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
|
提出日時 | 2020-07-18 02:11:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 1,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-11-30 19:29:12 |
合計ジャッジ時間 | 1,434 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
from math import gcdA,B=map(int,input().split())g=gcd(A,B)start=0end=10**9+1while end-start>1:test=(end+start)//2if g>=test**2:start=testelse:end=testif start**2==g:print("Odd")else:print("Even")