結果
問題 |
No.1723 [Cherry 3rd Tune *] Dead on
|
ユーザー |
|
提出日時 | 2021-10-29 22:53:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 440 bytes |
コンパイル時間 | 1,626 ms |
コンパイル使用メモリ | 165,496 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-07 12:33:26 |
合計ジャッジ時間 | 2,957 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 50 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { // your code goes here long long x,a,y,b; cin>>x>>a>>y>>b; long long i = pow(x,a); long long j = pow(y,b); long long mx = 0,mn = 0; if(i>j){ mx = i; mn = j; } else{ mx = j; mn = i; } if((i==j)||(mx%mn==0)){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }