欢迎来到PJCK的博客

摘要: You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' 阅读全文
posted @ 2019-03-22 21:23 PJCK 阅读(172) 评论(0) 推荐(0) 编辑
摘要: You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Each round's operation is permane 阅读全文
posted @ 2019-03-22 20:07 PJCK 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目描述 假设一个表达式有英文字母(小写)、运算符(+,—,*,/)和左右小(圆)括号构成,以“@”作为表达式的结束符。请编写一个程序检查表达式中的左右圆括号是否匹配,若匹配,则返回“YES”;否则返回“NO”。表达式长度小于255,左圆括号少于20个。 输入输出格式 输入格式: 一行:表达式 输出 阅读全文
posted @ 2019-03-22 16:40 PJCK 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 题目描述 请你编一程序实现两种不同进制之间的数据转换。 输入输出格式 输入格式: 共三行,第一行是一个正整数,表示需要转换的数的进制n(2≤n≤16),第二行是一个n进制数,若n>10n>10则用大写字母A−F表示数码10−15,并且该nn进制数对应的十进制的值不超过1000000000,第三行也是 阅读全文
posted @ 2019-03-22 15:48 PJCK 阅读(205) 评论(0) 推荐(0) 编辑