题目是选出c个连续的囚犯,而且囚犯的级别不能大于t#include using namespace
std;int main(){ int n,t,c; cin >> n >> t >> c; int a,cnt = 0,
res =0;; for(int i = 0 ; i...
分类:
其他好文 时间:
2014-05-04 12:14:55
阅读次数:
340
题目的意思就是找出未能及时处理的犯罪数,#include using namespace
std;int main(){ int n; cin >> n; int a,recruit = 0, crimes = 0;; for(int i
= 0 ; i > a; ...
分类:
其他好文 时间:
2014-05-04 11:54:32
阅读次数:
274
#include using namespace std;//概率计算PIint
main(){ int inside=0; double val; int i; for ( i=0; i<100000000; i++) {
double x = (dou...
分类:
其他好文 时间:
2014-05-04 11:47:49
阅读次数:
262
static void Main(string[] args) { //string[] str =
{ "", "" }; //TestParams(str); //TestParams("我","爱","北京","...
分类:
其他好文 时间:
2014-05-04 11:42:53
阅读次数:
190
1,指针没有指向一块合法的区域1指针没有初始化12345678910111213#include #include struct aa{char
*pa;char c;}ssa,*ssb;void main(){strcpy(ssa.pa,"abc");printf("%s \n",ssa.pa);...
分类:
其他好文 时间:
2014-05-04 11:38:09
阅读次数:
278
这是程序代码,我是按照网上和视频讲解的步骤写的代码:import
java.sql.*;public class jdbc {/*** @param args*/public static void main(String[]
args) {// TODO Auto-generated method...
分类:
数据库 时间:
2014-05-03 23:00:11
阅读次数:
385
简介LNMMP=Linux+Nginx+MySQL+Memcache+PHP;利用Nginx的高性能特点做前端反向代理服务器,分发用户请求,并在能够利用缓存的地方使用Memcache缓存服务,以加速缓存效率,具体架构图如下;具体部署代理层:Nginx编译安装Nginxyum
install gcc ...
分类:
其他好文 时间:
2014-05-03 22:48:02
阅读次数:
688
题意:求最大上升子序列和#includeusing namespace std;int
main(){ int n,a[1001],b[1001],max; while(cin>>n&&n!=0) { for(int
i=1;i>a[i]; b[1]=a...
分类:
其他好文 时间:
2014-05-03 22:29:38
阅读次数:
282
首先看下面这个例子
public static void main(String[] args) {
ArrayList al1 = new ArrayList();
al1.add(1);
ArrayList al2 = new ArrayList();
al2.add("hello");
//int型链表和string型链表,结果为true
System.out.p...
分类:
编程语言 时间:
2014-05-03 22:02:53
阅读次数:
376
package ioTest.io3;
import java.io.File;
/*
* 获取一个目录下的所有文件夹和文件,包括子文件夹和子文件 。
* 并将文件夹和文件名称打印在控制台上面。并且要显示文件目录的层级
* 注:运用了递归的算法。
*/
public class FileDemo3 {
public static void main(String[] args) {
...
分类:
编程语言 时间:
2014-05-03 20:54:44
阅读次数:
677