結果
| 問題 | 
                            No.1556 Power Equality
                             | 
                    
| コンテスト | |
| ユーザー | 
                             shishimaiotoshi
                         | 
                    
| 提出日時 | 2021-08-15 01:34:30 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 289 bytes | 
| コンパイル時間 | 1,595 ms | 
| コンパイル使用メモリ | 165,504 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-06 06:30:53 | 
| 合計ジャッジ時間 | 2,419 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 9 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n, o) for(int i = 0;i < (n);i++)
#define ou(x) cout << x << endl
#define ll long long
#define re return 0
int main(){
    ll a, b;
    cin >> a >> b;
    if((log(a) / a) == (log(b) / b)) ou("Yes");
    else ou("No");
    re;
}
            
            
            
        
            
shishimaiotoshi