Airports
From:UVA,
11733
Submit
Time Limit: 1000 MS
The government of a certain developing nation wants to improve transportation
in one of its most inacces...
分类:
其他 时间:
2015-01-10 18:14:38
收藏:
0 评论:
0 赞:
0 阅读:
350
第一种:
package 找猴王;
public class Test {
public static void main(String[] args) {
int n=15;//15只猴子
int m=7;//数到7的就出局
int count=1;//count为计报数的值,从1开始,7结束
int size=n;//size的值从15变到1,到1时就找到了猴王(每数到7...
分类:
其他 时间:
2015-01-10 18:14:28
收藏:
0 评论:
0 赞:
0 阅读:
391
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operations permitted on a word:
a) Insert a character
b) Delete a character
c) Replace a...
分类:
其他 时间:
2015-01-10 18:13:18
收藏:
0 评论:
0 赞:
0 阅读:
261
题目一、jobdu1166:迭代求立方根
http://ac.jobdu.com/problem.php?pid=1166
题目描述:
立方根的逼近迭代方程是 y(n+1) = y(n)*2/3 + x/(3*y(n)*y(n)),其中y0=x.求给定的x经过n次迭代后立方根的值。
输入:
输入有多组数据。
每组一行,输入x n。
输出:
迭代n次后的立方根,...
分类:
其他 时间:
2015-01-10 18:12:01
收藏:
0 评论:
0 赞:
0 阅读:
404
题目一、jobdu1163:素数
http://ac.jobdu.com/problem.php?pid=1163
题目描述:
输入一个整数n(2
输入:
输入有多组数据。
每组一行,输入n。
输出:
输出所有从1到这个整数之间(不包括1和这个整数)个位为1的素数(素数之间用空格隔开,最后一个素数后面没有空格),如果没有则输出-1。
样例输入:
10...
分类:
其他 时间:
2015-01-10 18:11:28
收藏:
0 评论:
0 赞:
0 阅读:
414
解决方案:github issue
通过修改hexo源码来解决:
文件:lib/util/highlight.js
将91行的:
numbers += '' + (i + firstLine) + '';
content += '' + item + '';
改为:
numbers += '' + (i + firstLine) + '\n'...
分类:
其他 时间:
2015-01-10 18:10:52
收藏:
0 评论:
0 赞:
0 阅读:
355
点击打开链接
1119. Metro
Time limit: 0.5 second
Memory limit: 64 MB
Many of SKB Kontur programmers like to get to work by Metro because the main office is situated quite close the statio...
分类:
其他 时间:
2015-01-10 18:10:08
收藏:
0 评论:
0 赞:
0 阅读:
401
题目描述:给出一个integer n,计算n!结尾0的个数题目分析:考虑暴力,计算n!统计最后面0的个数。先不说数字溢出,其次n是一个integer ,O(n)复杂度超时我们接着考虑,产生0的情况只有包含因子5的数乘以一个偶数会在结尾产生0(5*2,15*2,75*2),因为偶数的个数大于因子包含5...
分类:
其他 时间:
2015-01-10 18:08:30
收藏:
0 评论:
0 赞:
0 阅读:
314
修改表的结构DDL定义中对于数据库的操作主要有3种语法创建对象:CREATE 对象类型 对象名称….删除对象 DROP 对象类型 对象名称修改对象 ALTER 对象类型 对象名称创建表,并添加数据 --删除member表 DROP TABLE MEMBER PURGE; --创建member表CRE...
分类:
其他 时间:
2015-01-10 18:08:18
收藏:
0 评论:
0 赞:
0 阅读:
318
CALL FUNCTION 'ME_DIRECT_INPUT_SOURCE_LIST'Function module IDOC_INPUT_SRCLSTFUNCTION IDOC_INPUT_SRCLST.*"--------------------------------------------....
分类:
其他 时间:
2015-01-10 18:07:28
收藏:
0 评论:
0 赞:
0 阅读:
1434
#include#define M 2unsigned process(unsigned n){ static unsigned S=1; unsigned d,e; d=n/M; if(d==0) e=1; else { S*=M; e=M*process(d); } if (e==1) p...
分类:
其他 时间:
2015-01-10 18:07:18
收藏:
0 评论:
0 赞:
0 阅读:
230
cin是istream类的对象,它是从标准输入设备(键盘)获取数据,程序中的变量通过流提取符">>"从流中提取数据。流提取符">>"从流中提取数据时跳过输入流中的空格、tab键、换行符等空白字符。注意:只有在输入完数据再按回车键后,该行数据才被送入键盘缓存区,形成输入流,提取运算符">>"才能从中提...
分类:
其他 时间:
2015-01-10 18:06:38
收藏:
0 评论:
0 赞:
0 阅读:
379
#includeint main(){int a[3][3];int i,j,b,c,k=0;b=0;c=0;for(i=0;i<3;i++)for(j=0;j<3;j++){scanf("%d",&a[i][j]);if(i==j)b+=a[i][j];if(i+j==2)c+=a[i][j];}...
分类:
其他 时间:
2015-01-10 18:06:29
收藏:
0 评论:
0 赞:
0 阅读:
133
CHECKSUM返回在表的行上或在表达式列表上计算的校验值。CHECKSUM 用于生成哈希索引。语法CHECKSUM(* |expression[ ,...n])参数*指定在表的所有列上进行计算。如果有任一列是非可比数据类型,则 CHECKSUM 返回错误。不可比数据类型是text、ntext、im...
分类:
其他 时间:
2015-01-10 18:06:19
收藏:
0 评论:
0 赞:
0 阅读:
310
Beginning OpenMPOpenMP provides a straight-forward interface to write software that can use multiple cores of a computer. Using OpenMP you can write c...
分类:
其他 时间:
2015-01-10 18:06:08
收藏:
0 评论:
0 赞:
0 阅读:
375
#includeint main(){ int n,i,j,k; printf("n=:"); scanf("%d",&n); for(i=1;i<=n;i++) {for(j=1;j<=n-i;j++) printf(" "); ...
分类:
其他 时间:
2015-01-10 18:05:48
收藏:
0 评论:
0 赞:
0 阅读:
142
数学问题: 1.精度计算——大数阶乘2.精度计算——乘法(大数乘小数)3.精度计算——乘法(大数乘大数)4.精度计算——加法5.精度计算——减法6.任意进制转换7.最大公约数、最小公倍数8.组合序列9.快速傅立叶变换(FFT)10.Ronberg算法计算积分11.行列式计算12.求排列组合数13.求...
分类:
其他 时间:
2015-01-10 18:05:29
收藏:
0 评论:
0 赞:
0 阅读:
389
android中,从一个Activity(界面)跳转到另一个Activity时,需要使用到Intent来启动Activity。在Intent使用时,分为显式调用和隐式调用2类,显式调用就是直接调用另一个Activity的class类,隐式调用需要通过调用另一个Activity的action 来启动另...
分类:
其他 时间:
2015-01-10 18:05:18
收藏:
0 评论:
0 赞:
0 阅读:
305
环境:操作系统:centos 6.5 x64 cpu:32 core内存: 32G web服务器:tomcat 6.xjdk :1.6x测试环境:操作系统:centos 6.5 x64 cpu:32 core内存: 32G ab 作为性能测试工具在做性能测试之前,对客户端和服务端均进行服务端优化(l...
分类:
其他 时间:
2015-01-10 18:04:28
收藏:
0 评论:
0 赞:
0 阅读:
300
1概念理解首先PCTUSED和PCTFREE都是针对数据块的存储属性,单位都是%。其中PCTFREE决定了数据块什么时候从free list中移除,系统就不可以再往该数据块中插入数据,对于数据块中已有数据的更新可以使用数据块的保留空间(当update数据块时,剩余空间不足于满足update后的空间要...
分类:
其他 时间:
2015-01-10 18:03:08
收藏:
0 评论:
0 赞:
0 阅读:
294