結果
| 問題 | No.1113 二つの整数 / Two Integers |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-05-10 04:59:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 1,000 ms |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 85,088 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2026-04-07 18:11:39 |
| 合計ジャッジ時間 | 3,297 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
def isqrt(n):
assert n >= 0
if n < 2: return n
x = int(n**0.5)*2
while x*x > n:
x = (x+n//x)//2
return x
from math import gcd
g = gcd(*map(int,input().split()))
print("Odd" if isqrt(g)**2==g else "Even")
convexineq