Description 三个农民每天清晨5点起床,然后去牛棚给3头牛挤奶。第一个农民在300时刻(从5点开始计时,秒为单位)给他的牛挤奶,一直到1000时刻。第二个农民在700时刻开始,在 1200时刻结束。第三个农民在1500时刻开始2100时刻结束。期间最长的至少有一个农民在挤奶的连续时间为90 ...
分类:
其他好文 时间:
2018-04-04 12:40:14
阅读次数:
126
Description Farmer John has purchased a subscription to Good Hooveskeeping magazine for his cows, so they have plenty of material to read while waitin ...
分类:
其他好文 时间:
2018-04-01 13:10:31
阅读次数:
180
最近写了一个定时脚本,每天凌晨跑,每次跑时间很长。 在测试这个脚本的时候,跑了一个小时,发生一个错误,脚本中断,错误如下: _mysql_exceptions.OperationalError: (2013, 'Lost connection to MySQL server during query ...
分类:
数据库 时间:
2018-03-30 23:13:54
阅读次数:
569
Don't cry for what is lost. Smile for what still remains. 别为失去的哭泣,为还留在你身边的一切微笑吧。 I have been told that if crying for missing the sun, we may miss the ...
分类:
其他好文 时间:
2018-03-26 23:38:30
阅读次数:
202
主题:Spacegrey.sublime theme 配色方案:Mariana 自动保存 参考:https://www.cnblogs.com/mzzz/p/6178341.html "save_on_focus_lost": true Vim模式启用 参考:https://www.cnblogs. ...
分类:
其他好文 时间:
2018-03-25 01:27:31
阅读次数:
179
P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows 题目描述 Each of Farmer John's N (4 <= N ...
分类:
其他好文 时间:
2018-03-24 22:37:44
阅读次数:
266
题目链接:http://poj.org/problem?id=2186 题目大意: 每一头牛的愿望就是变成一头最受欢迎的牛。现在有N头牛,给你M对整数(A,B),表示牛A认为牛B受欢迎。 这 种关系是具有传递性的,如果A认为B受欢迎,B认为C受欢迎,那么牛A也认为牛C受欢迎。你的任务是求出有多少头 ...
分类:
移动开发 时间:
2018-03-24 00:43:52
阅读次数:
212
Description Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A..B (1 <= A ...
分类:
其他好文 时间:
2018-03-22 12:39:55
阅读次数:
138
windows启动栏的搜索,会经常找不到exe。 使用wox可以非常快速的找到启动程序 https://github.com/Wox-launcher/Wox/ 安装完成后,默认alt+space出现。 可以在settings中设置,hide wox when focus is lost ...
分类:
其他好文 时间:
2018-03-21 16:35:12
阅读次数:
194
树状数组 + 倍增 动态维护第k大 注意倍增是 include include include include using namespace std; const int MAXN = 100005; int n, c[MAXN], lg[MAXN], po[MAXN], sum, ans, nu ...
分类:
其他好文 时间:
2018-03-20 21:46:32
阅读次数:
211