码迷,mamicode.com
首页 > 其他好文
Sublime text 3 license
—–BEGINLICENSE—–AndrewWeberSingleUserLicenseEA7E-855605813A03DD5E4AD9E66C0EEB94BC99798F942194A602396E98E62C99794BB979FE91424C9DA45400BFF6747D882FB8807...
分类:其他好文   时间:2015-08-02 19:54:40    阅读次数:94
HUAS Summer Trainning #3 K
Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个...
分类:其他好文   时间:2015-08-02 19:52:36    阅读次数:76
UvaLive 6661 Equal Sum Sets (DFS)
Let us consider sets of positive integers less than or equal to n. Note that all elements of a set are different. Also note that the order of elements...
分类:其他好文   时间:2015-08-02 19:52:53    阅读次数:118
leetcode:add two numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2015-08-02 19:52:11    阅读次数:94
IDEA各种问题解决方案
1. IDEA学习网站:http://www.youmeek.com/idea/2. 字体设置乱码问题:http://note.youdao.com/share/?id=c6184893c8d036641efc40abe3e86347&type=note3. 编码设置:建议将IDE的编码、项目的编码...
分类:其他好文   时间:2015-08-02 19:50:49    阅读次数:125
IO多路复用的水平触发与边缘触发
在linux的IO多路复用中有水平触发,边缘触发两种模式,这两种模式的区别如下: 水平触发:如果文件描述符已经就绪可以非阻塞的执行IO操作了,此时会触发通知.允许在任意时刻重复检测IO的状态,没有必要每次描述符就绪后尽可能多的执行IO.select,poll就属于水平触发. 边缘触发:如果文件描.....
分类:其他好文   时间:2015-08-02 19:51:46    阅读次数:137
三层架构
三层架构DALDAL并不是用来根据业务需求而扩展的,它是用来控制你的数据库与OOP的映射机制的。如果你因为业务原因而需要写查询,这完全是BLL的功能。BLL逻辑层UI界面层MODEL数据库中的表,相当于给数据库表中每一列建立一个实体对象。优点: 1、开发人员可以只关注整个结构中的其中某一层; 2.....
分类:其他好文   时间:2015-08-02 19:48:49    阅读次数:98
HUAS Summer Trainning #3 N
Description给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形,下图为高为2,宽为4的网格. Input第一行输入一个t, 表示有t组数据,然后每行输入n,m,分别表示网格的高和宽 ( n 2 using namespace std; 3 int main() 4 { 5 .....
分类:其他好文   时间:2015-08-02 19:47:17    阅读次数:129
Codeforces Round #313 (Div. 2) D. Equivalent Strings 解题心得
原题:DescriptionToday on a lecture about strings Gerald learned a new definition of string equivalency. Two stringsaandbof equal length are calledequiva...
分类:其他好文   时间:2015-08-02 19:49:28    阅读次数:100
UVA - 524 Prime Ring Problem(dfs回溯法) 解题心得
原题DescriptionA ring is composed of n (even number) circles as shown in diagram. Put natural numbersinto each circle separately, and the sum of numbers...
分类:其他好文   时间:2015-08-02 19:48:34    阅读次数:151
cf #309a A - Kyoya and Photobooks
A -Kyoya and PhotobooksTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionKyoya Ootori is selling photobooks of...
分类:其他好文   时间:2015-08-02 19:46:34    阅读次数:106
【容斥+素数】 HDU 2841 Visible Trees
通道题意:求一个区间[1,m]内与i的互质的数的个数。这里1#include #include typedef long long LL;const int maxn = 100010;LL ans;int n,m;int fac[maxn];int prime[maxn];int facCnt;v...
分类:其他好文   时间:2015-08-02 19:45:56    阅读次数:118
HUAS Summer Trainning #3 L
DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular...
分类:其他好文   时间:2015-08-02 19:47:46    阅读次数:102
UVALive 6661 解题心得
原题:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4673我的代码:#include#includeusing namespace std...
分类:其他好文   时间:2015-08-02 19:47:21    阅读次数:102
[leedcode 173] Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next...
分类:其他好文   时间:2015-08-02 19:47:38    阅读次数:107
HDU 1799 循环多少次? 解题心得
原题Description我们知道,在编程中,我们时常需要考虑到时间复杂度,特别是对于循环的部分。例如,如果代码中出现for(i=1;i#includeusing namespace std;int ch[2500][2500];int main(){ int i, j; for (i ...
分类:其他好文   时间:2015-08-02 19:45:59    阅读次数:95
MC的内存管理和删除机制
先看一下,什么叫做内存的碎片化:1 如果用c语言直接 malloc,free 来向操作系统申请和释放内存时,2 在不断的申请和释放过程中,形成了一些很小的内存片断,无法再利用.3 这种空闲,但无法利用内存的现象,---称为内存的碎片化.因此,为了解决这个内存碎片化带来的浪费,那MC采用的是slab ...
分类:其他好文   时间:2015-08-02 19:46:56    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!