- 博客(5)
- 收藏
- 关注
原创 有效的括号
题目描述 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。 有效字符串需满足: 左括号必须用相同类型的右括号闭合。 左括号必须以正确的顺序闭合。 注意空字符串可被认为是有效字符串。 输入 多组数据 每组是一个由'(',')','{','}','[',']' 组成的括号序列 每组字符串长度不超过50。 输出 如果有效输出true, 否则...
2018-07-05 11:22:03 168
原创 Adding Reversed Numbers
题目描述The Antique Comedians of Malidinesia prefer comedies to tragedies. Unfortunately, most of the ancient plays are tragedies. Therefore the dramatic advisor of ACM has decided to transfigure some tra...
2018-06-08 12:40:09 441
原创 Error Correction
有些量的初始化要放在循环中题目描述A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a 4 x 4 matrix which has the parity...
2018-06-06 17:43:51 2746
原创 Contesting Decision
题目描述Judging a programming contest is hard work, with demanding contestants, tedious decisions,and monotonous work. Not to mention the nutritional problems of spending 12 hours with only donuts, pizza,...
2018-06-06 15:05:54 214
原创 Calendar
题目描述A calendar is a system for measuring time, from hours and minutes, to months and days, and finally to years and centuries. The terms of hour, day, month, year and century are all units of time mea...
2018-06-06 12:28:25 202
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人