結果
問題 | No.1224 I hate Sqrt Inequality |
ユーザー | ygd. |
提出日時 | 2020-09-11 22:04:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 87 ms / 2,000 ms |
コード長 | 329 bytes |
コンパイル時間 | 1,113 ms |
コンパイル使用メモリ | 86,696 KB |
実行使用メモリ | 75,836 KB |
最終ジャッジ日時 | 2023-09-02 14:44:49 |
合計ジャッジ時間 | 2,660 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 80 ms
75,700 KB |
testcase_01 | AC | 79 ms
75,580 KB |
testcase_02 | AC | 75 ms
71,236 KB |
testcase_03 | AC | 80 ms
75,752 KB |
testcase_04 | AC | 82 ms
75,728 KB |
testcase_05 | AC | 81 ms
75,512 KB |
testcase_06 | AC | 79 ms
75,724 KB |
testcase_07 | AC | 81 ms
75,760 KB |
testcase_08 | AC | 81 ms
75,696 KB |
testcase_09 | AC | 81 ms
75,500 KB |
testcase_10 | AC | 80 ms
75,836 KB |
testcase_11 | AC | 81 ms
75,660 KB |
testcase_12 | AC | 80 ms
75,800 KB |
testcase_13 | AC | 82 ms
75,584 KB |
testcase_14 | AC | 87 ms
75,732 KB |
ソースコード
import math a,b = map(int,input().split()) G = math.gcd(a,b) a = a//G b = b//G if b == 1: print("No");exit() two = [1] for i in range(60): two.append(two[-1]*2) five = [1] for i in range(30): five.append(five[-1]*5) S = set([]) for t in two: for f in five: S.add(t*f) if b in S: print("No") else: print("Yes")