摘要: 有点坑的dfs 看懂题应该就会做了 神圣海必然围成一个圈 dfs将神圣还外围的全部去掉 简单题#include #include #include using namespace std;int dx[] = {1, 1, 1, -1, -1, -1, 0, 0};int dy[] = {1, 0... 阅读全文
posted @ 2013-08-05 21:18 xlc2845 阅读(128) 评论(0) 推荐(0)
摘要: 可以推出规律 每一个数第一次出现的位置 和 n*10后出现的位置 要特殊考虑 是10的倍数的情况(10,100,1000, .......) 它的位置是不会改变的#include#define uLL unsigned long longusing namespace std;uLL a[30] =... 阅读全文
posted @ 2013-08-05 16:43 xlc2845 阅读(126) 评论(0) 推荐(0)
摘要: 推出公式 然后特判两端 代码其实挺烂 但是有人竟然可以直接暴过去的 ......#include #include #include #include using namespace std;int main(){ double A,B; int c; scanf("%lf%l... 阅读全文
posted @ 2013-08-05 12:50 xlc2845 阅读(122) 评论(0) 推荐(0)
摘要: 本来就是个很水的题 就是枚举起点长度然后直接判断就行了 但是比赛的时候写了个大bug 还找不出来 自己太水了#include #include using namespace std;int g[110][110];int findd(int len, int x, int y){ in... 阅读全文
posted @ 2013-08-05 12:46 xlc2845 阅读(137) 评论(0) 推荐(0)