RiseOJ는 solved.ac와 제휴 관계가 없습니다. 티어 아이콘 © solved.ac. solved.ac
포럼
ICPC00041

J. Skiing

Unrated 레이팅 미적용
난이도
2s
시간 제한
1024MB
메모리 제한
0
맞았습니다!!
0
제출 수
0.0%
정답률
레이팅

의견: 0

설명

As you know, the ACM ICPC is not the only major sporting event taking place in Russia this year. Several months ago, the 2014 Winter Olympics were held in Sochi, which is about 3 000 km from Ekaterinburg. In an increasing number of sports, it is not only the ability of the athletes that determines who wins a competition but also their equipment. For example in downhill skiing, having the latest ski technology enables athletes to increase their speeds and improve their turning ability. You have been hired to determine the effect of the latest ski technology on the ability of skiers to navigate a downhill course. The course contains several target locations, and the skier wants to pass over as many of them as possible. Naturally, the better the ski technology, the easier it will be to do this. For simplicity, use a t\(wo-di\)mensional coordinate system where the skier starts at position (0,0) and where “downhill” corresponds to the direction of the positive \(y-ax\)is. Assume the \(y-co\)mponent of the athlete’s velocity is a constant \(vy\). The athlete can change speed laterally (in the \(x-di\)rection), but the skiing equipment limits this to a maximal lateral acceleration \(a\)max. The skier starts with a lateral velocity of 0. (0,0) x y Skier’s path Figure J.1: Downhill ski path passing over three targets In Figure J.1 (which corresponds to the first sample input), the optimal path passes over three out of four possible targets. If \(a\)max were smaller, then the skier might be able to pass over only two or fewer of the targets.

제약
입력 형식

The input contains a single test case. The first line contains three integers \(n\), \(vy\), and \(a\)max (\(0 \le n \le 250\), \(0 \le vy \le 10^{5}\) and \(0 \le a\)m\(ax \le 10^{7}\)), where \(n\) is the number of targets, \(vy\) is the \(y-co\)mponent of the skier’s velocity, and \(a\)max is the maximum lateral acceleration. Here \(vy\) is given in meters per hour and \(a\)max in meters per hour squared. Following this are \(n\) lines, each containing two integers \(xi\) and \(yi\) (−\(10^{5} \le xi\), y\(i \le 10^{5}\)). These give the coordinates of each target to be visited on the course. All coordinates are given in meters. Targets are numbered 1, 2, ..., \(n\) in the order they are given.

출력 형식

Display the maxim\(al-le\)ngth sequence of targets that the athlete could pass over on the course in a single run. Display the targets in the order they are visited. If there are multiple maxim\(al-le\)ngth sequences, display only the lexicographically first one. (So the sequence 2 15 would come before the sequence 10 15.) If the athlete cannot pass over any targets, print Cannot visit any targets instead. To ensure floati\(ng-po\)int stability, you may assume the answer will not change if \(a\)max is perturbed by up to 0.1.

예제 1
입력
4 100 400
-100 100
50 200
-100 300
150 300
출력
1 2 4
예제 2
입력
1 100 100
1000 10
출력
Cannot visit any targets
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC World Finals 2014

평가 및 의견

J. Skiing

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 50 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

J. Skiing

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8