码迷,mamicode.com
首页 >  
搜索关键字:two sum    ( 31846个结果
Hanover Square 追忆似水年华
Hanover Square 追忆似水年华 Can it really be sixty-two years ago that I first saw you?我们初次相遇,难道真的是六十二年前吗? It is truly a lifetime, I know. But as I gaze into ...
分类:其他好文   时间:2021-01-19 12:01:22    阅读次数:0
ECNU 1000 A + B Problem
ECNU 1000 A + B Problem 链接 https://acm.ecnu.edu.cn/problem/1000 题目 单点时限: 1.0 sec 内存限制: 256 MB 输入格式 Two integer a,b(<=10) . Process to end of file. 输出格 ...
分类:其他好文   时间:2021-01-19 11:49:06    阅读次数:0
1009 Product of Polynomials (25分)
This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:其他好文   时间:2021-01-16 12:09:45    阅读次数:0
kafka初步使用
生产者 KafkaExtendProducer.send("topic","key","value"); 消费者 @Slf4j @RequiredArgsConstructor @Component public class ConsumerThread implements Runnable { ...
分类:其他好文   时间:2021-01-15 11:46:10    阅读次数:0
LeetCode938. 二叉搜索树的范围和
题目 1 class Solution { 2 public: 3 int sum = 0; 4 int rangeSumBST(TreeNode* root, int low, int high) { 5 dfs(root,low,high); 6 return sum; 7 } 8 void d ...
分类:其他好文   时间:2021-01-14 11:04:51    阅读次数:0
0088. Merge Sorted Array (E)
Merge Sorted Array (E) 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements in ...
分类:其他好文   时间:2021-01-13 11:10:22    阅读次数:0
[Leetcode]1. Two Sum
题目描述 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that eac ...
分类:其他好文   时间:2021-01-13 11:07:09    阅读次数:0
P2486 [SDOI2011]染色
###链接 调了好久。。。 我平常写平衡树时 \(push\) \(tag\) 的操作都习惯把 \(rev\) 数组清零,但在 \(LCT\) 中不行,因为 \(rev\) 储存了节点间的父子关系,直接清零会改变树的结构。 \(\frak{code}\) #include<bits/stdc++.h ...
分类:其他好文   时间:2021-01-12 11:26:50    阅读次数:0
每日一题——228. 汇总区间
228. 汇总区间 分类: 数组 简单题,但是边界条件挺细节,特别是c++,还要额外注意int的边界,不然 nums[i] == nums[i-1] + 1会overflow class Solution { public: vector<string> summaryRanges(vector<i ...
分类:其他好文   时间:2021-01-12 11:07:54    阅读次数:0
CF1043E Solution
题目链接 题解 可以发现枚举两个在一组里的数会TLE,加之只有两个参数限制与数据范围,容易想到排序算法。 计算第$i$个人的分数和需要知道他在每一组里是$x$还是$y$,因此排序需要满足$a_i$前的数与$a_i$组合时为$x$更优,而$a_i$后的数与$a_i$组合时为$y$更优(反之亦可),也就 ...
分类:其他好文   时间:2021-01-12 11:02:49    阅读次数:0
31846条   上一页 1 ... 32 33 34 35 36 ... 3185 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!