摘要:
这道题用的词典来解的,应该也可以用Trie树(但是我暂时不会): 词典就是一个键值Key,和一个对应的值Value 前往题目:POJ 2503 Describe: You have just moved from Waterloo to a big city. The people here spe 阅读全文
posted @ 2020-08-07 12:31
不敢说的梦
阅读(116)
评论(0)
推荐(0)
摘要:
题目链接:ZOJ 3210 Describe: Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data structure an 阅读全文
posted @ 2020-08-07 00:24
不敢说的梦
阅读(151)
评论(0)
推荐(0)
摘要:
总结一些queue常用的函数: 队列有三种: 顺序队列 优先队列 双端队列 顺序队列构造:queue<value_type> queue_name 函数: que.push() que.pop() 队首元素出队,不返回值 que.front() 查看对首元素 que.back() 查看队尾元素 qu 阅读全文
posted @ 2020-08-07 00:14
不敢说的梦
阅读(204)
评论(0)
推荐(0)

浙公网安备 33010602011771号