- 博客(5)
- 收藏
- 关注
原创 PAT 甲级 1056 Mice and Rice (25分)
Mice and Riceis the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each mouse is to eat as much rice...
2020-02-10 11:12:18 309
原创 PAT 甲级 1051 Pop Sequence (25分)
Given a stack which can keepMnumbers at most. PushNnumbers in the order of 1, 2, 3, ...,Nand pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of t...
2020-02-08 22:47:11 199
原创 PAT 甲级 1045 Favorite Color Stripe (30分)
Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off those unwanted pieces and sewing the remaining parts...
2020-02-07 16:20:25 253
原创 PAT 甲级 1040 Longest Symmetric String (25分)
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, givenIs PAT&TAP symmetric?, the longest symmetric sub-string iss PAT&TAP s, hence you ...
2020-02-06 21:19:42 134
原创 PAT 甲级 1034 Head of a Gang (30分)
One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call betweenAandB, we say thatAandBis related. The weight of a relation is defined to be t...
2020-02-04 22:43:50 252
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人