結果

問題 No.512 魔法少女の追いかけっこ
ユーザー GB
提出日時 2018-11-05 00:45:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 506 bytes
コンパイル時間 596 ms
コンパイル使用メモリ 64,764 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-20 20:09:06
合計ジャッジ時間 2,374 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 51 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<math.h>

using namespace std;

int main() {

	int x, y, n;
	cin >> x >> y >> n;
	vector<int> kousaten;
	for (int i = 0;i < n;i++) {
		int buf = 0;
		cin >> buf;
		kousaten.push_back(buf);
	}
	double xs = x * pow(10, 3) / pow(60, 2);
	double ys = y * pow(10, 3) / pow(60, 2);

	double koba_now_s = kousaten[n-2] / xs;
	int master_p = static_cast<int>(ys * koba_now_s);
	if (master_p<=kousaten[n-1])cout << "YES" << endl;
	else cout << "NO" << endl;

	return 0;
}
0