崩溃的一天,打算提代码走人,结果切分支之后,commit丢了= =,找了三个多小时 接下来分享下如何找回丢失的commit的 打开项目所在位置,打开git bash,在gitBASH中输入 git fsck --lost-found | grep commit | awk '{print $3}' ...
分类:
其他好文 时间:
2018-06-03 19:49:23
阅读次数:
212
描述Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= ...
分类:
其他好文 时间:
2018-05-30 22:49:42
阅读次数:
157
LINUX文件目录结构/bin:目录下存放常用命令/boot:存放linux启动核心文件、连接文件及镜像/dev:存放外部设备/etc:系统管理员所需配置文件和子目录/home:每个用户目录/lib:动态连接共享库,类似Windows的dll文件/lost+found:一般空目录,非正常关机存放一些文件/media:识别设备挂载该目录(U盘、光驱)/opt:安装数据库10./proc:存放存储进程
分类:
系统相关 时间:
2018-05-30 17:36:42
阅读次数:
174
题目描述 Farmer John's N (1 <= N <= 1000) cows each reside in one of B (1 <= B <= 20) barns which, of course, have limited capacity. Some cows really like ...
分类:
其他好文 时间:
2018-05-29 13:15:48
阅读次数:
213
Discription Farmer John is hosting a tennis tournament with his n cows. Each cow has a skill level si, and no two cows having the same skill level. Ev ...
分类:
其他好文 时间:
2018-05-27 17:17:57
阅读次数:
243
题目描述 Farmer John tries to keep the cows sharp by letting them play with intellectual toys. One of the larger toys is the lights in the barn. Each of t ...
分类:
其他好文 时间:
2018-05-27 16:22:58
阅读次数:
202
Til the Cows Come Home Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 68667 Accepted: 23016 Description Bessie is out in the field and wan ...
分类:
其他好文 时间:
2018-05-22 22:09:54
阅读次数:
154
题意: 输入若干个区间,对于一个区间(a,b),如果存在一个区间(x,y)满足x <= a && y >= b && y - x > b - a,那么就说(x,y)比(a,b)大。 求比每一个区间大的区间有多少。 思路: 树状数组,这题最关键的其实是有重复的区间。 首先把区间按照起点升序排序,如果起 ...
分类:
其他好文 时间:
2018-05-22 12:53:49
阅读次数:
167
Got an error reading communication packets;Error reading packet from server for channel ‘‘: Lost connection to MySQL server during query (server_errno=2013)
分类:
数据库 时间:
2018-05-21 14:47:49
阅读次数:
534
BZOJ_2679_[Usaco2012 Open]Balanced Cow Subsets _meet in middle+双指针 Description Farmer John's owns N cows (2 <= N <= 20), where cow i produces M(i) uni ...
分类:
其他好文 时间:
2018-05-20 14:17:30
阅读次数:
243