![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈
Scarlett·S
学海无涯,回头无岸
展开
-
C++甲级1001 A+B Format (20 分)(sprintf,memset,reverse)
1001 A+B Format (20 分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Spe...原创 2019-02-11 22:08:16 · 319 阅读 · 0 评论 -
灰灰-328-LeetCode682棒球比赛(vector、stack、atio()、substr()、c_str()、accumulate())
你现在是棒球比赛记录员。 给定一个字符串列表,每个字符串可以是以下四种类型之一: 1.整数(一轮的得分):直接表示您在本轮中获得的积分数。 2."+"(一轮的得分):表示本轮获得的得分是前两轮有效回合得分的总和。 3."D"(一轮的得分):表示本轮获得的得分是前一轮有效回合得分的两倍。 4."C"(一个操作,这不是一个回合的分数):表示您获得的最后一个有效回合的分数是无效的,应该被移除...原创 2019-04-11 14:34:09 · 159 阅读 · 0 评论