报数序列是指一个整照其中的整数的顺序进数序列,按行报数,得到下一个数。其前五项如下: 1 被读作 "one 1" ("一个一") , 即 11。11 被读作 "two 1s" ("两个一"), 即 21。21 被读作 "one 2", "one 1" ("一个二" , "一个一") , 即 1211 ...
分类:
其他好文 时间:
2018-10-04 10:29:34
阅读次数:
133
题意与分析 一道非常坑的水题。分析醒了补。 代码 cpp include define MP make_pair define PB emplace_back define fi first define se second define ZERO(x) memset((x), 0, sizeof( ...
分类:
其他好文 时间:
2018-10-03 22:26:47
阅读次数:
143
C.1038C Gambling C. Gambling time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Two players ...
分类:
其他好文 时间:
2018-10-02 22:11:26
阅读次数:
170
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, a ...
分类:
其他好文 时间:
2018-10-02 17:59:09
阅读次数:
185
这题 Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after div ...
分类:
其他好文 时间:
2018-10-02 17:48:28
阅读次数:
132
This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns. The input consists of seve ...
分类:
其他好文 时间:
2018-10-02 17:46:55
阅读次数:
190
The n queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return the ...
分类:
其他好文 时间:
2018-10-02 17:44:54
阅读次数:
171
Machine Learning The First Column | The Second Column : :|: : Machine Learning 1 | "从机器学习入手" Machine Learning 2 | "机器学习很有趣!" Machine Learning 3 | "机器学 ...
分类:
系统相关 时间:
2018-10-02 17:41:21
阅读次数:
249
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to the definition of LCA on Wikipedia: ...
分类:
其他好文 时间:
2018-10-02 17:40:02
阅读次数:
149