摘要: [nowcoder] 16417 奶酪 题目描述 现有一块大奶酪,它的高度为 h,它的长度和宽度我们可以认为是无限大的,奶酪中间有许多半径相同的球形空洞。我们可以在这块奶酪中建立空间坐标系, 在坐标系中,奶酪的下表面为 z = 0,奶酪的上表面为 z = h。 现在, 奶酪的下表面有一只小老鼠 Je 阅读全文
posted @ 2019-06-18 11:04 caomp 阅读(204) 评论(0) 推荐(0)
摘要: [nowcoder] 21302 被3整除的子序列 题目描述 给你一个长度为50的数字串,问你有多少个子序列构成的数字可以被3整除 答案对1e9+7取模 输入描述: 输入一个字符串,由数字构成,长度小于等于50 输出描述: 输出一个整数 示例1 示例2 示例3 示例4 示例5 备注: n为长度 子任 阅读全文
posted @ 2019-06-17 21:24 caomp 阅读(287) 评论(0) 推荐(0)
摘要: [LeetCode]21 Merge Two Sorted Lists 合并两个有序链表 Description Merge two sorted linked lists and return it as a new list. The new list should be made by spl 阅读全文
posted @ 2019-03-30 00:18 caomp 阅读(116) 评论(0) 推荐(0)
摘要: [LeetCode]20 Valid Parentheses 有效的括号 Description Given a string containing just the characters , , , , and , determine if the input string is valid. A 阅读全文
posted @ 2019-03-29 23:59 caomp 阅读(112) 评论(0) 推荐(0)
摘要: [LeetCode]2 Longest Palindromic Substring 最长回文子串 Description Given a string S , find the longest palindromic substring in S . You may assume that the 阅读全文
posted @ 2019-03-28 09:28 caomp 阅读(108) 评论(0) 推荐(0)
摘要: CodeForces1077C Good Array Description Let's call an array good if there is an element in the array that equals to the sum of all other elements. For 阅读全文
posted @ 2018-11-17 16:51 caomp 阅读(504) 评论(0) 推荐(0)
摘要: CodeForces1077B Disturbed People Description There is a house with n flats situated on the main street of Berlatov. Vova is watching this house every 阅读全文
posted @ 2018-11-17 16:39 caomp 阅读(432) 评论(0) 推荐(0)
摘要: UVA 514 Rails Description There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. 阅读全文
posted @ 2018-11-17 15:29 caomp 阅读(310) 评论(0) 推荐(0)
摘要: Shape of HDU Problem Description 话说上回讲到海东集团推选老总的事情,最终的结果是XHD以微弱优势当选,从此以后,“徐队”的称呼逐渐被“徐总”所取代,海东集团(HDU)也算是名副其实了。 创业是需要地盘的,HDU向钱江肉丝高新技术开发区申请一块用地,很快得到了批复,据 阅读全文
posted @ 2018-11-03 14:34 caomp 阅读(166) 评论(0) 推荐(0)
摘要: LaTeX公式基本语法 公式显示 我们用 来显示行内公式,单独用 来显示行间公式,具体的显示效果如下。 这是行内公式:$f(x) = \sum_{i=0}^{N}\int_{a} ^{b} g(t,i) \text{ d}t$ 这是行间公式: $$f(x) = \sum_{i=0}^{N}\int_ 阅读全文
posted @ 2018-10-09 15:39 caomp 阅读(6993) 评论(0) 推荐(1)