CSS3实现的超酷超炫的立体开关效果丨芯晴网页特效丨CsrCode.CN power switchs ΟΙ ΟΙ ...
                            
                            
                                分类:
Web程序   时间:
2014-07-09 22:09:40   
                                阅读次数:
431
                             
                    
                        
                            
                            
                                Power Strings
Time Limit: 3000MS
 
Memory Limit: 65536K
Total Submissions: 31111
 
Accepted: 12982
Description
Given two strings a and b we define a*b to be their concate...
                            
                            
                                分类:
其他好文   时间:
2014-07-09 11:11:53   
                                阅读次数:
155
                             
                    
                        
                            
                            
                                下面的matlab程序分别使用周期图法、相关函数法以及AR谱方法计算信号的功率谱。% power spectrum estimated
clear all;
clc;
close all;
Fs=1000;       % 采样频率
nfft = 1024;   % fft计算点数
%产生含有噪声的序列
n=0:1/Fs:1;
xn=cos(2*pi*100*n)+3*cos(2*pi*200...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 16:23:01   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                http://poj.org/problem?id=4045
大致题意:有n个村庄,求将发电站建在哪一个村庄使得花费最少。这是一个无向无环图。简化一下就是求一个节点使它到其他所有节点的距离和最小。
起初一直在向最短路上靠,但因为节点和边数太大,必定TLE。然后无比强大的啸神随便写了两个dfs就过掉了,简直膜拜。赛后搜了搜题解,发现这是道树形dp。sad,真的要好好刷dp了。
...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 10:42:39   
                                阅读次数:
261
                             
                    
                        
                            
                            
                                00使用递归编写一个power()函数模拟内建函数pow(),即power(x, y)为计算并返回x的y次幂的值。def power(x,y): if y == 1: return x else: return x * power(x,y-1)number1 ...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 17:55:37   
                                阅读次数:
334
                             
                    
                        
                            
                            
                                ;; Fermat's Little Theorem:
;; If N is a prime number and A is any positive integer less 
;; than N, then A raised to the N-th power is congruent to A modulo N
;; Two numbers are said to be congruent...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 09:05:22   
                                阅读次数:
158
                             
                    
                        
                            
                            
                                1、Swift 无需写break,所以不会发生这种贯穿(fallthrough)的情况。
2、//用不到变量名,可用“_”替换
for _ in 1...power
{
    answer *= base
}
3、case 可以匹配更多的类型模式,包括区间匹配(range matching),元组(tuple)和特定类型的描述。
可以这样用case
case 1...3:
natura...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 00:52:44   
                                阅读次数:
194
                             
                    
                        
                            
                            
                                Power Strings
Time Limit: 3000MS
 
Memory Limit: 65536K
Total Submissions: 31093
 
Accepted: 12974
Description
Given two strings a and b we define a*b to be their concate...
                            
                            
                                分类:
其他好文   时间:
2014-07-06 00:33:22   
                                阅读次数:
253
                             
                    
                        
                            
                            
                                4 Work Mistakes You Don't Realize You're Making你在工作中无意间会犯的四个错误When you’re the new girl at work, you do everything in your power to stay on your best b...
                            
                            
                                分类:
其他好文   时间:
2014-07-05 18:53:56   
                                阅读次数:
204