题意: 给你一个字符串,问你能不能拆成两个相同的字符串,顺序不能改变. 思路: 咋一看数据有点大,搜索过不去,但想想优化的地方很多,而且每个字母最多出现四次,所以多几个剪纸应该会过. #include<stdio.h> #include<string.h> #define N 2000 + 10 int ans1[N] ,ans2[N]; int s1[N] ,s2[N] ,s[N]; int num[N] ,now[N] ,n; int ok; bool…
来之不易的2017第一发ac http://poj.org/problem?id=2386 Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 31474 Accepted: 15724 Description Due to recent rains, water has pooled in various places in Farmer John's field, which is repr…