Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:
其他好文 时间:
2014-07-25 03:15:41
阅读次数:
176
1
复位应答(Answer to request)
读写器呼叫磁场内的卡片,卡片对呼叫做出应答。对刚进入磁场得到电复位处于休闲状态的卡片,卡请求(REQA,0x26);对于已进行过读写操作并进入休眠状态的卡片,卡唤醒(WAKE-UP,0x52)。其中卡请求(REQA)只能呼叫处于休闲(Idle)状态的卡片,卡唤醒(WAKE-UP)可以呼叫所有卡片,包括处于休眠(Halt)和休闲状...
分类:
其他好文 时间:
2014-07-24 23:35:43
阅读次数:
373
树状数组+二分
就是找第几小的数,,找几次,再求和。。
#include
#include
#include
#include
#include
using namespace std;
const int N=277777;
int t,n,m,bit[N],num,i;
long long ans;
int low(int g)
{
return g&(-g);
}
void up...
分类:
其他好文 时间:
2014-07-24 23:29:33
阅读次数:
266
Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of t...
分类:
其他好文 时间:
2014-07-24 22:32:52
阅读次数:
194
本文内容 关于 ActionBar 必要条件 项目结构 环境 演示一:Action Bar 显示隐藏 演示二:Action Item 显示菜单选项 演示三:Action Home 启用“返回/向上”程序图标导航 演示四:Action View 显示 UI 组件 如果你想使用 ActionBarShe...
分类:
移动开发 时间:
2014-07-24 22:00:22
阅读次数:
398
1. HTTP消息头(1)通用信息头即能用于请求消息中,也能用于响应信息中,但与被传输的实体内容没有关系的信息头,如Data,Pragma主要: Cache-Control , Connection , Data , Pragma , Trailer , Transfer-Encoding , Up...
分类:
其他好文 时间:
2014-07-24 21:45:02
阅读次数:
291
仿微信效果,主要是actionbar的一些知识...
分类:
微信 时间:
2014-07-24 17:50:02
阅读次数:
626
一 Words1 gobble up 吞并 e.g. Banc One of Ochio has built an empire in the midwest by gobbling up smaller banks.俄亥俄州第一银行通过兼并一些小银行成为中西部地区的巨头2 gobble up耗费 ...
分类:
其他好文 时间:
2014-07-24 10:02:04
阅读次数:
191
最后的结果中正面向上的奇偶性是一定的,计算出正面向上的范围low,up
结果即为 C(m,low)+ C(m,low+2) +.... + C(m,up) ,用逆元取模
Turn the pokers
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total S...
分类:
其他好文 时间:
2014-07-23 22:36:49
阅读次数:
318
Turn the pokers
大意:给出n次操作,给出m个扑克,然后给出n个操作的个数a[i],每个a[i]代表可以翻的扑克的个数,求最后可能出现的扑克的组合情况。
Hint
Sample Input:
3 3
3 2 3
For the this example:
0 express face down,1 express face up
Ini...
分类:
其他好文 时间:
2014-07-23 22:35:57
阅读次数:
254