题意:如果1认识2,2认识3,必须要求有:1认识3.如果满足上述条件,输出YES,否则输出NO. 思路:显然如果是一个完全图就输出YES,否则就输出NO,如果是无向完全图则一定有我们可以用dfs来书边和点 n个节点的有向完全图边数为e=n*(n-1) 代码: ...
分类:
其他好文 时间:
2017-03-25 21:46:48
阅读次数:
271
Love and Friendship 爱情与友谊 ◇——by Emily Bronte ——邹仲之 译 ◇ Love is like the wild rose-briar; Friendship like the holly-tree. The holly is dark when the ro ...
分类:
其他好文 时间:
2017-02-27 21:27:53
阅读次数:
173
E. Product Sum Blake is the boss of Kris, however, this doesn't spoil their friendship. They often gather at the bar to talk about intriguing problems ...
分类:
其他好文 时间:
2017-02-19 15:37:04
阅读次数:
272
Friendship Time Limit: 2000MS Memory Limit: 20000K Total Submissions: 10614 Accepted: 2945 Description In modern society, each person has his own frie ...
分类:
其他好文 时间:
2016-12-28 18:52:17
阅读次数:
177
A.Anton and Danik Problems: 给你长度为N的,只含‘A’,'D'的序列,统计并输出何者出现的较多,相同为"Friendship" Analysis: lucky_ji: 水题,模拟统计A和D的数目比较大小输出结果即可 Tags: Implementation B.Anton ...
分类:
其他好文 时间:
2016-11-19 03:23:28
阅读次数:
262
The worst solitude is to be destitute of sincere friendship. 最大的孤独莫过于没有真诚的友谊。 I walk slowly, but I never walk backward. 我走得慢,但从不后退。 ...
分类:
其他好文 时间:
2016-09-26 23:10:10
阅读次数:
176
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1134 Accepted Submission(s): 723 Problem Descript ...
分类:
其他好文 时间:
2016-09-14 23:16:55
阅读次数:
296
The worst solitude is to be destitute of sincere friendship. 最大的孤独莫过于没有真诚的友谊。 Sometimes we pay the most for the things we get nothing, and that moment ...
分类:
其他好文 时间:
2016-08-16 23:47:48
阅读次数:
190
??
Friendship
Time Limit: 2000MS
Memory Limit: 20000KB
64bit IO Format: %I64d & %I64u
Submit Status
Description
In modern society, each person has his own friends....
分类:
其他好文 时间:
2016-05-12 20:24:36
阅读次数:
250