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-04-10 00:49:34
阅读次数:
296
简介 pyorient是orientdb的python库 该库提供两种访问orientdb的方式:1、client 的方式 2、ogm 的方式(类似于ORM) 由于OGM 封装了client,且由于OGM 易于理解,操作简单,所以,这里主要介绍OGM。 创建/连接数据库 导入OGM 所需模块 fro ...
分类:
其他好文 时间:
2017-04-06 11:34:10
阅读次数:
915
Codeforces 449D:Jzzhu and Numbers 题目链接:http://codeforces.com/problemset/status?friends=on 题目大意:给出$n$个数,求有多少种组合使得$a_{i_1}\&a_{i_2}\&...\&a_{i_k}=0(0 \l ...
分类:
其他好文 时间:
2017-04-05 21:49:55
阅读次数:
203
Description Bear Limak examines a social network. Its main functionality is that two members can become friends (then they can talk with each other an ...
分类:
其他好文 时间:
2017-04-05 01:18:48
阅读次数:
240
暴力,打表。 计算出每一个数的因子之和,可以枚举$i$,让后将$i$的倍数都加上$i$。发现这样的只有$71$对,然后暴力就可以了。 ...
分类:
其他好文 时间:
2017-03-28 18:39:07
阅读次数:
168
Problem DescriptionOne day , Kiki wants to visit one of her friends. As she is liable to carsickness , she wants to arrive at her friend’s home as soo ...
分类:
其他好文 时间:
2017-03-27 23:58:37
阅读次数:
330
本文来我在知乎话题Android开发时你遇到过什么相见恨晚的工具或网站?下的回答! 在实际Android开发过程确实会有很多相见恨晚的工具或网站出现,下面是我自己的一些分享。 1、源码网站 https://github.com/googlesamples Android系统每次推出一些新特性,Goo ...
分类:
移动开发 时间:
2017-03-24 00:24:02
阅读次数:
240
Description Each New Year Timofey and his friends cut down a tree of n vertices and bring it home. After that they paint all the n its vertices, so th ...
分类:
其他好文 时间:
2017-03-22 22:56:14
阅读次数:
241
padding 中规中矩,性格温婉平和! 第一节:CSS padding与容器的尺寸——了解padding与元素尺寸之间关系 CSS padding与容器的尺寸关系复杂 对于block水平元素 没有padding的时候 .gay{width:50cm;} padding影响元素尺寸 (理解为人身体的 ...
分类:
Web程序 时间:
2017-03-22 00:02:52
阅读次数:
757
题目描述 When FJ's friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the first of w ...
分类:
其他好文 时间:
2017-03-19 17:32:41
阅读次数:
216