摘要: #include#include#include#include#include#includeusing namespace std;#define N 30char map[N][N];struct node {double t;int x,y,f;friend bool operatorb.t... 阅读全文
posted @ 2014-03-11 18:25 HYDhyd 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 第一组实例aaaa2aaaa第二组a1c第三组abcdef2abcdbcd第四组abcdef2abcdbcde第五组aaaa2aaa第六组lgcstraightlalongahisnstreet5strlongtreebigintegerellipse#include#include//考虑了很多实... 阅读全文
posted @ 2014-03-11 16:15 HYDhyd 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include#includeint total(int x,int m) {int sum=0;while(x>0) {sum+=x%m;x/=m;}return sum;}int main() { __int64 n,suma,i; int m,t,ans,j,h;scanf("%d",&t)... 阅读全文
posted @ 2014-03-11 15:09 HYDhyd 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include#include#define N 51000char s1[200],s2[200],s[N];int main() { int n,m,len,i,j,f;char ch,chr;while(scanf("%s",s1)!=EOF) {getchar();gets(s2);ge... 阅读全文
posted @ 2014-03-11 14:45 HYDhyd 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 最短路的优先队列做法:#include#include#include#define N 100010#define inf 0x3fffffffusing namespace std;int first[N],next[N],u[N],v[N],w[N],d[N];int main(){int t... 阅读全文
posted @ 2014-03-11 13:30 HYDhyd 阅读(110) 评论(0) 推荐(0) 编辑