2013年8月10日

HDU 4585

摘要: 1 //也是个水题,不过以前没用过set。。。。所以逼着我去学。 2 3 4 5 #include 6 #include 7 #include 8 #include 9 #include10 #include11 #include12 using namespace std;13 14 se... 阅读全文

posted @ 2013-08-10 20:01 Stomach_ache 阅读(120) 评论(0) 推荐(0) 编辑

HDU 4584

摘要: 1 //也是简单题,因为n太小,故暴力之! 2 3 4 #include 5 #include 6 #include 7 #define max 45 8 9 char map[max][max];10 11 int dis(int x1,int y1,int x2,int y2){12 ... 阅读全文

posted @ 2013-08-10 20:00 Stomach_ache 阅读(115) 评论(0) 推荐(0) 编辑

HDU 4576 Robot

摘要: //题目并不算难,但是特么的就是坑死你。。。//用数组a[]维护每轮的结果,a[i]就是代表走到i的概率。。。还需借助辅助数组q[]。#include#include#define max 205int n,m,l,r;double q[max],a[max];int main(){ while(s... 阅读全文

posted @ 2013-08-10 19:58 Stomach_ache 阅读(107) 评论(0) 推荐(0) 编辑

导航