Loading

摘要: 给定一位研究者论文被引用次数的数组(被引用次数是非负整数)。编写一个方法,计算出研究者的 h 指数。 h 指数的定义:h 代表“高引用次数”(high citations),一名科研人员的 h 指数是指他(她)的 (N 篇论文中)总共有 h 篇论文分别被引用了至少 h 次。且其余的 N - h 篇论 阅读全文
posted @ 2021-07-11 23:15 脂环 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/10662/A 来源:牛客网 We call a matrix "01 Square" if and only if it's a N×NN×N matrix and its elements are all 00 or 阅读全文
posted @ 2021-07-11 22:35 脂环 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 题目描述 有一个球形空间产生器能够在 nn 维空间中产生一个坚硬的球体。现在,你被困在了这个 nn 维球体中,你只知道球面上 n+1n+1 个点的坐标,你需要以最快的速度确定这个 nn 维球体的球心坐标,以便于摧毁这个球形空间产生器。 输入格式 第一行是一个整数 nn (1<=N=10)(1<=N= 阅读全文
posted @ 2021-07-11 16:45 脂环 阅读(54) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; int n; int x[200005], y[200005], xr[200005]; int main() { int t; cin >> t; while(t--) { cin >> n; for(in 阅读全文
posted @ 2021-07-11 15:02 脂环 阅读(64) 评论(0) 推荐(0) 编辑
摘要: On a strip of land of length 𝑛n there are 𝑘k air conditioners: the 𝑖i-th air conditioner is placed in cell 𝑎𝑖ai (1≤𝑎𝑖≤𝑛1≤ai≤n). Two or more ai 阅读全文
posted @ 2021-07-11 11:51 脂环 阅读(144) 评论(0) 推荐(0) 编辑