摘要: // vol 1 could do with sth rhinoplasty angst the wee small hours familial Munich gladiator platelet let/get sb off the hook make the cut hard up get b 阅读全文
posted @ 2019-01-13 11:20 PatrickZhou 阅读(306) 评论(0) 推荐(0) 编辑
摘要: //5-2-9 discreet brawl faeces knuckle be tipped to do massacre hitch antics tipsy Aussie chauvinism drudgery fetish cackle calamity pizzazz cushy plat 阅读全文
posted @ 2019-01-09 19:37 PatrickZhou 阅读(94) 评论(0) 推荐(0) 编辑
摘要: love handle pang carbohydrate podiatry splay out Cinderella liposuction mingle fly the nest flatshare cramp cramped get hitched boomerang empathise wi 阅读全文
posted @ 2019-01-02 12:24 PatrickZhou 阅读(266) 评论(0) 推荐(0) 编辑
摘要: main() 函数中的这两行 fgets(buf[0], maxn, stdin); sscanf(buf[0], "%d", &T); 不能简单替换为 scanf("%d", &T); 因为这会影响后面用fgets()读取数的内容。这个scanf之后调用 fgets() 会读取一个空的行。 从样例 阅读全文
posted @ 2018-01-22 16:56 PatrickZhou 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; const int maxn = 1000 + 5; // at most 1000 lowercase characters // union find set, each set is a tree // only letters 'a' through 'z' will appear... 阅读全文
posted @ 2018-01-20 23:51 PatrickZhou 阅读(107) 评论(0) 推荐(0) 编辑
摘要: pic[][]数组存储每个点的值,0或1,输入时在原图的周围加了一圈0。 color[][]数组存储每个点的color值,从1开始,dfs(row, col, c) 负责对每个点着色,连通在一起的连通块的颜色相同。 因为最先着色的是最外围的白色点,即background white,这些点的colo 阅读全文
posted @ 2017-08-07 17:42 PatrickZhou 阅读(231) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include using namespace std; const int maxm = 100; char grid[maxm + 5][maxm + 5]; int visited[maxm + 5][maxm + 5]; int m, n;... 阅读全文
posted @ 2017-08-04 18:57 PatrickZhou 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 单向链表的元素存放在数组s[]中,next指针存放在数组next[]中。 链表初始为空,next[0] == 0 代表链表结尾,类似NULL指针,在最后打印链表的时候作为for循环结束的条件。 依次插入s[]数组中的每个元素,cur代表插入位置,即插入到s[cur]这个元素的后面,下面两句是插入s[ 阅读全文
posted @ 2017-07-24 11:22 PatrickZhou 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include 4 #include 5 using namespace std; 6 const int MAXN = 1000 + 10; 7 8 int n, target[MAXN]; 9 10 int main() { 11 // scanf() returns the num... 阅读全文
posted @ 2017-07-19 16:47 PatrickZhou 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1 #define _CRT_SECURE_NO_WARNINGS 2 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 13 using namespace std; 1... 阅读全文
posted @ 2017-07-18 19:19 PatrickZhou 阅读(141) 评论(0) 推荐(0) 编辑