結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2023-01-01 21:58:54 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 1,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 346 ms |
コンパイル使用メモリ | 82,436 KB |
実行使用メモリ | 54,300 KB |
最終ジャッジ日時 | 2024-11-27 00:18:42 |
合計ジャッジ時間 | 1,772 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
from math import * def is_sqrt(n): yes = 1 no = 10 ** 18 while no - yes != 1: mid = (yes + no)//2 if n >= mid * mid: yes = mid else: no = mid return n == yes * yes A, B = map(int, input().split()) G = gcd(A, B) print("Odd") if is_sqrt(G) else print("Even")