結果
| 問題 | No.1224 I hate Sqrt Inequality |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-29 15:08:50 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 24 ms / 2,000 ms |
| + 666µs | |
| コード長 | 298 bytes |
| 記録 | |
| コンパイル時間 | 502 ms |
| コンパイル使用メモリ | 81,804 KB |
| 実行使用メモリ | 56,024 KB |
| 最終ジャッジ日時 | 2026-10-12 05:44:45 |
| 合計ジャッジ時間 | 1,499 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 |
ソースコード
#!/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')