結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
kotamanegi
|
| 提出日時 | 2017-05-05 22:26:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 503 bytes |
| コンパイル時間 | 1,260 ms |
| コンパイル使用メモリ | 161,884 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 05:47:59 |
| 合計ジャッジ時間 | 2,523 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 39 WA * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define LONG_INF 10000000000000000
#define MAX_MOD 1000000007
#define REP(i,n) for(long long i = 0;i < n;++i)
int main() {
double x, y;
cin >> x >> y;
x /= 3.6;
y /= 3.6;
vector<double> hoge;
int h = 0;
cin >> h;
REP(i, h) {
double a;
cin >> a;
hoge.push_back(a);
}
for (int i = 0;i < h - 1;++i) {
double time = hoge[i] / x;
if (hoge[i + 1] / y > time) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
kotamanegi