It seems that i did nothing but thought a lot today
When I got up this morning, unlike what i did few days before that getting near my discrete mathematics text, i turned on my computer and did nothing. I told myself that I shouldn't waste my time like this. So I started to think about the program problem that a junior asked me last night. For it was the problem that my talent junior couldn't solve, it was also difficult for me. To prove my ablility as a senior, I asked myself to try my best to solve it, but i faild. The problem is shown in the page http://acm.zju.edu.cn/show_problem.php?pid=1101. If you are interested in what I have been trying to solve, you can try solving it. Although I haven't got a solution that can solve the problem undoubtedly, I have got some idea that might be the key to the problem. As is described in the problem description, this problem is to find the largest number that is the sum of the other 3 numbers in the given n distinct numbers(1 <= n <= 1000). In my unfinished solution, I'll firstly sort all the numbers given. This will make a great advantage for solving the problem if the given numbers are not originally sorted.(In the input sample I found that the given numbers are originally sorted, but in the description of input no words say about this.) After sorting, I'll go to exam every distinct 3 numbers that less than the number I assume to be the answer. If the sum of the 3 numbers equals to the number, then obviously the number can be a candidate. If the sum of the 3 numbers is greater than the number ... en, I find myself tired of writing the unfinished solution that won't work undoubtedly. So just let it be, ok?
Next I am going to say something else that I thought today. While having supper, I had a talk with my parents about one's aim in life. My parents said money should be the aim in life, which made me puzzled. In my almost 10 years of education, money is taught to be the thing that shouldn't be the most important part in life. The one who is crazy in earning money should be damned. My parents insisted that without money in the society we live in, one could nearly do nothing. However, is the necessary the most important thing? In my dictionary, two words are not equivalent. For I am not the generation that suffers from poverty so much as my parents did, my thinking might be somewhat of romanticism, which makes me be in favor of ideal things more than necessaries. My father said that my thinking is too naive and the cruel fact will make me one day agree with him and be a poor man who rushes for living. After this I made another talk with one of my good friends Eddy Young on the same topic. In the talking I found that he is more or less the same as my father, saying the words canonizing money. Oh, so many people have got into the cruel fact. Ok, even if the day that I bend my knees to my life will come one day, before that just let me be naive. Being naive and having no worries about living is at least a good feeling. Of course, I know I may have to face that day, so I will prepare myself before it. Hope I can go on my happy life after that, and actually I believe I will. Optimism always goes with me. Wuhuhu...
Next I am going to say something else that I thought today. While having supper, I had a talk with my parents about one's aim in life. My parents said money should be the aim in life, which made me puzzled. In my almost 10 years of education, money is taught to be the thing that shouldn't be the most important part in life. The one who is crazy in earning money should be damned. My parents insisted that without money in the society we live in, one could nearly do nothing. However, is the necessary the most important thing? In my dictionary, two words are not equivalent. For I am not the generation that suffers from poverty so much as my parents did, my thinking might be somewhat of romanticism, which makes me be in favor of ideal things more than necessaries. My father said that my thinking is too naive and the cruel fact will make me one day agree with him and be a poor man who rushes for living. After this I made another talk with one of my good friends Eddy Young on the same topic. In the talking I found that he is more or less the same as my father, saying the words canonizing money. Oh, so many people have got into the cruel fact. Ok, even if the day that I bend my knees to my life will come one day, before that just let me be naive. Being naive and having no worries about living is at least a good feeling. Of course, I know I may have to face that day, so I will prepare myself before it. Hope I can go on my happy life after that, and actually I believe I will. Optimism always goes with me. Wuhuhu...