随笔分类 - 水题+思维题
摘要:If we represent a date in the format YYYY-MM-DD (for example, 2017-04-09), do you know how many 9s will appear in all the dates between Y1-M1-D1 and Y
阅读全文
摘要:A positive integer number n is written on a blackboard. It consists of not more than 105 digits. You have to transform it into a beautiful number by e
阅读全文
摘要:Oleg the client and Igor the analyst are good friends. However, sometimes they argue over little things. Recently, they started a new company, but the
阅读全文
摘要:frog has a piece of paper divided into n rows and m columns. Today, she would like to draw a rectangle whose perimeter is not greater than k. There ar
阅读全文
摘要:C. Annoying Present time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Annoying Present
阅读全文
摘要:B. Minimum Ternary String time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a
阅读全文
摘要:D. Equalize the Remainders time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given
阅读全文
摘要:Recently, you bought a brand new smart lamp with programming features. At first, you set up a schedule to the lamp. Every day it will turn power on at
阅读全文
摘要:C. Covered Points Count time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given nn
阅读全文
摘要:You are given a multiset of n integers. You should select exactly k of them in a such way that the difference between any two of them is divisible by
阅读全文
摘要:C. A Mist of Florescence time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. A Mist of Flo
阅读全文
摘要:链接:https://www.nowcoder.com/acm/contest/84/B来源:牛客网 街上有n棵树,标号为1...n,第i棵树的高度为ai。 定义这n棵树是漂亮的,当且仅当 1. 对于所有的i,ai=an-i+1; 2. 对于1 <= i < n / 2 (不是整除),ai + 1=
阅读全文
摘要:Problem Description Ruins is driving a car to participating in a programming contest. As on a very tight schedule, he will drive the car without any s
阅读全文
摘要:John is going on a fishing trip. He has h hours available (1 <= h <= 16), and there are n lakes in the area (2 <= n <= 25) all reachable along a singl
阅读全文
摘要:Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea
阅读全文
摘要:A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral n
阅读全文
摘要:Farmer John has received a noise complaint from his neighbor, Farmer Bob, stating that his cows are making too much noise. FJ's N cows (1 <= N <= 10,0
阅读全文
摘要:ZS the Coder loves to read the dictionary. He thinks that a word is nice if there exists asubstring (contiguous segment of letters) of it of length 26
阅读全文
摘要:As a fan of Doudizhu, WYJ likes collecting playing cards very much. One day, MJF takes a stack of cards and talks to him: let's play a game and if you
阅读全文
摘要:Deep neural networks (DNN) have shown significant improvements in several application domains including computer vision and speech recognition. In com
阅读全文

浙公网安备 33010602011771号