C. Game with Chips time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Petya has a rectangula ...
分类:
其他好文 时间:
2020-04-11 13:14:22
阅读次数:
62
A. Dreamoon and Ranking Collection Example: input 5 6 2 3 1 1 5 7 10 1 100 100 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 57 80 60 40 20 output: 5 101 2 2 60 ...
分类:
其他好文 时间:
2020-04-06 09:56:27
阅读次数:
76
Problem : Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: `` Input: 218 Output: false c bool ...
分类:
其他好文 时间:
2020-04-06 00:03:04
阅读次数:
83
A. Dreamoon and Ranking Collection time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Dreamo ...
分类:
其他好文 时间:
2020-04-05 11:58:56
阅读次数:
136
K个不同整数的子数组。题意是给定一个正整数数组 A,如果 A 的某个子数组中不同整数的个数恰好为 K,则称 A 的这个连续、不一定独立的子数组为好子数组。返回A中好子数组的数量。例子, Example 1: Input: A = [1,2,1,2,3], K = 2 Output: 7 Explan ...
分类:
其他好文 时间:
2020-04-04 09:53:38
阅读次数:
53
利用NetBIOS快速探测内网 NetBIOS简介: NetBIOS,为网上基本输入输出系统(英语:Network Basic Input/Output System)的缩写,它提供了OSI模型中的会话层服务,让在不同计算机上运行的不同程序,可以在局域网中,互相连线,以及分享数据。严格来说,NetB ...
分类:
其他好文 时间:
2020-03-31 01:07:28
阅读次数:
300
B. Princesses and Princes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The King of Be ...
分类:
其他好文 时间:
2020-03-25 21:30:30
阅读次数:
104
最大数。题意是给一个整数数组,请将他们拼接成字符串,返回数字最大的字符串。例子, Example 1: Input: [10,2] Output: "210" Example 2: Input: [3,30,34,5,9] Output: "9534330" 思路是需要自己写一个comparator ...
分类:
其他好文 时间:
2020-03-24 09:19:56
阅读次数:
72
不同路径II。题意跟版本一一样,唯一的不同点在于路径上会有障碍物。依然是返回到底有多少不同的路径能从左上角走到右下角。例子, Example 1: Input: [ [0,0,0], [0,1,0], [0,0,0] ] Output: 2 Explanation: There is one obs ...
分类:
其他好文 时间:
2020-03-23 12:40:29
阅读次数:
85
最小路径和。题意是给一个二维矩阵,每个格子上都有一个非负整数。请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。例子, Example: Input: [ [1,3,1], [1,5,1], [4,2,1] ] Output: 7 Explanation: Because the pat ...
分类:
其他好文 时间:
2020-03-22 12:25:55
阅读次数:
67