码迷,mamicode.com
首页 >  
搜索关键字:two points    ( 13225个结果
477. Total Hamming Distance
Problem : The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find ...
分类:其他好文   时间:2020-04-13 12:22:42    阅读次数:64
Beautiful Sets of Points CF-268C
题意: 给出一个二维坐标系,求一个最大集合,使得集合中每两个点之间的距离不为整数。 思路: 先确定集合大小,因为点不能同行或者同列,所以集合大小最大为$min(n,m)+1$。 然后考虑对角线就好了,因为$(0,0)$不能选,所以考虑从$(0,min(n,m))$到$(min(n,m),0)$的点即 ...
分类:其他好文   时间:2020-04-13 12:05:59    阅读次数:54
LeetCode 1037. 有效的回旋镖
1037. 有效的回旋镖 难度简单 回旋镖定义为一组三个点,这些点各不相同且不在一条直线上。 给出平面上三个点组成的列表,判断这些点是否可以构成回旋镖。 示例 1: 输入:[[1,1],[2,3],[3,2]] 输出:true 示例 2: 输入:[[1,1],[2,2],[3,3]] 输出:fals ...
分类:其他好文   时间:2020-04-12 14:43:55    阅读次数:52
413. Arithmetic Slices
Problem : A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elemen ...
分类:其他好文   时间:2020-04-12 13:58:48    阅读次数:67
leetcode 21 合并两个有序链表
地址:https://leetcode cn.com/problems/merge two sorted lists/ 大意:将两个升序链表合并为一个新的升序链表并返回。 ` ` ...
分类:其他好文   时间:2020-04-12 08:04:53    阅读次数:74
leetcode 2 两数相加
地址:https://leetcode cn.com/problems/add two numbers/submissions/ 大意:给定两个链表,返回一个由这两个链表相加而得到的新链表 ` ` ...
分类:其他好文   时间:2020-04-12 07:53:08    阅读次数:55
Codeforces Round #598 (Div. 3) F Equalizing Two Strings(构造题)
链接: 题意:给你两个字符串,可以对任意长度为len(每次操作需要在每个字符串都选择出长度为len的一个区间)的字符串进行翻转操作,问两个字符串能否变成一样的; 首先对一个区间进行翻转,可以看作是两个相邻的字母进行交换,一直交换,直到翻转成功,比如; abcde -> abced -> abecd ...
分类:其他好文   时间:2020-04-12 07:52:04    阅读次数:65
415. Add Strings
Problem : Given two non negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 1. The length of both num1 and n ...
分类:其他好文   时间:2020-04-11 23:42:02    阅读次数:75
HDoj 2052 Picture
Problem Description Give you the width and height of the rectangle,darw it. Input Input contains a number of test cases.For each case ,there are two n ...
分类:其他好文   时间:2020-04-11 23:29:43    阅读次数:97
HDoj 2051 Bitset
Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on b ...
分类:其他好文   时间:2020-04-10 00:29:53    阅读次数:80
13225条   上一页 1 ... 39 40 41 42 43 ... 1323 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!