也可以使用端口号来检查。 # lsof -i tcp:22 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 1208 root 3u IPv4 20919 0t0 TCP *:ssh (LISTEN) sshd 1208 root 4u IPv6 20921 0t0 TCP *:ssh (LISTEN) sshd 11592 root 3u IPv4 27744 0t0 TCP vps.2daygeek.com:ssh->103.5.134.167:49...
using namespace std; const int maxn=53; int mount; stack<string> s[maxn]; void stackInput(); void moveCard(); void finalOutput(); bool isMatch(string s1,string s2); int main() { string str; while(cin >> str,str!="#") { s[0].push(str); stackInput(); moveCard(); final...
const int maxn=100+10; int m,n; int count; int visit[maxn][maxn]; char map[maxn][maxn]; void dfs(int x,int y); int dir[8][2]={{-1,-1},{-1,0},{-1,1},{0,1},{1,1},{1,0},{1,-1},{0,-1}}; int main() { while(scanf("%d%d",&m,&n)==2) { if(m...
int visit2[maxn][maxn]; int total[maxn]; int amount=0; int m,n,flag; int count1; int dir[4][2]={{0,-1},{-1,0},{0,1},{1,0}}; void dfs(int x,int y); void dfs2(int x,int y); int cmp(const void* aa,const void* bb) { int* a=(int*)aa; int* b=(int*...