码迷,mamicode.com
首页 >  
搜索关键字:guess numbers    ( 8263个结果
习题:Guess the Root(高斯消元)
题目 传送门 思路 阿这 基本上就是暴力用高斯消元来搞就行了 因为$mod$很小,所以可以直接枚举$x$ 代码 #include<iostream> using namespace std; const int mod=1e6+3; int n=11; long long a[15][15]; lo ...
分类:其他好文   时间:2020-07-20 00:01:31    阅读次数:98
1060. Missing Element in Sorted Array
package LeetCode_1060 /** * 1060. Missing Element in Sorted Array * (Prime) * Given a sorted array A of unique numbers, find the K-th missing number s ...
分类:其他好文   时间:2020-07-19 00:49:27    阅读次数:93
1019 数字黑洞 (20分)/1069 The Black Hole of Numbers (20分)
#include<iostream> #include<algorithm> #include<cstdio> using namespace std; bool cmp(int a,int b){ return a>b; } void to_array(int n,int num []) { fo ...
分类:其他好文   时间:2020-07-18 11:39:12    阅读次数:78
leetcode148two-sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:其他好文   时间:2020-07-17 13:33:50    阅读次数:46
【leetcode_easy_array】1380. Lucky Numbers in a Matrix
problem 1380. Lucky Numbers in a Matrix 在矩阵中,如果一个数既是它所在行的最小值,又是它所在列的最大值,则称这个数为幸运数。找到矩阵中所有的幸运数。 Constraints All elements in the matrix are distinct. so ...
分类:其他好文   时间:2020-07-16 00:15:33    阅读次数:72
【HDU3709】平衡数Balanced Number
Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit ...
分类:其他好文   时间:2020-07-16 00:05:52    阅读次数:79
180. 连续出现的数字
地址:https://leetcode-cn.com/problems/consecutive-numbers/ ## 编写一个 SQL 查询,查找所有至少连续出现三次的数字。 示例: 编写一个 SQL 查询,查找所有至少连续出现三次的数字。 + + + | Id | Num | + + + | 1 ...
分类:其他好文   时间:2020-07-16 00:03:52    阅读次数:59
1344. Angle Between Hands of a Clock (M)
Angle Between Hands of a Clock (M) 题目 Given two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minut ...
分类:其他好文   时间:2020-07-15 10:47:17    阅读次数:102
leetcode260 Single Number III
260 Single Number III Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. ...
分类:其他好文   时间:2020-07-14 21:54:31    阅读次数:104
【题解】Street Numbers [UVA138]
【题解】Street Numbers [UVA138] 传送门:\(\text{Street Numbers [UVA138]}\) 【题目描述】 求满足 \(n<m\) 且 \(\sum_{i=1}^{n-1}i=\sum_{i=n+1}^{m}i\) 的正整数对 \(n,m\) 。从小到大输出前 ...
分类:其他好文   时间:2020-07-12 19:05:09    阅读次数:54
8263条   上一页 1 ... 10 11 12 13 14 ... 827 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!