結果
問題 | No.1556 Power Equality |
ユーザー |
![]() |
提出日時 | 2023-05-07 22:52:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 533 ms |
コンパイル使用メモリ | 67,968 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-24 21:21:58 |
合計ジャッジ時間 | 1,026 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 WA * 1 |
ソースコード
#include <iostream> #include <cmath> using namespace std; bool solve(int a,int b){ if(a==b) return true; return pow(a,b)==pow(b,a); } int main() { int a,b;cin>>a>>b; cout<<(solve(a,b)?"Yes":"No")<<endl; return 0; }