2011年4月10日

zoj 2474Benny's Compiler

摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1475水水的拓扑的一部分事先看别人的解题报告再做的,注意测试数据里有 a b,#include<iostream>#include<cstring>using namespace std;int n,m,f,tar,ans,ok;int g[105][105],vis[105];void topo(int x){ if(!ok)return; vis[x]=1; for(int i=1;i<=n;i++) { if(g[x][i]) { if(v 阅读全文
posted @ 2011-04-10 23:07 4.5.6 阅读(259) 评论(0) 推荐(0) 编辑

zoj2741Offside

摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1741只能用一个词来形容--“恶心”数据里有double#include<iostream>#include<stdio.h>#include<string>#include<vector>#include<sstream>using namespace std;struct node{ double x,y;};node change(string s){ node a; int it=s.find(',& 阅读全文
posted @ 2011-04-10 11:50 4.5.6 阅读(175) 评论(0) 推荐(0) 编辑