摘要: Compound Words我的思路:对于每个单词,依次枚举其所有可能组合的情况,看其两个子单词是否存在于dict中。version 1(30ms):#include#include#include#includeusing namespace std;int mai... 阅读全文
posted @ 2018-04-22 21:18 ACLJW 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Updating a Dictionaryversion 1:#include#include#include#include#includeusing namespace std;const int maxl = 100 + 5;int t,n;char c;voi... 阅读全文
posted @ 2018-04-22 16:56 ACLJW 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Printer Queuepriority_queue + queue#include#includeusing namespace std;const int maxn = 500000;int t,n,pos;int main(){ scanf("%d",&... 阅读全文
posted @ 2018-04-22 16:52 ACLJW 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Symmetry我的思路:开始是想着将所有点都存在set里面,找出对称轴,然后对于每一个点确定其对称点是否存在,但是觉得这样效率似乎太低,就放弃了。后来想到了这样做:将所有点按x坐标进行排序,若x坐标相同,则对于对称轴左边的点按y坐标又小到大排序,右边则相反。这样的话... 阅读全文
posted @ 2018-04-22 15:42 ACLJW 阅读(153) 评论(0) 推荐(0) 编辑