結果
| 問題 | No.512 魔法少女の追いかけっこ |
| コンテスト | |
| ユーザー |
nak3
|
| 提出日時 | 2017-05-05 22:31:59 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 569 bytes |
| 記録 | |
| コンパイル時間 | 1,149 ms |
| コンパイル使用メモリ | 174,088 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-14 14:07:29 |
| 合計ジャッジ時間 | 2,526 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define INF 2000000000
#define MOD 1000000007
typedef long long ll;
typedef pair<int, int> P;
int main()
{
double x, y;
cin >> x >> y;
x = x * 60 / 60;
y = y * 60 / 60;
int n;
cin >> n;
double a[n];
for (int i = 0; i < n; i++) {
double tmp;
cin >> tmp;
a[i] = tmp/1000;
}
for (int i = 0; i < n-1; i++) {
double t = a[i]/x;
// cerr << "d_t: " << t << " " << t*y << endl;
double shisyo = t * y;
if (shisyo>a[i+1]) {
cout << "NO" << "\n";
return 0;
}
}
cout << "YES" << "\n";
return 0;
}
nak3