#include<iostream>
using namespace std;
int main()
{
int hash, opp, i, j, c = 0;
//cout<<"enter hasmat army number and opponent number\n";
while(cin>>hash>>opp)
{
cout<<opp-hash<<endl;
}
}
此问题的时间限制: 3.000秒如何验证和测试此条件?
我正在将这个提交
我试图看看库伯内特斯吊舱占用了多少内存和CPU。为此,我运行了以下命令:
kubectl top pod podname --namespace=default
我得到了以下错误:
W0205 15:14:47.248366 2767 top_pod.go:190] Metrics not available for pod default/podname, age: 190h57m1.248339485s
error: Metrics not available for pod default/podname, age: 190h57m1.248339485s
我该如何处理这个错误
我在Linux上的Docker容器中运行了一个进程,内存限制为2GByte。(容器使用docker run --memory=2g启动。)
下面是top在运行了一段时间后对它的看法。
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9016 root 20 0 7342132 4.652g 4.224g S 100.0 7.4 18828:28 blah
下面是docker stats的输出:
CONTAINER CPU %