摘要:
中位数的运用 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 100010; 4 int n; 5 int a[N]; 6 int main() { 7 cin >> n; 8 for (int i = 0; i < 阅读全文
posted @ 2020-11-09 16:45
kyk333
阅读(72)
评论(0)
推荐(0)
摘要:
解法一:unordered_map 加 双关键字排序 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 200010; 4 int n, m; 5 int scientist[N]; //存储科学家明白的语言 6 st 阅读全文
posted @ 2020-11-09 16:41
kyk333
阅读(62)
评论(0)
推荐(0)
摘要:
这是交互式的题目,leetcode上很常见,只需要实现一个函数就好 1 // Forward declaration of compare API. 2 // bool compare(int a, int b); 3 // return bool means whether a is less t 阅读全文
posted @ 2020-11-09 14:35
kyk333
阅读(129)
评论(0)
推荐(0)
摘要:
1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 100010; 4 int n, m; 5 int a[N]; 6 double sum[N]; 7 bool check(double mid) { 8 for (i 阅读全文
posted @ 2020-11-09 14:31
kyk333
阅读(91)
评论(0)
推荐(0)

浙公网安备 33010602011771号