Description Input Output 输出到标准输出流中。 若干行,对于每个操作 1 和操作 5,输出一个数表示答案。 Sample Input Sample Input1 5 8 1 2 3 2 1 1 1 3 5 1 5 2 2 4 1 2 4 3 3 4 0 5 1 1 2 1 1 ...
分类:
其他好文 时间:
2020-01-18 11:03:59
阅读次数:
88
题目描述 Description Input Output Sample Input Sample Input1 4 10 3 6 2 9 Sample Input2 8 35 3 7 1 5 10 2 11 6 Sample Output Sample Output1 6 【样例 1 解释】 共有 ...
分类:
其他好文 时间:
2020-01-18 10:39:00
阅读次数:
115
题目: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Input: [1,3,5,4,7] Output: 2 Explanation: The t ...
分类:
编程语言 时间:
2020-01-17 19:04:48
阅读次数:
77
题目描述 Description Input Output Sample Input 3 1 2 1 3 Sample Output 2 Explanation 只有连通块为整棵树时或只有一个点时小筄会输,其余情况小筄会赢。 Data Constraint 题解 一个连通块先手必败,当且仅当1在直径 ...
分类:
其他好文 时间:
2020-01-17 10:03:03
阅读次数:
60
D. Robin Hood time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output We all know the impressive ...
分类:
其他好文 时间:
2020-01-17 00:09:00
阅读次数:
89
C. Recycling Bottles time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It was recycling da ...
分类:
其他好文 时间:
2020-01-16 18:56:42
阅读次数:
72
回文数。题意是判断一个数字是否是回文数。这个题跟第7题非常类似,几乎是一样的做法。例子, Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Explanation: From left to right, ...
分类:
其他好文 时间:
2020-01-16 14:55:14
阅读次数:
89
Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: n = 5 Output: [-7,-1,1,3,4] Explanatio ...
分类:
其他好文 时间:
2020-01-16 14:19:16
阅读次数:
90
题源 Input 125000000083559510 104166666578080702 Output 848357383 先不管香香鸡是什么,先来推个式子 我们记录钱可能情况钱的总数 答案就是钱的总数除以2^k f[1]=((f[0]*4)%mod+fastpow(2,i-1)%mod)%mo ...
分类:
其他好文 时间:
2020-01-15 19:08:34
阅读次数:
68
【题目】:题目链接 time limit per test 2 seconds memory limit per test 1024 megabytes input standard input output standard output Filled with optimism, Hyunuk ...
分类:
编程语言 时间:
2020-01-15 13:57:05
阅读次数:
77