結果
問題 |
No.2954 Calculation of Exponentiation
|
ユーザー |
![]() |
提出日時 | 2024-11-10 03:45:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 182 bytes |
コンパイル時間 | 351 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-10 03:45:54 |
合計ジャッジ時間 | 2,297 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 WA * 5 |
ソースコード
import sys input = sys.stdin.readline eps=0.00000000001 A,B=map(float,input().split()) if B>5: B-=int(B) x=A**B if abs(round(x)-x)<eps: print("Yes") else: print("No")