Hello, I am a newcomer and unable to solve a problem on Educational Codeforces Round 3. Can anyone help me as I am getting wrong answer on test case 9. Thank You.
# | User | Rating |
---|---|---|
1 | tourist | 3947 |
2 | jiangly | 3734 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | ecnerwala | 3581 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | ksun48 | 3479 |
# | User | Contrib. |
---|---|---|
1 | awoo | 162 |
2 | maomao90 | 160 |
3 | nor | 156 |
4 | cry | 155 |
4 | adamant | 155 |
4 | atcoder_official | 155 |
4 | -is-this-fft- | 155 |
8 | maroonrk | 153 |
9 | SecondThread | 147 |
10 | Petr | 146 |
Hello, I am a newcomer and unable to solve a problem on Educational Codeforces Round 3. Can anyone help me as I am getting wrong answer on test case 9. Thank You.
Hello, this is my first problem on segment tree. I have used segment tree to solve this problem but I am getting Wrong Answer on a test case. Can you point out what is wrong. Thank you
How do we solve a problem in which arrival time and departure time of many flights are given (also source and destination of each flight are given) and we have to find the path between source and final destination which takes least time.
We also have to take care our waiting time for next flight(overall time should be minimised).
There are multiple flights possible from a destination.
X <= 500
N <= 4 * X * (X -1)
Where x is number of stations and N is total number of flights.
Time limit is 3s.
Eg.- Consider three stations (1,2,3), we have to go from 1 to 3.
flight 1 leaves station 1 at 10:30 and arrives at station 2 at 11:50.(time=80 min)
flight 2 leaves station 1 at 10:45 and arrives at station 2 at 12:15.(time=90 min)
flight 3 leaves station 2 at 12:30 and arrives at station 3 at 14:30.(time=120 min)
If we take flight 1 our total time spent = 80 + 40 (for waiting for flight 3) + 120 =240 min.
If we take flight 2 total time =90 + 15 + 120 = 225 min.
So finally we would take flight 2 and 3.
Name |
---|