結果
問題 |
No.512 魔法少女の追いかけっこ
|
ユーザー |
![]() |
提出日時 | 2017-05-05 22:25:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 499 bytes |
コンパイル時間 | 1,462 ms |
コンパイル使用メモリ | 158,080 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-27 05:47:16 |
合計ジャッジ時間 | 2,557 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 WA * 9 |
ソースコード
#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 * 1000 / 60 / 60; y = y * 1000 / 60 / 60; int n; cin >> n; ll a[n]; for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n-1; i++) { double t = a[i]/x; double shisyo = t * y; if (shisyo>a[i+1]) { cout << "NO" << "\n"; return 0; } } cout << "YES" << "\n"; return 0; }