結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-05 22:30:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 530 bytes |
| コンパイル時間 | 1,526 ms |
| コンパイル使用メモリ | 168,244 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 05:54:48 |
| 合計ジャッジ時間 | 2,869 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 49 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
double x, y;
cin >> x >> y;
x = x * 1000 / 60;
y = y * 1000 / 60;
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
int sum = a[0];
double time = 0;
for (int i = 0; i < n - 1; i++) {
sum += a[i + 1];
time += a[i] / x;
if (y * time > sum) {
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
}