結果
| 問題 | 
                            No.1224 I hate Sqrt Inequality
                             | 
                    
| コンテスト | |
| ユーザー | 
                             rythem00359
                         | 
                    
| 提出日時 | 2020-09-17 16:38:57 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 235 bytes | 
| コンパイル時間 | 394 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-06-22 06:35:45 | 
| 合計ジャッジ時間 | 1,056 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 WA * 4 | 
ソースコード
def func(n):
    if n%2!=0 and n%5!=0:return True
    while n%2==0 or n%5==0:
        if n%2==0:n//=2
        if n%5==0:n//=5
    if n==1:return False
    else:return True
a,b=map(int,input().split())
print('Yes' if func(b) else 'No')
            
            
            
        
            
rythem00359