結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
WA_TLE
|
| 提出日時 | 2017-05-05 22:35:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 534 bytes |
| コンパイル時間 | 704 ms |
| コンパイル使用メモリ | 67,428 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 05:58:04 |
| 合計ジャッジ時間 | 1,825 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 53 |
ソースコード
#include<string>
#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;
typedef long long int llint;
#define pub push_back
#define mp make_pair
#define fir first
#define sec second
const int big=((llint)1<<30);
const llint mod=1000000007;
//aabbaabb
//
int main(void){
llint x,y,n,i,q;
vector<llint> a;
string ans="YES";
cin>>x>>y>>n;
a.resize(n);
for(i=0;i<n;i++){cin>>a[i];}
for(i=0;i<n-1;i++){if(y*a[i]>x*a[i+1]){ ans="NO";break; }}
cout<<ans<<endl;
return 0;
}
WA_TLE