04 2021 档案

摘要:问题描述 我们把一个数称为有趣的,当且仅当: 1. 它的数字只包含0, 1, 2, 3,且这四个数字都出现过至少一次。 2. 所有的0都出现在所有的1之前,而所有的2都出现在所有的3之前。 3. 最高位数字不为0。 因此,符合我们定义的最小的有趣的数是2013。除此以外,4位的有趣的数还有两个:20 阅读全文
posted @ 2021-04-05 00:27 许崇智 阅读(108) 评论(0) 推荐(0)
摘要:Problem Statement There is an image with a height of H pixels and a width of W pixels. Each of the pixels is represented by either . or *. The charact 阅读全文
posted @ 2021-04-03 19:19 许崇智 阅读(95) 评论(0) 推荐(0)
摘要:Problem Statement There are N boxes arranged in a row. Initially, the i-th box from the left contains ai candies. Snuke can perform the following oper 阅读全文
posted @ 2021-04-03 18:56 许崇智 阅读(85) 评论(0) 推荐(0)
摘要:Problem Statement You are given nonnegative integers a and b (a≤b), and a positive integer x. Among the integers between a and b, inclusive, how many 阅读全文
posted @ 2021-04-03 13:47 许崇智 阅读(137) 评论(0) 推荐(0)
摘要:Problem Statement You are given a string S consisting of digits between 1 and 9, inclusive. You can insert the letter + into some of the positions (po 阅读全文
posted @ 2021-04-02 23:40 许崇智 阅读(189) 评论(0) 推荐(0)
摘要:Problem Statement Alice, Bob and Charlie are playing Card Game for Three, as below: At first, each of the three players has a deck consisting of some 阅读全文
posted @ 2021-04-02 22:49 许崇智 阅读(244) 评论(0) 推荐(0)
摘要:今天做了AtCoder Beginner Contest 044的C题: Problem Statement Tak has N cards. On the i-th (1≤i≤N) card is written an integer xi. He is selecting one or more 阅读全文
posted @ 2021-04-02 22:16 许崇智 阅读(144) 评论(0) 推荐(0)