結果
問題 | No.1556 Power Equality |
ユーザー |
![]() |
提出日時 | 2023-05-07 23:02:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 575 ms |
コンパイル使用メモリ | 68,824 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 21:35:51 |
合計ジャッジ時間 | 1,130 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <iostream>#include <cmath>using namespace std;bool solve(int a,int b){return (a==2 and b==4) or a==b;}int main() {int a,b;cin>>a>>b;if(a>b)swap(a,b);cout<<(solve(a,b)?"Yes":"No")<<endl;return 0;}