結果

問題 No.2954 Calculation of Exponentiation
コンテスト
ユーザー timi
提出日時 2024-11-08 21:46:55
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 345 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 249 ms
コンパイル使用メモリ 85,572 KB
実行使用メモリ 59,392 KB
最終ジャッジ日時 2026-05-09 01:15:12
合計ジャッジ時間 2,403 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

A,B=input().split()

BB=int(B.replace('.',''))
if B=='0.0000':
  print('Yes')
  exit()
  
if A[-4:]!='0000':
  print('No')
  exit()
  
A=int(float(A)//1)
for i in range(2,5*10**4):
  s=i
  for j in range(2,10**5):
    s*=i     
    if s>A:
      break
    elif s==A:
      if (BB*j)%10000==0:
        print('Yes')
        exit()
print('No')
    
0