#include
#include
#include
#include
#include
using namespace std;
const int maxn = 1000010;
__int64 sum[maxn] ;
__int64 num[maxn];
__int64 ans[maxn];
__int64 vis[maxn] ;
__int64 query;
__i...
分类:
其他好文 时间:
2015-04-16 23:49:50
阅读次数:
258
Given a string ‘str’ of digits and an integer ‘n’, build the lowest possible number by removing ‘n’ digits from the string and not changing the order ...
分类:
其他好文 时间:
2015-04-16 11:49:38
阅读次数:
179
Removing Images and SetsOptimize the size of an asset catalog by removing unused images or sets.通过删除不用的图片或图片集优化一个asset catalog的大小。Do one of the follow...
分类:
其他好文 时间:
2015-04-15 21:13:13
阅读次数:
107
问题描述:
Given a linkedlist, remove the nth node fromthe end of list and return its head.
For example,
Given linked list: 1->2->3->4->5,and
n = 2.
After removing the second node from the end...
分类:
其他好文 时间:
2015-04-15 17:20:23
阅读次数:
189
Problem 2144 Shooting Game
Accept: 267 Submit: 1368
Time Limit: 1000 mSec Memory Limit : 32768 KB
Problem Description
Fat brother and Maze are playing a kind of special (hentai) gam...
分类:
其他好文 时间:
2015-04-14 08:30:26
阅读次数:
127
//先到n-1的赢
#include
#include
#include
using namespace std ;
int main()
{
int n , k;
while(scanf("%d%d",&n,&k) , n+k)
{
if((n-1)%(k+1) == 0) printf("Jiang\n") ;
e...
分类:
其他好文 时间:
2015-04-11 14:52:57
阅读次数:
114
活动目录又称AD,为什么要学习AD?微软针对计算机及用户账号的管理俩种模式,一种为工作组称为分散式管理(工作组模式,没台计算机只负责管理本机的账号。);另一种像AD一样的叫集中式管理。(域环境,所有的账号信息存放于域控制器)工作组实例:希望XX能访问server1,2的gam..
分类:
其他好文 时间:
2015-04-11 06:45:36
阅读次数:
154
package com.stone.dp.proxy;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;/** * jdk自带的动态代理;...
分类:
其他好文 时间:
2015-04-07 09:37:30
阅读次数:
106
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1729题意:2个玩家,有N个箱子,每个箱子的大小是Si,游戏开始前,就有一些石子在这些箱子里了。游戏者轮流选择箱子,然后把石子放入箱子里。并且放入的石子数量不能大于原来箱子里就有的石子的数量的平方。比如说...
分类:
其他好文 时间:
2015-04-02 22:10:39
阅读次数:
150
HDU1729 Stone Game (SG函数)...
分类:
其他好文 时间:
2015-04-01 17:39:36
阅读次数:
131