結果
問題 | No.512 魔法少女の追いかけっこ |
ユーザー |
|
提出日時 | 2017-05-05 22:27:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 425 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 63,312 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 05:49:14 |
合計ジャッジ時間 | 1,785 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 53 |
ソースコード
#include <iostream>using namespace std;struct iostream_init_struct{iostream_init_struct(){std::cin.tie(0);std::cin.sync_with_stdio(false);}} iostream_init;int main(){int X, Y;int N;cin >> X >> Y >> N;int A_previous = 0;for (int i = 0; i < N; ++i){int A;cin >> A;if (A * X < A_previous * Y){cout << "NO" << endl;return 0;}A_previous = A;}cout << "YES" << endl;}