結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-05-05 22:31:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 368 bytes |
| コンパイル時間 | 1,628 ms |
| コンパイル使用メモリ | 166,480 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-27 05:55:04 |
| 合計ジャッジ時間 | 2,834 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 47 WA * 6 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,n,N) for(int i=(n);i<(int)N;i++)
#define p(s) cout<<(s)<<endl
using namespace std;
int main(){
int X,Y,N;
cin>>X>>Y>>N;
int A[100];
REP(i,0,N) cin>>A[i];
double x=X*10/36.0;
double y=Y*10/36.0;
string ans="YES";
double xs=0,ym=0;
REP(i,0,N-1){
xs=A[i]/x;
ym=xs*y;
if(ym>A[i+1]) ans="NO";
}
p(ans);
return 0;
}
dnish