题目是选出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
using System.Collections.Generic;using
System.Collections.Specialized;using System.Linq;using System.Web;using
System.Text;using System.Web.Mvc;using ...
分类:
Web程序 时间:
2014-05-03 23:02:35
阅读次数:
492
@using (Ajax.BeginForm("GetTime","order",new
AjaxOptions() { Confirm="你确认这么做吗?", HttpMethod="post", ...
分类:
Web程序 时间:
2014-05-03 22:50:30
阅读次数:
344
LTC男人八题系列,测试数据之强真不是盖的。题目大意是在树上找出所有满足长度 2
#include 3 using namespace std; 4 5 6 #define FOR(p,i,s,t) for(__typeof(p) i=s;
it, Vs[eptr].l = this...
分类:
其他好文 时间:
2014-05-03 22:47:34
阅读次数:
419
一、接口那点事儿 (1)什么是接口? 一组函数成员而未实现的引用类型。只有类和结构能实现接口。
(2)从IComparable接口看接口实例:
假设有如下一段代码,它使用Array类的一个静态方法Sort对一个未排序的int类型数组进行排序,并输出排序后的结果。using System;cl...
分类:
其他好文 时间:
2014-05-03 22:20:59
阅读次数:
462
一,Persistent Connection 示例教程
1,实现服务器端代码
1),编写服务器 PersistentConnection 代码
项目中 SignalR 目录下创建 PersistentConnection.cs 文件
using System;
using System.Collections.Generic;
using System.T...
分类:
Web程序 时间:
2014-05-03 22:03:28
阅读次数:
349
题目链接:1372 - Log Jumping
题意:给定一些n个木板的起始位置和长度k,相重叠的木板可以互相跳跃,求能构成环的最大数量。
思路:先按起始位置排序,然后每次多一个木板就去判断他和前一个和前前一个能不能互相跳跃,如果可以的话就可以多加上这个木板。
代码:
#include
#include
#include
using namespace std;
#define ma...
分类:
其他好文 时间:
2014-05-03 21:44:03
阅读次数:
247
【分析】
【伪代码】
【运行过程】
【代码】
/*********************************
* 日期:2014-04-01
* 作者:SJF0115
* 题目:快速排序
**********************************/
#include
#include
using namespace...
分类:
其他好文 时间:
2014-05-03 21:17:50
阅读次数:
476
1 tomcat 6600启动报错[root@localhost webapps]# sh /usr/local/apache-tomcat-6.0.37_6600/bin/startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.37_6600Using CATALINA_HOME: /usr/local/apach...
分类:
Web程序 时间:
2014-05-03 20:52:53
阅读次数:
571