結果
問題 |
No.1224 I hate Sqrt Inequality
|
ユーザー |
|
提出日時 | 2020-09-29 15:08:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 82,392 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-07-03 22:39:39 |
合計ジャッジ時間 | 1,609 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#!/usr/bin/env python3 import sys import math readline = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 7) a, b = map(int, readline().split()) g = math.gcd(a, b) a //= g b //= g while True: x = math.gcd(b, 10) if x == 1: break b //= x print('Yes' if b != 1 else 'No')