← 返回 stripe 的题目列表Transportation System Integration
类型:online_judge
Implement a transportation system integration based on JSON. You need to create a system that can draw a transportation network map based on JSON input and output a visualization of the result. Assume the input contains locations and path information within a city's map. Provide at least two test cases with coordinates of locations and information on connecting paths.
Example
Input
{"locations": [{"id": 1, "x": 10, "y": 20}, {"id": 2, "x": 30, "y": 40}], "paths": [{"from": 1, "to": 2}]}