首页 > 其他
日期类 Date
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /* 日期类 Date Calendar 日期格式化类 Simp... ...
分类:其他   时间:2017-02-01 21:45:32    收藏:0  评论:0  赞:0  阅读:298
POJ-3190 Stall Reservations (优先队列+贪心)
题目: 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 <= B <= ...
分类:其他   时间:2017-02-01 21:44:30    收藏:0  评论:0  赞:0  阅读:617
Exercise: Slices (画图)
A Tour of Go Exercise: Slices https://tour.golang.org/moretypes/18 这道题目,提供了一个画图函数 (pic.Show), 可以生成图片。 这个函数,即 pic.Show(f func(int, int) [][]uint8), 可见, ...
分类:其他   时间:2017-02-01 21:44:15    收藏:0  评论:0  赞:0  阅读:457
南阳260
1 #include 2 int main() 3 { 4 int n; 5 scanf("%d",&n); 6 while(n--) 7 { 8 int m; 9 scanf("%d",&m); 10 int temp=0,ans=0; 11 for(int i=1; i<=m; ... ...
分类:其他   时间:2017-02-01 21:43:07    收藏:0  评论:0  赞:0  阅读:218
BZOJ 3916 friends
暴力。 ...
分类:其他   时间:2017-02-01 21:42:42    收藏:0  评论:0  赞:0  阅读:203
hdu5776sum
题目连接 抽屉原理:如果现在有3个苹果,放进2个抽屉,那么至少有一个抽屉里面会有两个苹果 抽屉原理的运用 现在假设有一个正整数序列a1,a2,a3,a4.....an,试证明我们一定能够找到一段连续的序列和,让这个和是n的倍数,该命题的证明就用到了抽屉原理 我们可以先构造一个序列si=a1+a2+. ...
分类:其他   时间:2017-02-01 21:41:39    收藏:0  评论:0  赞:0  阅读:207
leetcde 10 Regular Expression Matching
class Solution { public: bool isMatch(string s, string p) { int m = s.size(), n = p.size(); vector<vector<bool>> dp(m + 1, vector<bool>(n + 1, false)) ...
分类:其他   时间:2017-02-01 21:41:18    收藏:0  评论:0  赞:0  阅读:205
并查集
int par[maxn]//父亲 int rank[maxn]//树的高度 //初始化n个元素 void init(int n) { for(int i=0;i<n;i++) { par[i]=i; rank[i]=0; } } //查询树的根 int find(int x) { if(par[x... ...
分类:其他   时间:2017-02-01 21:40:56    收藏:0  评论:0  赞:0  阅读:190
17-1-31-C
#include #include #include #include #include using namespace std; int main() { int m,n,ans; int dls[100][3]; string s; while(cin>>n>>m){ ans=100; for(... ...
分类:其他   时间:2017-02-01 21:40:33    收藏:0  评论:0  赞:0  阅读:229
TCP implements its own acknowledgment scheme to guarantee successful data delivery
wTCP本身已经确保传输的成功性。 HTTP The Definitive Guide 4.2.4 Delayed Acknowledgments Because the Internet itself does not guarantee reliable packet delivery (Int ...
分类:其他   时间:2017-02-01 21:40:02    收藏:0  评论:0  赞:0  阅读:214
leetcde 9 Palindrome Number
class Solution {public: bool isPalindrome(int x) { //negative number if(x < 0) return false; int len = 1; while(x / len >= 10) len *= 10; while(x > 0) ...
分类:其他   时间:2017-02-01 21:39:45    收藏:0  评论:0  赞:0  阅读:200
j2ee应用开发调试工具
j2ee应用程序不能独立运行,需要运行在一个servlet/jsp容器中,常用的servlet/jsp容器如:tomcat,jetty等。在开发调试j2ee程序时,也需要部署在一个指定的容器中。如果每次为了debug一行修改的java代码都要重复执行一次部署的操作,将会大大降低开发效率。为了解决这个 ...
分类:其他   时间:2017-02-01 21:39:21    收藏:0  评论:0  赞:0  阅读:308
codevs 1390 回文平方数 USACO
时间限制: 1 s 空间限制: 128000 KB 题目等级 : 青铜 Bronze 题目描述 Description 回文数是指从左向右念和从右像做念都一样的数。如12321就是一个典型的回文数。 给定一个进制B(2<=B<=20十进制),输出所有的大于等于1小于等于300且它的平方用B进制表示时 ...
分类:其他   时间:2017-02-01 21:38:50    收藏:0  评论:0  赞:0  阅读:281
前端各种库的在线引入地址
jquery fullpage ...
分类:其他   时间:2017-02-01 21:38:37    收藏:0  评论:0  赞:0  阅读:206
平台建设-用户反馈跟踪模块
目标:在产品灰度或者发布后,能快速收集用户反馈信息,跟踪问题。并做每个迭代的反馈跟进,反思和追踪问题原因,如何避免等问题。 途径:爬虫获取bbs的反馈信息 以浏览器为例子: 1.技术分析,获取用户反馈爬虫用的是Jsoup,看下列关键代码: spring添加定时任务 2.当日概览 3.迭代分析 负声量 ...
分类:其他   时间:2017-02-01 21:38:11    收藏:0  评论:0  赞:0  阅读:225
Uva140 Bandwidth 全排列+生成测试法+剪枝
参考过仰望高端玩家的小清新的代码。。。 思路:1.按字典序对输入的字符串抽取字符,id[字母]=编号,id[编号]=字母,形成双射 2.邻接表用两个vector存储,存储相邻关系 3.先尝试字母编号字典序最小的排列,此为next_permutation的最上排列 4.在最理想的情况下都不能得到比当前 ...
分类:其他   时间:2017-02-01 21:37:51    收藏:0  评论:0  赞:0  阅读:188
35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or ...
分类:其他   时间:2017-02-01 21:37:09    收藏:0  评论:0  赞:0  阅读:169
USACO 4.3 Street Race
Figure 1 gives an example of a course for a street race. You see some points, labeled from 0 to N (here, N=9), and some arrows connecting them. Point ...
分类:其他   时间:2017-02-01 21:36:48    收藏:0  评论:0  赞:0  阅读:231
463. Island Perimeter
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve ...
分类:其他   时间:2017-02-01 21:36:28    收藏:0  评论:0  赞:0  阅读:372
BZOJ 4756 Promotion Counting
用线段树合并水了这题。 ...
分类:其他   时间:2017-02-01 21:35:47    收藏:0  评论:0  赞:0  阅读:359
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!