Loading

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 74 下一页
摘要: 直接装好mysql后在终端输入mysql -u root -p后会报错command not found,原因就是还没有添加环境变量。 cd ~ open .zshrc 添加: PATH="$PATH":/usr/local/mysql/bin source .zshrc 阅读全文
posted @ 2021-07-13 21:53 脂环 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; int n, k; void process() { int r; cin >> r; if(r == 1) return; for(int i = 1; i < n; i++) { cout << (i ^ 阅读全文
posted @ 2021-07-13 15:58 脂环 阅读(35) 评论(0) 推荐(0) 编辑
摘要: AquaMoon had 𝑛n strings of length 𝑚m each. 𝑛n is an odd number. When AquaMoon was gone, Cirno tried to pair these 𝑛n strings together. After makin 阅读全文
posted @ 2021-07-13 12:03 脂环 阅读(113) 评论(1) 推荐(1) 编辑
摘要: AquaMoon has 𝑛n friends. They stand in a row from left to right, and the 𝑖i-th friend from the left wears a T-shirt with a number 𝑎𝑖ai written on 阅读全文
posted @ 2021-07-13 12:00 脂环 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Cirno gave AquaMoon a chessboard of size 1×𝑛1×n. Its cells are numbered with integers from 11 to 𝑛n from left to right. In the beginning, some of th 阅读全文
posted @ 2021-07-13 11:56 脂环 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 给定一位研究者论文被引用次数的数组(被引用次数是非负整数)。编写一个方法,计算出研究者的 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) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 74 下一页