結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2021-05-10 04:59:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 1,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-09-19 08:54:27 |
合計ジャッジ時間 | 1,465 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")