The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. ...
分类:
其他好文 时间:
2015-03-04 12:40:15
阅读次数:
202
n只有400,所以可以直接暴力模拟。
因为一个小问题卡了很久。。。。。。代码如下:/*
ID: 15674811
LANG: C++
TASK: friday
*/#include
#include
#include
#include
using namespace std;bool is_leap(int year)
{...
分类:
其他好文 时间:
2015-03-04 11:06:39
阅读次数:
131
简单模拟题。注意0%0是非法运算代码如下:/*
ID: 15674811
LANG: C++
TASK: gift1
*/#include
#include
#include
#include
#include
using namespace std;int main()
{
ofstream fout("gi...
分类:
其他好文 时间:
2015-03-04 09:47:30
阅读次数:
129
Problem FLighting SystemDesignInput: StandardInputOutput: StandardOutput You are given the task to designa lighting system for a huge conference hall....
分类:
其他好文 时间:
2015-03-04 00:55:24
阅读次数:
149
完全是一道水题,主要是熟悉了一下USACO的文件操作。
话说这也是这个学期的第一道题,希望这次自己能完完全全的实行好计划,能够好好的坚持下去,否则的话恐怕真的是前途堪忧了。。。。。
加油!!!代码如下:/*
ID: 15674811
LANG: C++
TASK: ride
*/
#include
#include
#include
usi...
分类:
其他好文 时间:
2015-03-03 22:08:54
阅读次数:
195
Activity中四大启动模式
在AndroidManifest.xml中 ,有一个默认的activity 在它里面可以设置activity启动模式, android:launchMode="“ ,该属性用于配置Activity的加载模式,该属性支持4中属性
每不同的模式出现不同的效果,下面详解启动模式。
standard:标准模式,默认加载模式
singleTop:Task顶单...
分类:
移动开发 时间:
2015-03-03 16:43:50
阅读次数:
194
1、在数据配置--显示设置增加TASK_REMARK字段2、excel配置数据源,需用到全局变量时,在where条件增加user_name=‘$填充单元格位置$‘or如:在D2单元格需填充user_name则:selectuser_id,user_code,user_namefromtuserwhereuser_name=‘$D2$‘oruser_id=
‘$G_USER‘
分类:
其他好文 时间:
2015-03-03 11:53:14
阅读次数:
130
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M
Angel's friends want to save Angel. Their task is: approach Angel. We assume that "approa...
分类:
其他好文 时间:
2015-03-03 11:49:06
阅读次数:
185
微软近期Open的职位:Document Understanding and Task (DUT) team in STCA focuses on semantic understanding and answer recommendation platform and features for B...
分类:
其他好文 时间:
2015-03-03 06:19:15
阅读次数:
139
题意:N个点构成的无向图,M条边描述这个无向图。问这个无向图中共有多少个环。(1?≤?n?≤?19,0?≤?m)思路:例子:4 61 21 31 42 32 43 4答案:7画个图发现,直接暴力DFS有太多的重复计算。用DP。枚举点数(状态),每个状态的起点、终点(起点可以不用枚举,因为反正是一个环...
分类:
其他好文 时间:
2015-03-02 22:20:25
阅读次数:
193