码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
LeetCode 632. Smallest Range Covering Elements from K Lists(632. 最小区间)
题目地址:632. 最小区间 You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k li ...
分类:其他好文   时间:2020-08-26 17:10:59    阅读次数:46
[LeetCode] 956. Tallest Billboard 最高的广告牌
You are installing a billboard and want it to have the largest height. The billboard will have two steel supports, one on each side. Each steel suppor ...
分类:其他好文   时间:2020-08-19 19:53:32    阅读次数:69
A - A Flipping Game
这道题判断如何选择区间进行01变换让数列中的1个数最多,可以用暴力做法来做,每选择一个区间求出一个值,最后找到一个最大值。 Iahub got bored, so he invented a game to be played on paper. He writes n integers a 1,? ...
分类:其他好文   时间:2020-08-08 09:24:07    阅读次数:84
HDU6812 Kindergarten Physics(假物理题真思维)
Zhang3 a participant of IPhO (Immortal Physics Olympiad). The $0^\mathrm$ problem in the contest is as follows. There are two balls that weigh \(a\) k ...
分类:其他好文   时间:2020-07-30 22:15:00    阅读次数:110
POJ - 3468 A Simple Problem with Integers
题目链接 线段树区间修改,每个数均加上一个值。区间查询和。 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<string> #include<cmath> using namespa ...
分类:其他好文   时间:2020-07-29 21:42:43    阅读次数:65
1020 Tree Traversals (25分)
题干 Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ...
分类:其他好文   时间:2020-07-29 21:34:20    阅读次数:77
599. Minimum Index Sum of Two Lists
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You need to h ...
分类:其他好文   时间:2020-07-29 15:41:09    阅读次数:86
判断一个整数是否是2的幂
power_two.cpp内容如下: #include <iostream> using namespace std; bool is_power_of_two(unsigned int n) { return (n && !(n & (n-1))); } int main(int argc, ch ...
分类:其他好文   时间:2020-07-29 15:07:26    阅读次数:62
按需取余
CF 1374A. Required Remainder You are given three integers x,y and n. Your task is to find the maximum integer k such that 0≤k≤n that kmodx=y, where mo ...
分类:其他好文   时间:2020-07-29 10:29:20    阅读次数:63
712. Minimum ASCII Delete Sum for Two Strings
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Output: ...
分类:其他好文   时间:2020-07-28 14:45:21    阅读次数:310
17573条   上一页 1 ... 13 14 15 16 17 ... 1758 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!