![]() |
||||||||||
|
||||||||||
find the mincost routeTime Limit: 1000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13952 Accepted Submission(s): 4849 Problem Description ������N������������֮����һЩ˫���·�����ӣ�����8600����һ������·�ߣ����·�ߴ�A������������ص�A�㣬���辭����·��ΪV1,V2,....VK,V1,��ô��������K>2,����˵�����˳�������������Ҫ����2��������ͬ�ľ��������Ҳ����ظ�����ͬһ������������8600��Ҫ�������һ��������·�ߣ����һ���Խ��Խ�á� Input ��һ����2������N��M��N <= 100, M <= 1000)�����������ĸ����͵�·�������� ��������M���ÿ�а���3������a,b,c.����a��b֮����һ��ͨ·��������Ҫ����cԪ(c <= 100)�� Output ����ÿ������ʵ����������ҵ�����һ��·�ߵĻ���������ѵ���Сֵ������Ҳ����Ļ������"It's impossible.". Sample Input
Sample Output
Author 8600 Source | ||||||||||
|