摘要:
题目描述 Recently Irina arrived to one of the most famous cities of Berland — the Berlatov city. There are n showplaces in the city, numbered from 1 to n 阅读全文
摘要:
Quite recently a creative student Lesha had a lecture on trees. After the lecture Lesha was inspired and came up with the tree of his own which he cal 阅读全文
摘要:
题面描述 Alex doesn't like boredom. That's why whenever he gets bored, he comes up with games. One long winter evening he came up with a game and decided 阅读全文
摘要:
T1 Circle 【问题描述】 小 w 的男朋友送给小 w 一个 n 个点 m 条边的图,并且刁难小 w 要她找出点数最少的正环。 小 w 不会做,于是向你求助。 【输入格式】 第一行两个整数$n,m$ 接下来$m$行,每行四个数$u,v,a,b$,表示从$u$走到$v$的代价为$a$,从$v$走 阅读全文