結果

問題 No.512 魔法少女の追いかけっこ
ユーザー shiboy_AAA
提出日時 2017-05-05 22:37:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 406 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 55,932 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-27 05:59:00
合計ジャッジ時間 1,812 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main(void){
  double x,y;
  int n,a[100000];
  cin >> x >> y >> n;
  for(int i=0; i<n; i++) cin >> a[i];
  x = x * 1000 / 3600;
  y = y * 1000 / 3600;
  double t;
  bool answer = 0;
  for(int i=0; i<n-1; i++){
    t = a[i] / x;
    if((double)(a[i+1]-a[i])<(y*t)) answer = 1;
  }
  if(answer) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}
0