上一页 1 ··· 282 283 284 285 286 287 288 289 290 ··· 300 下一页
2013年7月28日

杭电OJ—— 1084 What Is Your Grade?

摘要: What Is Your Grade? Problem Description “Point, point, life of student!” This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too. How many points can you get? Now, I told you the rules which are used in this course. There are 5 problems in this final ... 阅读全文
posted @ 2013-07-28 21:26 you Richer 阅读(197) 评论(0) 推荐(0) 编辑

Sicily 1790. Single Round Match

摘要: 高进度求余或者将一个数奇位上的数字与偶位上的数字分别加起来,再求它们的差,如果这个差是11的倍数(包括0),那么,原来这个数就一定能被11整除. #include #include using namespace std;int main(){ string b,g; int T; cin>>T; while(T--) { cin>>b>>g; if(b != g) { cout<<"NO"<<endl; continue; } int sum1 = 0, sum2 = 0; int n = b.size(); f 阅读全文
posted @ 2013-07-28 21:24 you Richer 阅读(168) 评论(0) 推荐(0) 编辑

uva 123 Searching Quickly

摘要: Searching QuicklyBackgroundSearching and sorting are part of the theory and practice of computer science. For example, binary search provides a good example of an easy-to-understand algorithm with sub-linear complexity. Quicksort is an efficient[average case] comparison based sort.KWIC-indexing is a 阅读全文
posted @ 2013-07-28 21:22 you Richer 阅读(233) 评论(0) 推荐(0) 编辑

二叉排序树

摘要: //BSTSearch.h//Binary Search Tree#ifndef BSTSEARCH_H#define BSTSEARCH_H#include #include #define true 1#define false 0#define ERROR 2#define NOT_FOUND 3#pragma pack( push )#pragma pack( 4 )struct Node{ int iValue; struct Node* pLeft; struct Node* pRight; struct Node* pParent;};typedef struct Node No 阅读全文
posted @ 2013-07-28 21:20 you Richer 阅读(201) 评论(0) 推荐(0) 编辑

[置顶] 读《最后期限》:第1章 新的机会

摘要: 章节大意: 在人力资源部门给“被解雇者”举行的欢送会上,汤姆金斯先生慵懒的坐在了最后一排——这个被称为“零信号区”的地方,他现在变成了一个ReSOE——“离开,到别处去寻找机会”的人,确切的说是一个“被解雇了的”项目管理人员。他已经听够了那些人说的所谓“鼓励”、“奉献”和“新的机会”的话,看着帽子上的“ReSOE,引以为荣!”的字样,他无奈的笑笑,渐渐进入了梦想。 被一阵喧闹声吵醒,汤姆金斯伸了个懒腰坐直了身子,他注意到了还有一个人也在“零信号区”中,与他仅隔一个座位,一个非常可爱的30岁左右的女人。这个女人叫莱克莎*胡丽安是一个商业间谍,他们简单聊了几句关于无聊会议和项目管理的问题。胡丽.. 阅读全文
posted @ 2013-07-28 21:17 you Richer 阅读(117) 评论(0) 推荐(0) 编辑

hdu 4612 Warm up(无向图Tarjan+树的直径)

摘要: 题意:有N个点,M条边(有重边)的无向图,这样图中会可能有桥,问加一条边后,使桥最少,求该桥树。 思路:这个标准想法很好想到,缩点后,求出图中的桥的个数,然后重建图必为树,求出树的最长直径,在该直径的两端点连一边,则图中的桥会最少。 从这题中学到两点,所以写一下解题报告。 1.官方说judge的栈小,得手动增栈 #pragma comment(linker,"/STACK:102400000,102400000") 以前没见过,算是学习了。 2.对改正了对Tarjan算法的一个错误理解,以前看某人博客说,无向图中,Tarjan后low值相等的点属于同一块,以前这样判断过,也 阅读全文
posted @ 2013-07-28 21:15 you Richer 阅读(218) 评论(0) 推荐(0) 编辑

uva 10194 Football (aka Soccer)

摘要: Football (aka Soccer)The ProblemFootball the most popular sport in the world (americans insist to call it "Soccer", but we will call it "Football"). As everyone knows, Brasil is the country that have most World Cup titles (four of them: 1958, 1962, 1970 and 1994). As our national 阅读全文
posted @ 2013-07-28 21:14 you Richer 阅读(254) 评论(0) 推荐(0) 编辑

组合模式(Composite)

摘要: @@@模式定义: 将对象组合成树型结构以表示“部分-整体”的层次结构。 组合模式使得用户对单个对象和组合对象的使用具有一致性。 @@@练习示例: 商品类别树 @@@示例代码: \product\Leaf.java ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~package product;/** * 叶子对象 */public class Leaf { /** * 叶子对象的名字 */ private String name = ""; /** * 构造方法,传入叶子对象的名字 * @param name ... 阅读全文
posted @ 2013-07-28 21:12 you Richer 阅读(223) 评论(0) 推荐(0) 编辑

一段简单c程序的汇编语言学习(ubuntu+x86)

摘要: c程序代码:#include int main(void){ int i=0, j=0; for(i=0; i<8; i++) j=j+1; return 0;} 汇编代码如下:.file "test_asm.c" 2 .text 3 .globl main 4 .type main, @function 5 main: 6 .LFB0: 7 .cfi_startproc 8 pushl %ebp 9 .cfi_def_cfa_offset 8 ... 阅读全文
posted @ 2013-07-28 21:09 you Richer 阅读(220) 评论(0) 推荐(0) 编辑

浅谈设计模式在GIS中的应用

摘要: 设计模式在GIS中的应用一、设计模式概述随着面向对象技术的广泛应用,软件复用在越来越多的开发工程中被采用。在研究软件复用的过程中,设计模式的概念被提了出来。所谓设计模式就是一些设计面向对象的软件的经验总结,它的出现可以说是面向对象理论发展的一个重要的里程碑。地理信息系统(GIS)是一种特定而又十分重要的空间信息系统,它是以采集、贮存、管理、处理分析和描述整个或部分地球表面(包括大气层在内)与空间和地理分布有关的数据的空间信息系统。它不仅要处理一般的、规则的属性数据,还要处理海量的、复杂的空间数据,通常是一个复杂而又庞大的系统,开发起来比较耗费时间和财力。因此GIS的重新实现或者重新修改都是一项 阅读全文
posted @ 2013-07-28 21:07 you Richer 阅读(349) 评论(0) 推荐(0) 编辑
上一页 1 ··· 282 283 284 285 286 287 288 289 290 ··· 300 下一页