Ps:。。。好简单的一道题...直接AC,就是利用递归 代码: #include "stdio.h"int find(int num,int n);int main(){ int n,i,m; while(~scanf("%d",&n)){ for(i=0;i<n;i++){ scanf("%d",
分类:
其他好文 时间:
2016-02-29 00:28:27
阅读次数:
179
遇到一个问题就是执行 Yum update 或使用yum安装软件等命令的时候会有一个链接报404,使用find查找到该链接与kbsingh-CentOS-Extras.repo这个包有关,删除后yum回复正常 yum 的配置文件分为两部分:main 和repository main 部分定义了全局配
分类:
其他好文 时间:
2016-02-28 21:26:17
阅读次数:
309
from pymongo import MongoClient mc = MongoClient('localhost',27017) db = mc.users db.users.save({'name':'test'}) set = db.users.find() for s in set: p
分类:
数据库 时间:
2016-02-28 21:11:28
阅读次数:
190
1、use dbname 自动创建 2、db.user.find() 空 show collections 空 show dbs 3、db.user.save({name:'',age:20}) db.user.find() db.user.find({'name':''}) db.user.sav
分类:
数据库 时间:
2016-02-28 20:00:18
阅读次数:
153
Linux上卸载vsftpdFTP服务器1.是否安装了vsftpd[root@localhost~]#rpm-qa|grepvsftpdvsftpd-2.2.2-14.el6.i6862.停止vsftpd服务/bin/sytemctlstopvsftpd.service3.rpm命令进行清除rpm-evsftpd-2.2.2-14.el6.i6864.残留文件清理可以使用命令:find/-name‘*vsftpd*‘查找是否包括v..
分类:
其他好文 时间:
2016-02-28 16:58:46
阅读次数:
135
problem: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number mus
分类:
其他好文 时间:
2016-02-28 16:39:58
阅读次数:
130
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic
分类:
其他好文 时间:
2016-02-28 12:36:59
阅读次数:
128
Cha 11. Sorting and Searching Summary Problems 11.1 merge B into A in sorted order 11.2 sort string array so anagrams next to each other 11.3 find num
分类:
其他好文 时间:
2016-02-28 06:28:23
阅读次数:
204
Tree of TreeTime Limit: 1 Second Memory Limit: 32768 KB You're given a tree with weights of each node, you need to find the maximum subtree of specifi
分类:
其他好文 时间:
2016-02-27 22:07:07
阅读次数:
167
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l
分类:
其他好文 时间:
2016-02-27 08:27:45
阅读次数:
153