原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1159#include<iostream>#include<string.h>using namespace std;char a[1001],b[1001];int num[1001][1001];int main(){ while(cin>>a>>b) { memset(num,0,sizeof(num)); int i,j; int len1=strlen(a),len2=strlen(b); for(i=0;i<len1;i++) { f Read More
posted @ 2013-04-03 23:07 supersnow0622 Views(85) Comments(0) Diggs(0)
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1087#include<stdio.h>#include<memory.h>int main(){ int count; int arr[1001],sum[1001]; scanf("%d",&count); int max; while(count!=0) { memset(sum,0,sizeof(sum)); for(int i=0;i<count;i++) { scanf("%d",&arr[i]); s Read More
posted @ 2013-04-03 23:04 supersnow0622 Views(112) Comments(0) Diggs(0)
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1003#include<stdio.h>struct Node{ int max; int start; int end;};int arr[100001];Node node[100001];int main(){ int count,num,Max; scanf("%d",&count); for(int cases=1;cases<=count;cases++) { scanf("%d",&num); scanf(&qu Read More
posted @ 2013-04-03 23:01 supersnow0622 Views(133) Comments(0) Diggs(0)