首页 > 其他
UVa 1584 - Circular Sequence
https://uva.onlinejudge.org/external/15/1584.pdfSome DNA sequences exist in circular forms as in the following figure, which shows a circular sequence CGAGTCAGCT", that is, the last symbol“T” in CGAGT...
分类:其他   时间:2015-08-16 18:24:49    收藏:0  评论:0  赞:0  阅读:233
LeetCode解题报告--3 Sum
题目: 3 个数和问题 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: Elements in a triplet (a,b...
分类:其他   时间:2015-08-16 18:24:39    收藏:0  评论:0  赞:0  阅读:275
和矩形相关的操作
#include #include #include #include #define PI 3.141592654 #define eps 1e-7 using namespace std; /*********************************************************************/ struct point { int x,y;...
分类:其他   时间:2015-08-16 18:24:28    收藏:0  评论:0  赞:0  阅读:206
HDU 1012.u Calculate e【水】【8月16】
u Calculate e Problem Description A simple mathematical formula for e is where n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively...
分类:其他   时间:2015-08-16 18:24:08    收藏:0  评论:0  赞:0  阅读:137
断其一指------异步任务(AsyncTask)
AsyncTask 异步处理 解决的问题:在子线程中,有的时候也需要多次动态更新UI,此时,除了使用Handler之外,用AsyncTask也是一种相对比较简洁的方式:AsyncTask 是一个抽象类,用来被继承的。 1.三个参数 Params 启动任务执行输入参数的类型 Progress 后台任务完成...
分类:其他   时间:2015-08-16 18:23:59    收藏:0  评论:0  赞:0  阅读:170
LeetCode解题报告--3Sum Closest
题目:与3数和最接近的和 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would...
分类:其他   时间:2015-08-16 18:23:49    收藏:0  评论:0  赞:0  阅读:151
【HashMap】深入原理解析
equals与== 1,基本数据类型(byte,short,char,int,long,float,double,boolean)使用== 对比的是值是否相等2,复合数据类型== 对比的是内存中存放的地址object中的equals初始行为是比较内存中的地址,但在一些类库中被覆盖掉了如(String,Integer,Date等) 故对于复合数据类型使用equals进行比较,未进行覆写的比较的是内存...
分类:其他   时间:2015-08-16 18:23:39    收藏:0  评论:0  赞:0  阅读:273
codeforces 250 div2 A B C D
A. 模拟 #include using namespace std; #define LL long long #define INF 0x3f3f3f3f #define maxn 100 + 10 char s[4][maxn]; int len[4]; int main() { int t1, t2; int Min = INF, Max = -INF; ...
分类:其他   时间:2015-08-16 18:23:19    收藏:0  评论:0  赞:0  阅读:106
hdu 3371 Connect the Cities 最小生成树
。。。...
分类:其他   时间:2015-08-16 18:23:09    收藏:0  评论:0  赞:0  阅读:289
hdu 1251 统计难题
字典树,题目并无难度,关键是如何输入空格推出循环 用getline输入C++的字符串要加上 #include.......... 这题G++交会无限超内存 #include #include #include using namespace std; string str; struct stu { int m; stu *a[26]; stu() { m=0; fo...
分类:其他   时间:2015-08-16 18:22:58    收藏:0  评论:0  赞:0  阅读:184
台大机器学习基石课程之机器学习基本原理和概念
机器学习中非常重要的四个基础概念,总结自台大机器学习基石课程,解释机器为什么能够学习.........
分类:其他   时间:2015-08-16 18:22:49    收藏:0  评论:0  赞:0  阅读:287
闭包的简单定义和使用
/* 闭包(Closures) * 闭包是自包含的功能代码块,可以在代码中使用或者用来作为参数传值。 * 在Swift中的闭包与C、OC中的blocks和其它编程语言(如Python)中的lambdas类似。 * 闭包可以捕获和存储上下文中定义的的任何常量和变量的引用。这就是所谓的变量和变量的自封闭, * 因此命名为”闭包“("Closures)")...
分类:其他   时间:2015-08-16 18:22:09    收藏:0  评论:0  赞:0  阅读:252
数据结构:大堆
#include using namespace std; class Heap { public: Heap() :size(0), arr(NULL){} void Insert(int a[],int n) { arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = a[i]; } size = n...
分类:其他   时间:2015-08-16 18:21:59    收藏:0  评论:0  赞:0  阅读:169
机房收费系统验收小结(一)
机房收费系统验收小结(一)    上一期十期的师哥师姐们这次非常的热心来给我们进行机房验收的展示和讲解,让 我们深入的学习、研究和改善,整个过程进行了将近四个小时,师哥师姐们都是非常有 责任和热心的给我们大家指点和讲解。下面是自己做的一些小小的总结作为成长过程中 的记录。       一、功能区:   1、用户名处应该有提示当输入不...
分类:其他   时间:2015-08-16 18:21:49    收藏:0  评论:0  赞:0  阅读:248
uva_658_It's not a Bug, it's a Feature!(最短路)
题意:补丁在修补bug时,有时候会引入新的bug。假定有n(n<=20)个潜在bug和m(m<=100)个补丁,每个补丁用两个长度为n的字符串表示,其中字符串的每个位置表示一个bug。第一个串表示打补丁前的状态(“-”表示该bug必须不存在,“+”表示必须存在,“0”表示无所谓),第二个串表示打补丁后的状态(“-”表示不存在,“+”表示存在,“0”表示不变)。每个补丁都有一个执行时间,你的任务是用最少的时间把一个所有bug都存在的软件通过打补丁的方式变得没有bug。一个补丁可以打多次。...
分类:其他   时间:2015-08-16 18:21:29    收藏:0  评论:0  赞:0  阅读:327
POJ 1220 NUMBER BASE CONVERSION 高精度进制转换
poj  50题拍照合影留念 NUMBER BASE CONVERSION Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 4620   Accepted: 2115 Description Write a program to convert numbe...
分类:其他   时间:2015-08-16 18:21:19    收藏:0  评论:0  赞:0  阅读:189
HDU 1013.Digital Roots【模拟或数论】【8月16】
Digital Roots Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital ...
分类:其他   时间:2015-08-16 18:20:58    收藏:0  评论:0  赞:0  阅读:218
[LeetCode] Palindrome Partitioning
Palindrome Partitioning Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "a...
分类:其他   时间:2015-08-16 18:20:49    收藏:0  评论:0  赞:0  阅读:195
12219 - Common Subexpression Elimination(表达式树)
草草刷了一下暴力,开始转战图论了。   这是第一道例题,讲解了一种实用而神奇的树状结构:表达式树 。虽然打比赛从来没见过,但是我练这个本来也不只是为了比赛 , 重要的是ACM本身带给我的乐趣 。 该题的一个很巧妙的做法是将每一个结点用一个三元组来表示,然后映射到map中以去重 。 其中三元组中有一个string , 我们可以用hash来处理这个string 。 因为string最大长度为4, ...
分类:其他   时间:2015-08-16 18:20:39    收藏:0  评论:0  赞:0  阅读:376
机房收费系统验收小结(二)
机房收费系统验收小结(二)  接着前面的,之前是一个小组系统进行的验收接下来的是另一组同学机房系统验收结: 充值 报表  1、整个机房系统最重要最重要的就是结账    输出,这系统最重要的功能    周结账,时间段,要有汇总    时间算账:最好以24小时进看起来方便  2、验收验收前:把之前的数据清空(数据库内的)  3、快捷键的...
分类:其他   时间:2015-08-16 18:20:19    收藏:0  评论:0  赞:0  阅读:225
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!