自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (1)
  • 问答 (1)
  • 收藏
  • 关注

转载 理解 Linux 的硬链接与软链接

原文链接Linux 的文件与目录现代操作系统为解决信息能独立于进程之外被长期存储引入了文件,文件作为进程创建信息的逻辑单元可被多个进程并发使用。在 UNIX 系统中,操作系统为磁盘上的文本与图像、鼠标与键盘等输入设备及网络交互等 I/O 操作设计了一组通用 API,使他们被处理时均可统一使用字节流方式。换言之,UNIX 系统中除进程之外的一切皆是文件,而 Linux 保持了这一特性。为了便于文件的

2018-01-18 11:06:00 222

原创 LeetCode练习记录2017/12/10

【136】Single Numberclass Solution {public: int singleNumber(vector& nums) { int result=0; for(int i=0;i<nums.size();i++) { result^=nums[i]; }

2017-12-10 20:30:34 142 1

原创 LeetCode练习记录2017/12/9

【406】Queue Reconstruciton by Heightclass Solution {public: vector> reconstructQueue(vector>& people) { vector>result; if (people.empty()) return result; sort(people.begin(), people.end(),

2017-12-09 20:30:21 110

原创 LeetCode练习记录2017/12/8

【566】Reshape the Matrixclass Solution {public: vector> matrixReshape(vector>& nums, int r, int c) { int total = 0; int a = nums.size(); int b = nums[0].size(); for(int i=0;i<nums.size();

2017-12-08 21:18:57 137

原创 poj2388

#include#includeusing namespace std;void qsort(int,int);int arr[10000] = { 0 };int n = 0;int main(){cin >> n;int temp;for(int i=0;i{cin >> temp;arr[i] = temp;}qso

2017-07-14 17:29:17 320

原创 poj1035

#include#includeusing namespace std;string dic[10000];int diclength = 0;string word;string che[50];int chelength = 0;string matched[50] = {""};void check();int main(){w

2017-05-27 19:13:40 242

原创 poj1016

#include#includeusing namespace std;string record[16] = {""};string num;int main(){cin >> num;while (num != "-1"){int cha = 0;int sta = 0;record[0] = num;for(int

2017-05-26 18:32:08 186

原创 poj 1328

#include#include#include#includeusing namespace std;struct dot{int x;int y;}abc[10000];struct rad{float left;float right;}rads[10000];int comp(const void* a,

2017-05-25 18:36:10 159

原创 poj 1207

#includeint main(){int i, j, maxi, max;while (scanf("%d%d", &i, &j)!=EOF){int sma, lar;max = 0;if (i > j){sma = j;lar = i;}else {sma = i;lar = j;}for (int fla

2017-05-11 21:00:34 177

原创 poj 1005

#include#include#define PI 3.1415926int main(){int N;scanf("%d", &N);float a;float b;float area;int Z;int i;for (i = 1; i {scanf("%f%f", &a, &b);area = PI / 2 * (pow(

2017-05-11 20:16:59 151

原创 poj 1004

#includeint main(){float bal[12] = { 0 }, ave=0;int i=0;while (i{ave += bal[i];i++;}ave /= 12.0;printf("$%.2f\n", ave);return 0;}

2017-05-11 19:33:01 187

原创 poj 1003

#includeint main(){float a = 1.00f;float sum = 0;int i = 0;while (scanf("%f", &a)&&a) {sum = 0;for (i = 1; i{sum += 1.0 / (i+1);if (sum>= a){printf("%d card(s)\n", i);

2017-05-11 17:19:21 159

原创 tyvj 1008 未测试

#includeusing namespace std;int n, m;int dfs(int flag, int timeLeft){if (timeLeft == 0){if (flag == 1)return 1;else return 0;}if (flag == 1){return dfs(n, timeLeft-1) + dfs(2

2016-11-28 00:30:01 144

原创 tyvj1005 未进行测试

#includeusing namespace std;int value[1000];int time[1000];int max(int a, int b){if (a > b)return a;else return b;}int Tvalue(int Ltime, int num){if (num == 0){if (Ltim

2016-11-16 23:25:33 179

简洁PPT模板

PPT模板

2019-03-05

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除