A good heart is better than all the brains in the world. 聪明绝顶,不如宅心仁厚。 A good heart can be useful to this world, at least a good-hearted person seldom ...
分类:
其他好文 时间:
2017-06-13 12:39:13
阅读次数:
129
本人新入坑的小白,如有不对的地方请包涵~~~! 在 django 中代码如下:模型定义:class Friends(models.Model):first_id = models.IntegerField()second_id = models.IntegerField()cla... ...
分类:
其他好文 时间:
2017-06-11 15:00:34
阅读次数:
126
Twilight Sparkle was playing Ludo with her friends Rainbow Dash, Apple Jack and Flutter Shy. But she kept losing. Having returned to the castle, Twili ...
分类:
其他好文 时间:
2017-06-11 10:13:06
阅读次数:
166
There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct ...
分类:
其他好文 时间:
2017-06-10 18:24:09
阅读次数:
146
http://acm.hdu.edu.cn/showproblem.php?pid=2680 Problem Description One day , Kiki wants to visit one of her friends. As she is liable to carsickness , ...
分类:
编程语言 时间:
2017-06-10 10:46:48
阅读次数:
223
Description The crowdedness of the discotheque would never stop our friends from having fun, but a bit more spaciousness won't hurt, will it? The disc ...
分类:
其他好文 时间:
2017-06-09 00:55:43
阅读次数:
340
题目:http://acm.hdu.edu.cn/showproblem.php?pid=5305 题意:给定N个人和M条朋友关系,是朋友关系的两个人之间有两种联系方式online和offline。使每一个人的online的数量和offline的数量相等,求方案数。 分析:因为M<=28,暴力枚举的 ...
分类:
其他好文 时间:
2017-06-05 18:55:48
阅读次数:
153
開始对点搜索,直接写乱了。想了想对边搜索,尽管复杂度高。剪枝一下水过去了。 代码: #include<cstdio> #include<iostream> #include<cstring> #include<vector> using namespace std; struct Edge{ int ...
分类:
其他好文 时间:
2017-05-29 19:18:30
阅读次数:
147
TT and FF are ... friends. Uh... very very good friends -________-b FF is a bad boy, he is always wooing TT to play the following game with him. This ...
分类:
其他好文 时间:
2017-05-29 14:05:44
阅读次数:
344
Description Twilight Sparkle was playing Ludo with her friends Rainbow Dash, Apple Jack and Flutter Shy. But she kept losing. Having returned to the c ...
分类:
其他好文 时间:
2017-05-22 18:26:07
阅读次数:
171