結果
問題 | No.1224 I hate Sqrt Inequality |
ユーザー |
![]() |
提出日時 | 2020-09-11 21:32:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 604 bytes |
コンパイル時間 | 475 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-11 21:16:52 |
合計ジャッジ時間 | 1,386 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
''' Created on 2020/09/11 @author: harurun ''' def Yn(t): if t:print("Yes") else:print("No") return def main(): import math import sys pin=sys.stdin.readline pout=sys.stdout.write perr=sys.stderr.write a,b=map(int,pin().split()) t=math.gcd(a,b) a=a//t b=b//t if b==1: print("No") return while True: if b%10==0: b=b//10 else: break while True: if b%5==0: b=b//5 else: break while True: if b%2==0: b=b//2 else: break Yn(b!=1) return main() #わかりませんこれで許してください