摘要: " 题目链接 " Problem Description 给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距离及其花费,如果最短距离有多条路线,则输出花费最少的。 Input 输入n,m,点的编号是1~n,然后是m行,每行4个数 a,b,d,p,表示a和b 阅读全文
posted @ 2017-10-15 18:11 渡…… 阅读(211) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this 阅读全文
posted @ 2017-10-15 17:52 渡…… 阅读(143) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description The Gorelians are a warlike race that travel the universe conquering new worlds as a form of recreation. Given their viol 阅读全文
posted @ 2017-10-15 17:37 渡…… 阅读(189) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description 速算24点相信绝大多数人都玩过。就是随机给你四张牌,包括A(1),2,3,4,5,6,7,8,9,10,J(11),Q(12),K(13)。要求只用'+',' ',' ','/'运算符以及括号改变运算顺序,使得最终运算结果为24(每个数必须且 阅读全文
posted @ 2017-10-15 16:30 渡…… 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Problem Description Ignatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to r 阅读全文
posted @ 2017-10-15 15:33 渡…… 阅读(169) 评论(0) 推荐(0) 编辑
摘要: " 题目链接 " Description If we input a number formed by 4 digits and these digits are not all of one same value, then it obeys the following law. Let us o 阅读全文
posted @ 2017-10-15 15:15 渡…… 阅读(122) 评论(0) 推荐(0) 编辑