結果

問題 No.2954 Calculation of Exponentiation
ユーザー hato336
提出日時 2024-11-08 21:50:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 455 bytes
コンパイル時間 508 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 80,256 KB
最終ジャッジ日時 2024-11-08 21:50:23
合計ジャッジ時間 5,033 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

def make_divisors(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]
import math,decimal
a,b = map(decimal.Decimal,input().split())
c = math.floor(b)
b -= c
z = pow(a,b)
if z == math.floor(z):
    print('Yes')
else:
    print('No')
0