結果
問題 | No.1556 Power Equality |
ユーザー |
![]() |
提出日時 | 2021-06-25 22:36:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 517 bytes |
コンパイル時間 | 3,733 ms |
コンパイル使用メモリ | 229,936 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-25 08:39:11 |
合計ジャッジ時間 | 4,325 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 WA * 1 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; typedef long long ll; #define rep(i, a, b) for (ll i = a; i < b; i++) #define rrep(i, a, b) for (ll i = a; i >= b; i--) using mint = modint1000000007; void chmin(ll &x, ll y) { x = min(x, y); } void chmax(ll &x, ll y) { x = max(x, y); } int main() { cin.tie(0); ios_base::sync_with_stdio(false); ll A, B; cin >> A >> B; if(pow(A,B) == pow(B,A)) cout << "Yes"<< endl; else cout << "No" << endl; return 0; }