以前写的代码//// main.c// cTest//// Created by Zizhu on
13-10-8.// Copyright (c) 2013年 Zizhu. All rights reserved.//#include #define N
(10)void quickSor...
分类:
编程语言 时间:
2014-05-26 01:27:07
阅读次数:
340
##报错来源分析 由于hibernate-entitymanager 需要jboss logging
。由于或多或少的原因导致 maven无法下载相关的jar文件。##解决办法: 访问 http://search.maven.org
搜索jboss-logging 点击all, 找到相...
分类:
其他好文 时间:
2014-05-25 23:23:26
阅读次数:
401
有二种方式波形文件显示的数值的进制,第一种是直接修改配置文件,第二种是使用do文件时,指定波形的显示进制第一种方法:可以通过修改modelsim安装目录下面的modelsim.ini文件里面的DefaultRadix
值实现; Default radix for all windows and co...
分类:
其他好文 时间:
2014-05-25 18:45:59
阅读次数:
472
继续并发专题~
这次介绍CyclicBarrier:看一眼API的注释:
/**
* A synchronization aid that allows a set of threads to all wait for
* each other to reach a common barrier point. CyclicBarriers are
* useful in program...
分类:
编程语言 时间:
2014-05-25 18:15:06
阅读次数:
316
Problem Description
We have a special convex that all points have the same distance to origin point.
As you know we can get N segments after linking the origin point and the points on the convex. ...
分类:
其他好文 时间:
2014-05-25 09:50:19
阅读次数:
217
Kitahara Haruki has bought n apples for Touma Kazusa and Ogiso Setsuna. Now he wants to divide all the apples between the friends.
Each apple weights 100 grams or 200 grams. Of course Kitahara Haru...
分类:
其他好文 时间:
2014-05-25 09:01:36
阅读次数:
174
寻找图中最小连通的路径,图如下:
算法步骤:
1. Sort all the edges in non-decreasing order of their weight.
2. Pick the smallest edge. Check if it forms a cycle with the spanning tree
formed so far. If cycle is n...
分类:
其他好文 时间:
2014-05-25 07:35:59
阅读次数:
301
clear all
A4=440;%标准音A4 不同的曲调音调不同scale的取值范围不同
pt=44100;p0=pt/2;%频率
scale=A4/2^(9/12)*2.^((-12:11)/12);%这里可以调节音调高低,eg:改变式子中的-12:11为0:23
map=[1 3 5 6 8 10 12 13 15 17 18 20 22 24 25];%音符,这个需要看曲谱编码...
分类:
其他好文 时间:
2014-05-25 07:27:55
阅读次数:
1212
Problem Description
We have a special convex that all points have the same distance to origin point.
As you know we can get N segments after linking the origin point and the points on the convex. ...
分类:
其他好文 时间:
2014-05-25 06:55:54
阅读次数:
188
【题目】
The set [1,2,3,…,n] contains a total of n! unique permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
"123"
"132"
"213"
"231"
"312"
"321"
Given n and k, return the kth permutation ...
分类:
其他好文 时间:
2014-05-25 06:13:37
阅读次数:
276