Don’t Ignore That Error!Pete GoodliffeI was walking down the street one evening to meet some friends in a bar. We hadn’t shared a beer in some time, and I was looking forward to seeing them again. In m...
分类:
其他好文 时间:
2015-04-21 09:43:51
阅读次数:
170
When Vova arrived in Guangzhou, his Chinese friends immediately invited him to a restaurant. Overalln people came to the restaurant, including Vova. The waiter offered to seat the whole company
at a...
分类:
其他好文 时间:
2015-04-19 22:49:17
阅读次数:
174
using System;class StudentHomeWork{ public enum Friends { 老大, 老二, 老三, 老四, 老五, 老六 }; public static void Main() { Friends f1 = Friends.老大; Friends f2 = ...
分类:
编程语言 时间:
2015-04-09 10:16:21
阅读次数:
147
前言
妈呀我调了两个多小时,
就特么因为一个运算符优先级的问题?……!!!
太弱了。你们D我吧,那道题的提交都是我刷上去的QwqQwq
题解
首先S串如果存在,一定是U串(长度姑且设为2n+1,偶数则直接impossible)的[1,n]或者[n+2,2n+1]。。
然后我们可以暴力匹配,允许一次失配(就是第一次失配就跳过接着匹配。)
然后如果匹配完全串了,就是一种可行S串。
然后...
分类:
其他好文 时间:
2015-04-06 08:52:03
阅读次数:
137
1552: Friends
Time Limit: 3 Sec Memory Limit: 256 MB
Submit: 187 Solved: 43
[Submit][Status][Web
Board]
Description
On an alien planet, every extraterrestrial is born with a number. If ...
分类:
其他好文 时间:
2015-04-04 15:17:26
阅读次数:
154
1552: FriendsTime Limit: 3 SecMemory Limit: 256 MBSubmit: 163Solved: 34[Submit][Status][Web Board]DescriptionOn an alien planet, every extraterrestria...
分类:
其他好文 时间:
2015-04-01 23:32:32
阅读次数:
191
题目大意给出一个字符串,这个字符串是由两个相同的字符串连接之后再加一个字母的到的,求原串。思路枚举加的字母是哪一个,之后分情况讨论,根据hash值来判定是否符合题目要求。注意判重。CODE#define _CRT_SECURE_NO_WARNINGS#include
#include
#include
#include <algorithm...
分类:
其他好文 时间:
2015-04-01 22:01:47
阅读次数:
132