{"action":"opened","issue":{"url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge/issues/9","repository_url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge","labels_url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge/issues/9/comments","events_url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge/issues/9/events","html_url":"https://github.com/NickWei714/PAT_Chanllenge/issues/9","id":318726549,"number":9,"title":"1087. All Roads Lead to Rome (30)","user":{"login":"NickWei714","id":23421774,"avatar_url":"https://avatars2.githubusercontent.com/u/23421774?v=4","gravatar_id":"","url":"https://api.github.com/users/NickWei714","html_url":"https://github.com/NickWei714","followers_url":"https://api.github.com/users/NickWei714/followers","following_url":"https://api.github.com/users/NickWei714/following{/other_user}","gists_url":"https://api.github.com/users/NickWei714/gists{/gist_id}","starred_url":"https://api.github.com/users/NickWei714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickWei714/subscriptions","organizations_url":"https://api.github.com/users/NickWei714/orgs","repos_url":"https://api.github.com/users/NickWei714/repos","events_url":"https://api.github.com/users/NickWei714/events{/privacy}","received_events_url":"https://api.github.com/users/NickWei714/received_events","type":"User","site_admin":false},"labels":[{"id":916610654,"url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge/labels/todo","name":"todo","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"NickWei714","id":23421774,"avatar_url":"https://avatars2.githubusercontent.com/u/23421774?v=4","gravatar_id":"","url":"https://api.github.com/users/NickWei714","html_url":"https://github.com/NickWei714","followers_url":"https://api.github.com/users/NickWei714/followers","following_url":"https://api.github.com/users/NickWei714/following{/other_user}","gists_url":"https://api.github.com/users/NickWei714/gists{/gist_id}","starred_url":"https://api.github.com/users/NickWei714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickWei714/subscriptions","organizations_url":"https://api.github.com/users/NickWei714/orgs","repos_url":"https://api.github.com/users/NickWei714/repos","events_url":"https://api.github.com/users/NickWei714/events{/privacy}","received_events_url":"https://api.github.com/users/NickWei714/received_events","type":"User","site_admin":false},"assignees":[{"login":"NickWei714","id":23421774,"avatar_url":"https://avatars2.githubusercontent.com/u/23421774?v=4","gravatar_id":"","url":"https://api.github.com/users/NickWei714","html_url":"https://github.com/NickWei714","followers_url":"https://api.github.com/users/NickWei714/followers","following_url":"https://api.github.com/users/NickWei714/following{/other_user}","gists_url":"https://api.github.com/users/NickWei714/gists{/gist_id}","starred_url":"https://api.github.com/users/NickWei714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickWei714/subscriptions","organizations_url":"https://api.github.com/users/NickWei714/orgs","repos_url":"https://api.github.com/users/NickWei714/repos","events_url":"https://api.github.com/users/NickWei714/events{/privacy}","received_events_url":"https://api.github.com/users/NickWei714/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge/milestones/1","html_url":"https://github.com/NickWei714/PAT_Chanllenge/milestone/1","labels_url":"https://api.github.com/repos/NickWei714/PAT_Chanllenge/milestones/1/labels","id":3305724,"number":1,"title":"Graph_Challenge","description":"","creator":{"login":"NickWei714","id":23421774,"avatar_url":"https://avatars2.githubusercontent.com/u/23421774?v=4","gravatar_id":"","url":"https://api.github.com/users/NickWei714","html_url":"https://github.com/NickWei714","followers_url":"https://api.github.com/users/NickWei714/followers","following_url":"https://api.github.com/users/NickWei714/following{/other_user}","gists_url":"https://api.github.com/users/NickWei714/gists{/gist_id}","starred_url":"https://api.github.com/users/NickWei714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickWei714/subscriptions","organizations_url":"https://api.github.com/users/NickWei714/orgs","repos_url":"https://api.github.com/users/NickWei714/repos","events_url":"https://api.github.com/users/NickWei714/events{/privacy}","received_events_url":"https://api.github.com/users/NickWei714/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2018-04-28T05:22:25Z","updated_at":"2018-04-29T15:38:46Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-04-29T15:38:46Z","updated_at":"2018-04-29T15:38:46Z","closed_at":null,"author_association":"OWNER","body":"Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.\r\n\r\n# Input Specification:\r\n\r\nEach input file contains one test case. For each case, the first line contains 2 positive integers N (2<=N<=200), the number of cities, and K, the total number of routes between pairs of cities; followed by the name of the starting city. The next N-1 lines each gives the name of a city and an integer that represents the happiness one can gain from that city, except the starting city. Then K lines follow, each describes a route between two cities in the format \"City1 City2 Cost\". Here the name of a city is a string of 3 capital English letters, and the destination is always ROM which represents Rome.\r\n\r\n# Output Specification:\r\n\r\nFor each test case, we are supposed to find the route with the least cost. If such a route is not unique, the one with the maximum happiness will be recommended. If such a route is still not unique, then we output the one with the maximum average happiness -- it is guaranteed by the judge that such a solution exists and is unique.\r\n\r\nHence in the first line of output, you must print 4 numbers: the number of different routes with the least cost, the cost, the happiness, and the average happiness (take the integer part only) of the recommended route. Then in the next line, you are supposed to print the route in the format \"City1->City2->...->ROM\".\r\n\r\n# Sample Input:\r\n```\r\n6 7 HZH\r\nROM 100\r\nPKN 40\r\nGDN 55\r\nPRS 95\r\nBLN 80\r\nROM GDN 1\r\nBLN ROM 1\r\nHZH PKN 1\r\nPRS ROM 2\r\nBLN HZH 2\r\nPKN GDN 1\r\nHZH PRS 1\r\n```\r\n# Sample Output:\r\n```\r\n3 3 195 97\r\nHZH->PRS->ROM\r\n```"}}
{"actor":{"display_login":"NickWei714"}}