自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

吴泽乐

吴泽乐

  • 博客(5)
  • 资源 (4)
  • 收藏
  • 关注

转载 走着走着,就散了, 回忆都淡了;

走着走着,就散了, 回忆都淡了;

2011-11-24 12:40:23 362

原创 从深度心理学的角度看爱情

在爱情中的人们,在心理上往往退化到婴孩时期——我有什么需要,不用开口,爸妈就应该知道,而得到照顾最好的办法就是哭闹,但在成人的世界里,这样方式行得通吗?一个人从小成长的背景,常会深深地影响他日后被什么样的人吸引,以及日后亲密关系的建立与维护。不管曾经受过多少伤,当爱情来临时,就是最好的医治和疗伤机会,从深度心理学的角度来看,天下最好的治疗者是自己的爱人。     深度心理学     一

2011-11-02 16:35:00 400

原创 黄脸婆是怎样炼成的

吴泽乐:我每天都吵架。好累哦! 女友:这是男人的看法,我就想没事找找吵吵,因为那样我才更能感受到你在乎我。 吴泽乐:悲剧啊!

2011-10-27 13:51:21 363

转载 沉默,是最后一项自由

混乱的心,变得清澈。生活的期望变成一种意志。也许只有懂得挑战的人才明白何为坦然。      必须承认,洒脱有时候只是一种假像,是自我寻找的一种借口。只是需要一个理由,净觉浮躁的身心。      沉默,是最后的清高,也是最后的自由。      当你忘记你是一个女人,      你会发现除了坚强你别无选择。      当你忘记你是一个女人,      你会发现沉默可以替代眼泪。

2011-10-26 17:21:47 368

原创 Telepathy

I am Ineloquent,and I hope to have a good friend of telepathy,as no matter what I say the wrong things,my brother usually understand the real intention,will not misunderstand me,Understand me,This i

2011-10-25 11:48:33 413

Automatic-login

实现酷狗7的自动登入,由于是主要代码,所有先手动开启酷狗7,此程序经过测试正确。

2012-03-04

Microprocessor Simulation

Description 吴泽乐: Consider a small microprocessor that has the following properties: ?Each word is four bits. ?Addresses are two words. The high word always comes first. That is, the high word of a two-word address will always occupy the lower word of memory. ?Memory is 256 words. ?There are two accumulators, A and B, each storing one word. ?There are nine instruction codes. Each instruction requires at least one word to store the code that specifies the instruction. Four instructions have arguments and require an additional two words. Each 4 bit number can have the values from 0 to 15, inclusive, in base 10. We will write these using hexadecimal in the usual way, i.e. A means 10, B means 11, etc. These are the nine instructions: Code Words Description 0 3 LD: Load accumulator A with the contents of memory at the specified argument. 1 3 ST: Write the contents of accumulator A to the memory location specified by the argumen 2 1 SWP: Swap the contents of accumulators A and B. 3 1 ADD: Add the contents of accumulators A and B. The low word of the sum is stored in A, and the high word in B 4 1 INC: Increment accumulator A. Overflow is allowed; that is, incrementing F yields 0. 5 1 DEC: Decrement accumulator A. Underflow is allowed; that is, decrementing 0 yields F. 6 3 BZ: If accumulator A is zero, the next command to be executed is at the location specified by the argument. If A is not zero, the argument is ignored and nothing happens. 7 3 BR: The next command to be executed is at the location specified by the argument. 8 1 STP: Stop execution of the program. The microprocessor always begins by executing the command at location 00. It executes the commands in sequence until it reaches the Stop command. The examples below show partial programs and describe their affect. Program Description 01A8 Load accumulator A with the contents of memory location 1A (26 in decimal) and stop. 01A512F8 Load accumulator A with the contents of memory location 1A (26 in decimal), decrement it, store the result to memory location 2F, then stop. Input The input will consist of several lines of exactly 256 hex characters. Each line is the contents of memory, beginning with address 00 and ending with address FF. The end of the input is indicated by a memory state that has a stop instruction (an "8") at address 00. The input programs will never "fall of the end of memory" that is, you will never execute an instruction that is located between addresses F0 and FF, inclusive. Output For each memory state, you should simulate execution beginning with address 00. When the stop instruction is reached, you will dump the contents of memory to the output as a single string of 256 hex characters followed by a newline character. Sample Input 0102011311321128FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Sample Output 0102011311321128FF1E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

2011-06-15

Word Amalgamation

Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 5522 Accepted: 2789 Description In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in order to find the letters that appear in the answer it is necessary to unscramble four words. Your task is to write a program that can unscramble words. Input The input contains four parts: 1) a dictionary, which consists of at least one and at most 100 words, one per line; 2) a line containing XXXXXX, which signals the end of the dictionary; 3) one or more scrambled 'words' that you must unscramble, each on a line by itself; and 4) another line containing XXXXXX, which signals the end of the file. All words, including both dictionary words and scrambled words, consist only of lowercase English letters and will be at least one and at most six characters long. (Note that the sentinel XXXXXX contains uppercase X's.) The dictionary is not necessarily in sorted order, but each word in the dictionary is unique. Output For each scrambled word in the input, output an alphabetical list of all dictionary words that can be formed by rearranging the letters in the scrambled word. Each word in this list must appear on a line by itself. If the list is empty (because no dictionary words can be formed), output the line "NOT A VALID WORD" instead. In either case, output a line containing six asterisks to signal the end of the list. Sample Input tarp given score refund only trap work earn course pepper part XXXXXX resco nfudre aptr sett oresuc XXXXXX Sample Output score ****** refund ****** part tarp trap ****** NOT A VALID WORD ****** course ****** Source Mid-Central USA 1998

2011-05-20

Traffic Advisory System

吴泽乐 Traffic Advisory System 交通咨询系统 最短路径 数据结构 迪杰斯特拉 Dijkstra

2011-04-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除