原地址:http://www.cnblogs.com/svage/p/3700122.html1、删除目录及子目录下的 .svn目录 find . -type
d -name ".svn" | xargs rm -rf2、/tmp 目录的权限drwxrwxrwt rwt的意思是:对目录有执行权...
分类:
系统相关 时间:
2014-07-22 23:09:34
阅读次数:
552
查看当前目录下的文件:find.-typef查看当前目录下的文件夹:find.-typed如果文件file1不为空:if[-sfile1];thenecho"file1不为空"fi#!/bin/shforfin`find./testdir-typef`;doif[-s$f];thenecho$fis...
分类:
系统相关 时间:
2014-07-22 23:09:14
阅读次数:
407
A + B Problem IITime Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):
199099Accepted Submission(s): 3809...
分类:
其他好文 时间:
2014-07-22 23:08:54
阅读次数:
260
Single NumberGiven an array of integers, every
element appearstwiceexcept for one. Find that single one.Note:Your algorithm
should have a linear runti...
分类:
其他好文 时间:
2014-07-22 23:07:14
阅读次数:
337
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 le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379
简单题 注意__int64 的使用Problem : 1019 ( Least Common
Multiple ) Judge Status : AcceptedRunId : 10599776 Language : C++ Author :
xiaoniuwinCode Ren...
分类:
其他好文 时间:
2014-07-22 23:06:34
阅读次数:
311
给定 ab 与飞 f1 f2 求f(n) = (A * f(n - 1) + B * f(n
- 2)) mod 7.分析:1 因为mod7 0using namespace std;int main(){ int a,b,n; int f[1005];
while(cin>>a>...
分类:
其他好文 时间:
2014-07-22 23:06:34
阅读次数:
391
题意:给n,m,k;输出n经过+-*%后(n%k+k)%k==((n+1)%k)%k
输出最小路径与运算副zsd:% 只是求余数 有正负 mod 是求模 无正负、yhd:对m*k求余对 对k求余不对#include#includeusing
namespace std;struct Node{ .....
分类:
其他好文 时间:
2014-07-22 23:06:14
阅读次数:
369
这题就是 要你找出一个ASCII 的值x使得 :
x^e%n==num(当前输入的数,e条件已给出)zsd:1: ASCII0-255可以枚举2: =a^11 11=1011int pow2( int a,
int b ){ int r = 1, base = a; while( b...
分类:
其他好文 时间:
2014-05-01 16:22:43
阅读次数:
326
题意:求n!中末尾连续0的个数 其实就是2*5的个数30! 中有5 10 15 20 25
30 是5的倍数有6个 6=30/5;6/5=1; 这个1 为255 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80
85 90 95 100 100/5=20; ....
分类:
其他好文 时间:
2014-05-01 15:58:58
阅读次数:
288