結果

問題 No.1556 Power Equality
ユーザー sigmani
提出日時 2022-03-06 12:52:35
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 2,818 ms
コンパイル使用メモリ 164,912 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-20 22:08:35
合計ジャッジ時間 2,075 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long A,B;
  cin>>A>>B;
  int count=0;
  if(A==B)count++;
  if(A==4&&B==2)count++;
  if(A==2&&B==4)count++;
  if(count>0)cout<<"Yes";
  else cout<<"No";
 
  
}
0