码迷,mamicode.com
首页 >  
搜索关键字:triplets    ( 225个结果
2020 BIT冬训-二分三分快速幂矩阵 G - Kolya and Tanya CodeForces - 584B
Problem Description Kolya loves putting gnomes at the circle table and giving them coins, and Tanya loves studying triplets of gnomes, sitting in the ...
分类:其他好文   时间:2021-02-18 13:33:21    阅读次数:0
nikkei2019_2_qual_e Non-triangular Triplets
nikkei2019_2_qual_e Non-triangular Triplets https://atcoder.jp/contests/nikkei2019-2-qual/tasks/nikkei2019_2_qual_e 给出 \(N\) 和 \(K\) . 判断对于这 $3N$ 个数 \ ...
分类:其他好文   时间:2020-06-25 09:34:22    阅读次数:52
[LeetCode] 1442. Count Triplets That Can Form Two Arrays of Equal XOR
Given an array of integers arr. We want to select three indices i, j and k where (0 <= i < j <= k < arr.length). Let's define a and b as follows: a = ...
分类:其他好文   时间:2020-05-12 09:30:41    阅读次数:59
nikkei2019_2_qual_e Non-triangular Triplets
nikkei2019_2_qual_e Non triangular Triplets https://atcoder.jp/contests/nikkei2019 2 qual/tasks/nikkei2019_2_qual_e 给出 $N$ 和 $K$ . 判断对于这 $3N$ 个数 $K,K+ ...
分类:其他好文   时间:2020-05-08 13:14:59    阅读次数:56
leetcode 15 3Sum
15. 3Sum题目描述Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which ...
分类:其他好文   时间:2020-04-23 22:50:28    阅读次数:86
D - RGB Triplets
Time Limit: 2 sec / Memory Limit: 1024 MB ps:我的vector需要加强,用错了。 Problem Statement We have a string SS of length N consisting of R, G, and B. Find the n ...
分类:其他好文   时间:2020-04-14 20:41:36    阅读次数:78
ABC162D RGB Triplets
RGB Triplets 题目大意:有一个长度为 $n$ 的字符串 $s$,只包含字符 `G B`,找出满足以下两个条件的三元组 $(i, j, k)$$(1 \le i 1. $s_i \ne s_j$ ,$s_i \ne s_k$,$s_j \ne s_k$。 1. $j i \ne k j$ ...
分类:其他好文   时间:2020-04-12 22:12:20    阅读次数:107
leetcode15 3Sum
1 """ 2 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which giv ...
分类:其他好文   时间:2020-02-20 13:06:07    阅读次数:65
15. 3Sum
1.题目描述 英文版: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which ...
分类:其他好文   时间:2020-02-17 00:47:28    阅读次数:51
3Sum
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s ...
分类:其他好文   时间:2020-02-05 17:58:35    阅读次数:87
225条   1 2 3 4 ... 23 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!