![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
超爱喝酸奶
努力奋斗的大学渣
展开
-
pat乙级1015德才论+C++Set集合Cmp重写+读写txt
真的一道题目引发的血案。。浙大的陈姥姥对java真的很不友好。做pat乙级题目,很多题用Java写都超时。没办法只有又回归C++。然而c++中很多细节我都不是很清楚碰了很多坑,所以研究了一下后写了这篇博客。先上题目吧题目1015. 德才论 (25) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 ...原创 2018-03-08 19:01:31 · 497 阅读 · 0 评论 -
[拼题A] 7-3 Pop Sequence
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of...原创 2018-06-09 17:34:59 · 2024 阅读 · 0 评论 -
PAT 1041 Be Unique (20)
Being unique is so important to people on Mars that even their lotteryis designed in a unique way. The rule of winning is simple: one bets ona number chosen from [1, 10^4^]. The first one who bets on ...原创 2018-06-10 16:22:49 · 206 阅读 · 0 评论