結果
| 問題 |
No.1723 [Cherry 3rd Tune *] Dead on
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-29 22:54:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 440 bytes |
| コンパイル時間 | 1,692 ms |
| コンパイル使用メモリ | 165,940 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-07 12:34:53 |
| 合計ジャッジ時間 | 3,320 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}