浙大PAT甲级题目1121-1140详细代码解答
文章目录
- 浙大PAT甲级题目1121-1140详细代码解答
-
-
-
-
- 1121 Damn Single 哈希和模拟
- 1122 Hamilton Cycle 图
- 1123 Is It a Complete AVL Tree 树 难
- 1124 Raffle for Weibo Followers 字符串
- 1125 Chain the Ropes 贪心 难
- 1126 Eulerian Path 图
- 1127 Zigzagging on a Tree 树
- 1128 N queens puzzle 深度优先搜索
- 1129 Recommendation System 排序
- 1130 Infix Expression 树
- 1131 Subway Map 图 难
- 1132 Cut Integer 模拟
- 1133 Splitting a Linked List 链表
- 1134 Vertex Cover 图
- 1135 Is It A Red-Black Tree 树 难
- 1136 A Delayed Palindrome
- 1137 Final Grading 模拟
- 1138 Postorder Traversal
- 1139 First Contact 图
- 1140 Look-and-say Sequence 模拟
-
-
-
1121 Damn Single 哈希和模拟
“Damn Single (单身狗)” is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.
#include<iostream>
#include<cstring>
#include<algorithm>
#