我叫张小黑
张小黑的挣扎生活
posts - 66,  comments - 109,  trackbacks - 0

i'm a girl, yeah, if i have to chose a word to describ me, i think i'm a lucky girl.
yeah, that's it, i'm lucky, why?first because, i have a wonderful family. Mother and Father go along with each other very well, although sometimes some small quarrel happend between them. They have married for 22 years as i have had 21 birthdays. You can't believe how far time flies. Mom was borned in the 1965 while father is two years older than her. Both of them are over age 40. You know at a age of over 40 a person has reached the milddle age. So i always worried about their health status.  I'm glad to hear about mom goes to the fitness club taking some cources ,such as  yoga. As we know yoga is a good dicipline for learning to relax. That's precisely what my mom need.  I know mom endure a heavy psychological burden of the work issues, fortunately dad and i are both understanding her, and mom also relieve some for the surport from me and dad. My big dady~~haha ~~, at home i always argued with my dad, my thought is always opposit of what dad think about. Dad and I nerver see eye to eye on anything. In that case,i'll try to argue him out of his opinions, however, i win and hold my decision. So in a certain extent, our family is a democratic family. As long as you're right, others will respect your decision.  Second , I'm fortunate to be able to have so many good friends. The most important one is Hong Yang. We were classmates sinced the junior high school. After graduation, she was admitted into Nanjing university which is one of the top universities in china. Although i failed in the firsty year, i was admitted into east china normal university in shanghai next year. I'm so  happy when hearing about shanghai is not far away from nanjing. I went there twice and i had a wonderful time. I know she is upset now, but i don't know how to console her, may be my company will be helpful, but i'm in shanghai and i also do not want to trouble her. What i can do may be is the best wishes for her. "Sheep, come on!" In the university, i'm so lucy to have three kind roomates, xiang, ting and hong. I always consider my dorm is my home in shanghai. The four in our dorm get along with each other very well through unknown to the familiar. I never have roommates until attending the university. So I never obtain a special friendship like the one of the roomates through living together. At first, i'm not accustom to living with stranger. yeah, i know "stranger" is not approriate to name my roomates, but i can't accept them in heart. We come from all corners of our countries, have various living habits.  well, all of these problems are no longer a problem.  We interact on each other. I cherish this relationship very much. In addtion, i have another close friend named jingyan in the university. She comes from chongqing. I'm grateful for her generous and helpfulness. Jingyan is a big cook who usually do some cooking in the dom. what she cooked is very delicious.

posted @ 2009-03-26 21:38 zoyi 阅读(385) | 评论 (4)编辑 收藏
     摘要:   阅读全文
posted @ 2009-02-22 15:11 zoyi 阅读(205) | 评论 (0)编辑 收藏
原文:
It's been a long strange trip toward better security for Microsoft, but they've made enough progress to have both improvements to their technique and some highly interesting war stories. The company's got a new site explaining the past decade's advances, and you have a reson to read comics at work day.

The process of "baking security in" -- getting developers to think about security less as "those people who yell at us" and more as an integral part of any software-construction effort -- lends its name to Baking Security In. which details Microsoft's progress on the Sccurity Development Lifecycle, a process involving 14 stages and checkpoints over the six stages of the software-devlopment cycle (requirments, design, implement, verification, release, support/service ).

Microsoft has previously estimated that adoption of the SDL strategy increases lifecycle costs by 20%, If that's a hit the company's willing to take to build security into their products, building a fairly clever educational site including "The Amaing Adeventures of Kevlarr", a developer who requires some convincing (that's him above), is just part of the effort, But come forthe comics and stay for the videos, as real-life, non-animated Microsofties like Steve Lipner and Michael Howard recount their memories of the days before Microsoft got security-serious.


译文:
微软安全开发的旅程奇怪而又漫长,但是他们在技术的进步和有趣的战略故事上都发展迅速,微软今天启动了一个新站点用动画的形式来解释过去十年中微软就安全技术方面所作出的努力和进步,很值得在上班的时候看一看这个连环画。

“baking sercurity in” 这个过程,是让开发者不仅仅是考虑那些侵犯系统程序的人,而且要更多将安全作为任何一个软件开发努力中完整的一部分,将这个过程取名为“Baking Security in”, 在这个连环画中详细介绍了微软在安全开发周期(SDL)中的进步,其中包括14个阶段和检查要点覆盖了软件开发周期的六个步骤(需求,设计,实施,验证, 发表,支持/服务)。

微软先前估计如果采用SDL战略成本将增加20%,但是如果这是必要的,那么公司愿意去为其产品建立安全体系,并且建立一个很有教育意义的网站包含 “Kevlarr的传奇经历”,一个开发者很有说服力,其为安全开发周期做出了努力。但是他来自动画,停留在视频上,而作为现实中非动画虚构的人物像 Steve Lipner和Michael Howard回忆了在微软有意识安全问题严重性以前的那段日子。

posted @ 2009-02-20 09:48 zoyi 阅读(179) | 评论 (0)编辑 收藏
很久没有做题,感觉手生疏了很多,以前从来没有做过usaco的题目,现在先把这一百题做完,也好做一个系统的复习,第一板块的题目感觉都是一些没有特定想法的题目,想清楚了,题目也就做出来了,现在发现在usaco上做题有一个好处,哪里错了,他还会把数据给你,这个平台真的很不错,加油加油~~!!!
posted @ 2009-01-17 13:13 zoyi 阅读(198) | 评论 (1)编辑 收藏
    昨天看了一组有关于08军人的组图,有抗旱雪灾的90后的战士,也有512中牺牲的烈士,还有感动中国的政治学习家,和奋不顾身救人而牺牲的战士,08年过去了,透过军人给我们的感动,对自己有很多的触动,有的时候,真的应该感谢人民的战士给我们的一个和平的小环境,之所以说小环境,在全球的大前提下,还是有不和平的炮声的,在和室友感慨和平年代的好处时不禁让我想起地球的另一面有非洲保守饥饿的人们,人道主义关爱的无国界医生们,他们给这些地方带去了和平的色彩,帮助他们同疾病抗争,也同严酷的世界抗争,巴以冲突,有多少无辜的平民受牵连,在空袭的笼罩下他们应该没有新年的喜悦,相对于他们我们是如此的幸福,平静的等待着新年的到来。
    08年的不平凡,中国的不平凡,我们有年初的雪灾,7.8级的地震,西藏冲突,还有三鹿三聚氰胺牛奶的对奶制品市场的冲击,当然最重要的在如此曲折的一年我们成功举办了奥运,在北京的比赛的那天,站在鸟巢外面,我努力想象着,八月的北京是如何的精彩,记得在公选的结课论文上写的就是关于奥运的文章,奥运能给国民的反思太多太多,确实在如此曲折的一年,能够成功举办奥运确实是对中华民族的考验,而我们不负众望,但是全民奥运的路还有很远,精英奥运的模式下让我们有骄人的金牌战绩,却也有对相对日韩中国青少年普遍体能素质弱的反思。
    步入09年,我真正的20岁了,记得看过一篇报道,一名小战士在在抗震救灾的一线,感叹说自己想领养一个孤儿,战友笑话他自己也还是一个小屁孩,还能领养什么孩子,他回答说,长大不在于年龄,而在于他是否知道该如何承担责任。我能想象一个90后的小战士说出一句这样的话是多么的让人惊讶,长大的责任,我们已经步入20岁,再如何狡辩,我们已经是成年人,长大的责任需要我们自己承担。
    小的时候我们犯错没有关系,我们可以说我们没有14岁,绝对无刑事责任年龄,我们不需要对任何犯罪承担刑事责任,慢慢长大,14-16岁相对刑事责任能力,走过16步入18岁,作为一自然人,我们能为自己所做所为承担应当承担的法律责任,当我们已然18岁,才不入大学校园不久,我们说自己是学生,狡辩自己仍然孩子,但是慢慢长大,在地铁上已经有小朋友瞪着圆圆的眼睛喊你阿姨,呵呵孩子是不会撒谎的,他说你是阿姨,你就真的是了,20岁的女孩,喊阿姨喊姐姐,都改不了一个成人应该承受的,我们要开始学会做好自己,而且要学会做好社会,也许年龄到了,我们无条件汲取的时刻到了,也该是我们付出的时候,虽然自己还属于零收入或未成年人群,但是力所能及的事情也许应该从小事做起。
posted @ 2009-01-02 11:02 zoyi 阅读(202) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2008-12-28 14:41 zoyi 阅读(670) | 评论 (0)编辑 收藏
最近总以情绪低落为借口懒惰了很多~~看见甜甜过so甜甜,胖胖乐呵呵的眼睛的笑没了
还有身边的人都是如此积极的向上的活着,现在一切都太美好了~~
软大一虽然做得没有什么技术含量,但是毕竟也是大家一起做得哈哈~~
现在发现我还挺适合做没技术含量的事情,做个外包什么的,真的挺和我胃口
确实我做的事情大部分是外包,比如扫雷,现在的软大一,还有就是我们的泡泡堂~~
看来审美逻辑上还是很有优势的嘛~~


我的目标~~哈哈~~理想一点的目标

posted @ 2008-12-25 13:59 zoyi 阅读(195) | 评论 (0)编辑 收藏
     摘要: 二分还没搞出来~~一直超时~~迭代感觉也是利用了单调性~~不断地逼近迭代代码: #include<iostream>#include<algorithm>#include<math.h>#define inf 1.0e-8#define maxn 100005using namespace std;s...  阅读全文
posted @ 2008-10-11 03:30 zoyi 阅读(277) | 评论 (0)编辑 收藏
贪心的思想首先要好好理解一下,这里给出了每一门考试开始的时间,和复习的最大提前时间(否则容易忘记),应该是枚举加贪心的思想

n的范围是50000,从大到小进行枚举,如果是考试的一天进堆,不是则找出最大的那个复习时间上限

比较难处理的是时间转化问题,我在这里是把它提前了31。1。1600作为一个起始时间,然后都做一个转换

第一个程序我是写了一个date的类,重载了各种操作,现在也觉得在这种比赛提里面如果没有必要还是少些类比较好,太复杂了,调试起来也不清晰

以下是ac代码:

#include<iostream>
#include
<algorithm>
#define maxn 50005
int T[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
using namespace std;
struct node
{
    
int test,bg,i;
    friend 
bool operator<(node a,node b)
    {
        
return a.test>b.test;
    }
}
in[maxn];
int n;
bool cmp2(int x,int y)
{
    
return in[x].bg<in[y].bg;
}
int leap(int y)
{
    
if((y%4==0&&y%100)||(y%400==0))return 1;
    
return 0;
}
int DtoI(int d,int m,int y)
{
    
int yy,mm,ret=0;
    
for(yy=1600;yy<y;yy++)
        ret
+=365+leap(yy);
    
for(mm=1;mm<m;mm++)
        ret
+=T[mm]+(int)(leap(y)&&mm==2);
    ret
+=d;
    
return ret;
}
void print(int x)
{
    
int yy,mm,dd;
    
for(yy=1600;x>=365+leap(yy);yy++)
        {
            x
-=365+leap(yy);
            
if(!x)
                {
                    printf(
"31.12.%04d\n",yy);
                    
return;
            }
    }
    
for(mm=1;x>=T[mm]+(int)(leap(yy)&&mm==2);mm++)
        {
            x
-=T[mm]+(int)(leap(yy)&&mm==2);
            
if(x==0)
                {
                    printf(
"%02d.%02d.%04d\n",T[mm]+(int)(leap(yy)&&mm==2),mm,yy);
                    
return;
            }
    }
    printf(
"%02d.%02d.%04d\n",x,mm,yy);
}
int main()
{
    
//freopen("1","r",stdin);
    scanf("%d",&n);
    
int i;
    
for(i=0;i<n;i++)
        {
            
char str[12];
            scanf(
"%s",str);
            
int d,m,y,t;
            scanf(
"%d.%d.%d",&d,&m,&y);
            scanf(
"%d",&t);
            
in[i].test=DtoI(d,m,y);
            
in[i].bg=in[i].test-t;
    }
    sort(
in,in+n);
    
int maxd=in[0].test,index=-1;
    
int heap[maxn],heapsize=0;
    
bool yes=true;
    
int tmp=n;
    
for(;yes&&tmp;maxd--)
        {
            
if(maxd==in[index+1].test)
                {
                    heap[heapsize
++]=index+1;
                    push_heap(heap,heap
+heapsize,cmp2);
                    
++index;
                    
continue;
            }
            
if(heapsize>0)
                {
                    
int top=heap[0];
                    pop_heap(heap,heap
+heapsize,cmp2);
                    heapsize
--;
                    
if(in[top].bg>maxd)yes=false;
                    
else tmp--;
            }
     }
    
if(!yes)
        printf(
"Impossible\n");
    
else
        {
            print(maxd
+1);
    }
    
return 0;
 }
 


posted @ 2008-10-10 22:26 zoyi 阅读(253) | 评论 (0)编辑 收藏
     摘要:   阅读全文
posted @ 2008-09-23 13:26 zoyi 阅读(3498) | 评论 (6)编辑 收藏
仅列出标题
共7页: 1 2 3 4 5 6 7 
欢迎光临 我的白菜菜园

<2024年7月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

常用链接

留言簿(8)

随笔分类

随笔档案

文章档案

相册

acmer

online judge

队友

技术

朋友

搜索

  •  

最新评论

阅读排行榜

评论排行榜