結果
問題 |
No.1556 Power Equality
|
ユーザー |
|
提出日時 | 2021-06-25 21:49:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 452 bytes |
コンパイル時間 | 2,116 ms |
コンパイル使用メモリ | 192,332 KB |
最終ジャッジ日時 | 2025-01-22 12:10:54 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; using vi = vector<int>; typedef long long int ll; typedef long double ld; #define fo(i,a,b) for(int i=a;i<b;i++) #define pb push_back int main() { // your code goes here #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif ll a, b; cin >> a >> b; if (pow(a, b) == pow(b, a)) cout << "Yes"; else cout << "No"; }