摘要: 题目传送门:http://www.nocow.cn/index.php/Translate:USACO/msquare 这道题bfs+hash,但想到要判重的数字不多,就直接用了map,数组传递有些麻烦,所以直接写在了一起,会有点乱 /* ID:abc31261 LANG:C++ TASK:msqu 阅读全文
posted @ 2016-01-19 23:26 Sun_Sea 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 题目传送门:http://www.nocow.cn/index.php/Translate:USACO/ratios 这道题也是直接枚举。。。 /* ID:abc31261 LANG:C++ TASK:ratios */ #include<cstdio> #include<cstring> #inc 阅读全文
posted @ 2016-01-19 23:22 Sun_Sea 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 这道题直接枚举就好了,但我当时竟然没想到,我真是太失败了。。。。。Q_Q /* ID:abc31261 LANG:C++ TASK:spin */ #include<cstdio> #include<cstring> #include<iostream> using namespace std; c 阅读全文
posted @ 2016-01-19 23:13 Sun_Sea 阅读(195) 评论(0) 推荐(0) 编辑