結果
| 問題 |
No.2954 Calculation of Exponentiation
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-11-10 03:44:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-10 03:44:41 |
| 合計ジャッジ時間 | 2,367 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 7 |
ソースコード
import sys
input = sys.stdin.readline
eps=0.0000000000000000000000001
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")
titia