自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Mem_IM

于无声处听惊雷

  • 博客(13)
  • 收藏
  • 关注

原创 <防无聊>题解

A - DZY Loves Hash A题就是一个简单的判重,所有输入的数对p取模,输出所得结果结果中第一个重复的位置。#include<bits/stdc++.h>using namespace std;int vis[305];int main(){ int n,p,num; cin>>p>>n; memset(vis,0,sizeof(vis));

2017-07-03 00:22:15 276

原创 Codeforces Round #369 (Div. 2)C. Coloring Trees

ZS the Coder and Chris the Baboon has arrived at Udayland! They walked in the park where n trees grow. They decided to be naughty and color the trees in the park. The trees are numbered with integers f

2016-09-06 17:00:01 224

原创 Codeforces Beta Round #17D. Notepad

time limit per test:2 seconds memory limit per test:64 megabytesNick is attracted by everything unconventional. He doesn’t like decimal number system any more, and he decided to study other number sys

2016-08-11 16:53:07 245

原创 POWOJ 2475 Xor问题(异或运算+字典树)

Time Limit: 2000 MS Memory Limit: 65536 KBDescription问题很简单,现在有一个数组a1,a2,a3……an。你的任务就是找到一个连续子段[l,r],使得al^al+1^……^ar达到最大。Input多组输入,每组有两行。第一行有一个整数n(1<=n<=10^5),表示数组的元素个数。第二行有n个元素,依次表示数组的元素。(0<=ai<=10^6)Ou

2016-08-10 21:38:37 360

原创 最短的名字(简单字典树)

Time Limit: 5000 MS Memory Limit: 65536 KB在一个奇怪的村子中,很多人的名字都很长,比如aaaaa, bbb and abababab。名字这么长,叫全名显然起来很不方便。所以村民之间一般只叫名字的前缀。比如叫’aaaaa’的时候可以只叫’aaa’,因为没有第二个人名字的前三个字母是’aaa’。不过你不能叫’a’,因为有两个人的名字都以’a’开头。村里的人都很

2016-08-10 14:30:03 833 2

原创 HDU 5750 Dertouzos

Dertouzos Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 1836 Accepted Submission(s): 577Problem Description A positive proper divisor

2016-08-10 10:52:05 273

原创 Codeforces Round #366 (Div. 2) C. Thor

C. Thor time limit per test 2 seconds memory limit per test 256 megabytesThor is getting

2016-08-08 11:09:52 273

原创 HDU 5806 NanoApe Loves Sequence Ⅱ(双指针)

Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)Problem Description NanoApe, the Retired Dog, has returned back to prepare for for the National Higher Education En

2016-08-07 16:22:58 318

原创 POJ 3667 Hotel

Time Limit: 3000MS Memory Limit: 65536KDescriptionThe cows are journeying north to Thunder Bay in Canada to gain cultural enrichment and enjoy a vacation on the sunny shores of Lake Superior. Bess

2016-07-28 15:06:47 207

原创 hdu 1689 Just a Hook

Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes

2016-07-27 20:53:10 208

原创 POJ 3468 A Simple Problem with Integers

Time Limit:5000MS Memory Limit:131072KBDescriptionYou have N integers, A1, A2, … , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each numbe

2016-07-27 20:26:55 206

原创 HDU 4027 Can you answer these queries?

Time Limit:2000MS Memory Limit:65768KBDescription A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret weapon to eliminate the battleships

2016-07-27 17:01:02 190

原创 HDU.1540 Tunnel Warfare

Time Limit:2000MS Memory Limit:32768KBDescription During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking,

2016-07-27 16:32:06 258

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除