设万维读者为首页 广告服务 技术服务 联系我们 关于万维
简体 繁体 手机版
分类广告
版主:纳川
万维读者网 > 天下论坛 > 帖子
这个或许已经完善得无懈可击。
送交者: 酸亦鲜 2020年10月19日22:45:53 于 [天下论坛] 发送悄悄话
这个或许已经完善得无懈可击。


/*********************************************************/
/*080*/ /* code_004 */
/*0C0*/ int my_pole=0;      /* 0 or 1 */
/*100*/ int no_change_count=0;

/*180*/ char* vote((char*)candidate[])
/*1C0*/ {/*1C0~600*/
/*200*/     (char*) well_known_candidate[2];

/*280*/     if(there_is_a_candidate_i_like==TRUE)
/*2C0*/     {/*2C0~340*/
/*300*/         return candidate[i_like];
/*340*/     }/*2C0~340*/
/*380*/     else
/*3C0*/     {/*3C0~5C0*/
/*400*/         well_known_candidate[0]=
/*440*/                 the_1st_most_well_known(candidate);
/*480*/         well_known_candidate[1]=
/*4C0*/                 the_2nd_most_well_known(candidate);

/*540*/         sort_by_name(well_known_candidate);
/*580*/         return well_known_candidate[my_pole];
/*5C0*/     }/*3C0~5C0*/
/*600*/ }/*1C0~600*/

/*680*/ check_result_of_last_time()
/*6C0*/ {/*6C0~B00*/
/*700*/     if(no_change_count<5)
/*740*/     {/*740~AC0*/
/*780*/         register winners_pole=
/*7C0*/             (winners_1st_name>losers_1st_name)?1:0;

/*840*/         if(my_pole==winners_pole)
/*880*/         {/*880~940*/
/*8C0*/          /* I win again */
/*900*/             no_change_count++;
/*940*/         }/*880~940*/
/*980*/         else
/*9C0*/         {/*9C0~A80*/
/*A00*/             my_pole=winners_pole;
/*A40*/             no_change_count=0;
/*A80*/         }/*9C0~A80*/
/*AC0*/     }/*740~AC0*/
/*B00*/ }/*6C0~B00*/

/*B80*/ main()
/*BC0*/ {/*BC0~D80*/
/*C00*/     while(1)
/*C40*/     {/*C40~D40*/
/*C80*/         check_result_of_last_time();
/*CC0*/         printf(vote(candidate_list_of_this_year));
/*D00*/         sleep(4*year);
/*D40*/     }/*C40~D40*/
/*D80*/ }/*BC0~D80*/
/*********************************************************/


0%(0)
0%(0)
标 题 (必选项):
内 容 (选填项):
实用资讯
回国机票$360起 | 商务舱省$200 | 全球最佳航空公司出炉:海航获五星
海外华人福利!在线看陈建斌《三叉戟》热血归回 豪情筑梦 高清免费看 无地区限制
一周点击热帖 更多>>
一周回复热帖
历史上的今天:回复热帖
2019: 紫阳归来民主光
2019: 疯狂,中南海想把外企都趕走
2018: 习近平有应付经济崩溃的办法?
2018: “做人之道”与“治国之道”
2017: 杀人而左右舆论,盛宣怀的车祸和邓小平
2017: 谈谈共产主义 I - 给共产主义作个简明
2016: 转贴:崖山之後無中國,明亡之後無華夏
2016: 希拉里圆滑,川普偏执。
2015: 王丹为何对法轮功发飙
2015: 溪谷闲人:一不留神,暗访洛杉矶“月子