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 https://atcoder.jp/contests/nikkei2019-2-qual/tasks/nikkei2019_2_qual_e 给出 \(N\) 和 \(K\) . 判断对于这 $3N$ 个数 \ ...
分类:
其他好文 时间:
2020-06-25 09:34:22
阅读次数:
52
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 https://atcoder.jp/contests/nikkei2019 2 qual/tasks/nikkei2019_2_qual_e 给出 $N$ 和 $K$ . 判断对于这 $3N$ 个数 $K,K+ ...
分类:
其他好文 时间:
2020-05-08 13:14:59
阅读次数:
56
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
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
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
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
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
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