摘要:
1 切换用户 su - username2 增加用户 useradd usrname3为新增加的用户设置密码 passwd usrname4etc 下面存放配置文件5显示一个文档 cat txtname6bin 目录里面一般放的都是一切基本的程序7uid (用户id) gid(组id)8 用户和组主... 阅读全文
摘要:
#include #include "math.h"#include#define PI 3.1415926#define NUMBER 8#define RADIUS400using namespace std;//=========================================... 阅读全文
摘要:
//时间轮转最多 轮转#include#includeusing namespace std;struct node{ friend bool operatorn2.t2)return false;}return true; } int t1;//作业的到达时间 int t2;//作业的运行时间in... 阅读全文
摘要:
//时间轮转最多 轮转#include#includeusing namespace std;struct node{ friend bool operatorn2.t2)return false;}return true; } int t1;//作业的到达时间 int t2;//作业的运行时间in... 阅读全文
摘要:
#include#includeusing namespace std;struct Node{int x,y;};struct Edge{Node s,e;}E[11];int map[111][111];int v[111][111];int maxx,maxy,minx,miny;int n;... 阅读全文
摘要:
#include#includeusing namespace std;struct Node{int x,y;};struct Edge{Node s,e;}E[11];int map[111][111];int v[111][111];int maxx,maxy,minx,miny;int n;... 阅读全文
摘要:
题意:给图如下4 4Y.#@.....#..@..MY M 分别是两个人他们要选一个@见面 问他们最小的见面时间(见面时间为两人到达时间的和)分析 :典型的广搜题目#include#include#include#includeusing namespace std;struct node{ ... 阅读全文
摘要:
典型的最短步骤求解问题#include#include#include#includeusing namespace std;struct node{ int a,b,c,n;};bool v[103][103][103];void bfs(int a,int b,int c){ me... 阅读全文
摘要:
题意 :求一块区域内有多少油田简单dfs#includeusing namespace std;char map[102][102];int use[102][102];int m,n;int dir[8][2]={{1,0},{-1,0},{0,1},{0,-1},{1,1},{1,-1},{-1... 阅读全文
摘要:
题意:给出两个容积分别为 a 和 b 的pot,按照以下三种操作方式,求出能否在一定步数后,使者两个pot的其中一个的水量为c。 1.FILL(i):将ipot倒满水。2.DROP(i):将ipot倒空水。 3.POUR(i,j):将ipot的水倒到jpot上,直至要么ipot为空,要么jpot为满... 阅读全文