CF449B Jzzhu and Cities
Description
Jzzhu is the president of country A. There are $ n $ cities numbered from $ 1 $ to $ n $ in his country. City $ 1 $ is the capital of A. Also there are $ m $ roads connecting the cities. One can go from city $ u_{i} $ to $ v_{i} $ (and vise versa) using the $ i $ -th road, the length of this road is $ x_{i} $ . Finally, there are $ k $ train routes in the country. One can use the $ i $ -th train route to go from capital of the country to city $ s_{i} $ (and vise versa), the length of this route is $ y_{i} $ .
Jzzhu doesn't want to waste the money of the country, so he is going to close some of the train routes. Please tell Jzzhu the maximum number of the train routes which can be closed under the following condition: the length of the shortest path from every city to the capital mustn't change.
Input Format
N/A
Output Format
N/A