cos 桶相册,终于!!终于来了!!,idea 来自 [兰州小红鸡 - 给 hexo 静态博客添加动态相册功能], 功能虽好,但是还是先友情提示! 开放 API 是一个很危险的操作,意味着你的 cos 桶里面的所有资源包括目录结构都暴露的整个世界中,所以建议不要放一些比较私密的照片,保护自己的隐私,提防不良用心之人。下面就开始吧!
fatal: Unable to create '/xxx/xx/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
Dreamoon wants to climb up a stair of n steps. He can climb 1 or 2 steps at each move. Dreamoon wants the number of moves to be a multiple of an integer m.
What is the minimal number of moves making him climb to the top of the stairs that satisfies his condition?
Input
The single line contains two space separated integers n, m (0 < n ≤ 10000, 1 < m ≤ 10).
Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,000) on the same number line. Farmer John has two modes of transportation: walking and teleporting.
Walking: FJ can move from any point X to the points X",“1 or X + 1 in a single minute
Teleporting: FJ can move from any point X to the point 2 × X in a single minute.
If the cow, unaware of its pursuit, does not move at all, how long does it take for Farmer John to retrieve it?
Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 40713 Accepted: 17088 Special Judge
Description
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there is a corresponding m containing no more than 100 decimal digits.
翻译 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 41406 Accepted Submission(s): 23977
Problem Description
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides the land into numerous square plots. It then analyzes each plot separately, using sensing equipment to determine whether or not the plot contains oil. A plot containing oil is called a pocket. If two pockets are adjacent, then they are part of the same oil deposit. Oil deposits can be quite large and may contain numerous pockets. Your job is to determine how many different oil deposits are contained in a grid.
假设有一个能装入总体积为 T 的背包和 n 件体积分别为 W1,W2,···,Wn 的物品,能否从 n 件物品中挑选若干件恰好装满背包,即使 W1+W2+···+Wn=T,要求找出所有满足上述条件的解。例如:当 T=10,共 6 件物品,物品的体积为{1,2,3,4,5,8},那么可找到下列 4 组解:(1,2,3,4)、(1,4,5)、(2,3,5)、(2、8)。
The h-index of an author is the largest h where he has at least h papers with citations not less than h. Bobo has no papers and he is going to publish some subsequently. If he works on a paper for x hours, the paper will get (a·x) citations, where a is a known constant. It’s clear that x should be a positive integer. There is also a trick – one can cite his own papers published earlier.
Given Bobo has n working hours, find the maximum h-index of him.
The h-index of an author is the largest h where he has at least h papers with citations not less than h. Bobo has published many papers. Given a0,a1,a2,…,an which means Bobo has published ai papers with itations exactly i, find the h-index of Bobo.
Commit messages are short descriptions of changes to a repository. We should follow certain standards to effectively describe changes, such as the Conventional Commits specification based on the Angular convention that is most used on GitHub, or each development team can simplify and formulate their own commit specification. This is not only conducive to the automatic generation of Changelog in the later stage, but more importantly, when a bug occurs, the entire warehouse can be quickly checked, the problem point can be accurately located, and the version can be reverted.
Getting Things Done (GTD) is a personal productivity system developed by David Allen and published in a book of the same name. GTD is described as a time management system. Allen states “there is an inverse relationship between things on your mind and those things getting done”.
<CodeDiff:old-string="form.oldString":new-string="form.newString":language="form.language":diff-style="form.diffStyle"><template#stat="{ stat }"><spanclass="diff-stat-added">+{{stat.additionsNum}}增</span><spanclass="diff-stat-deleted">-{{stat.deletionsNum}}减</span></template></CodeDiff>
The h-index of an author is the largest h where he has at least h papers with citations not less than h. Bobo has published many papers. Given a0,a1,a2,…,an which means Bobo has published ai papers with itations exactly i, find the h-index of Bobo.
1.1 Input
The input consists of several test cases and is terminated by end-of-file. The first line of each test case contains an integer n. The second line contains (n+1) integers a0,a1,…,an.
1.2 Output
For each test case, print an integer which denotes the result.
1.3 Constraint
• 1≤ n ≤2·105
• 0≤ ai ≤109
• The sum of n does not exceed 250,000.
1.4 Sample Input
1
1 2
2
1 2 3
3
0 0 0 0
1.5 Sample Output
1
2
0
题意:给定被引用次数为 0n 的论文分别有几张,找到最大的 h,满足被引用次数大于等于 h 的论文至少有 h 张 思路:在区间 [0,n] 内二分答案;或直接从 n0 遍历找到第一个满足条件的 h
================================================
FILE: posts/a-easy/index.md
================================================
# A.Easy H-Index
## A. Easy h-index
The h-index of an author is the largest h where he has at least h papers with citations not less than h.
Bobo has published many papers. Given a0,a1,a2,...,an which means Bobo has published ai papers with
itations exactly i, find the h-index of Bobo.
### Input
The input consists of several test cases and is terminated by end-of-file.
The first line of each test case contains an integer n. The second line contains (n+1) integers a0,a1,...,an.
### Output
For each test case, print an integer which denotes the result.
### Constraint
• 1≤ n ≤2·105
• 0≤ ai ≤109
• The sum of n does not exceed 250,000.
### Sample Input
1
1 2
2
1 2 3
3
0 0 0 0
### Sample Output
1
2
0
题意:给定被引用次数为 0~n 的论文分别有几张,找到最大的 h,满足被引用次数大于等于 h 的论文至少有 h 张
思路:在区间 [0,n] 内二分答案;或直接从 n~0 遍历找到第一个满足条件的 h
后 AC 代码
```c
#include "bits/stdc++.h"
using namespace std;
int main(){
int a[200005];
int n;
int i;
while(cin>>n){
for(i=0;i<=n;i++)
cin>>a[i];
int sum=a[n];
for(i=n;i>=0;){
if(sum>=i){
cout< 作者: [Lruihao](https://github.com/Lruihao)
> URL: https://lruihao.cn/posts/a-easy/
================================================
FILE: posts/adb-for-mac/index.html
================================================
Mac 配置 ADB | 菠菜眾長
graph LR
A[项目背景]
B[取得的成绩]
C((漂亮数据\n或最终效果))
E[贡献]
F[困难与解决]
G[成长]
H[主体可以是个人一可以是团队]
I[总结]
J[感谢]
C-.->B
A---B---D---I---J
subgraph D["项目详情(根据实际情况调整)"]
direction BT
E & F & G---H
end
graph LR
A[项目背景]
B[取得的成绩]
C((漂亮数据\n或最终效果))
E[贡献]
F[困难与解决]
G[成长]
H[主体可以是个人一可以是团队]
I[总结]
J[感谢]
C-.->B
A---B---D---I---J
subgraph D["项目详情(根据实际情况调整)"]
direction BT
E & F & G---H
end
graph LR
A[项目背景]
B[取得的成绩]
C((漂亮数据\n或最终效果))
E[贡献]
F[困难与解决]
G[成长]
H[主体可以是个人一可以是团队]
I[总结]
J[感谢]
C-.->B
A---B---D---I---J
subgraph D["项目详情(根据实际情况调整)"]
direction BT
E & F & G---H
end
graph LR
A[项目背景]
B[取得的成绩]
C((漂亮数据\n或最终效果))
E[贡献]
F[困难与解决]
G[成长]
H[主体可以是个人一可以是团队]
I[总结]
J[感谢]
C-.->B
A---B---D---I---J
subgraph D["项目详情(根据实际情况调整)"]
direction BT
E & F & G---H
end