媓陛下,這樣改進行不行? |
送交者: 酸亦鮮 2020年10月18日22:49:18 於 [天下論壇] 發送悄悄話 |
媓陛下,這樣改進行不行?
每人要記錄其選擇的極性(選‘前’的為極性0,選‘後’的為極性1)。每次開票後,根據選舉結果將勝者的極性記錄下來作為下次投票時自己的極性。這樣選擇了勝者的極性不改,選擇了敗者的極性就會翻轉(無論這個敗者是不是你喜歡的)。每次投票後,全社會成員的極性將會趨向一致。 這樣就不怕民主黨或共和黨對這個算法進行反宣傳搗亂了。 /*********************************************************/ /*000*/ /* code_003 */ /*040*/int my_pole = 0; /* 0 or 1 */ /*080*/char* vote((char*) candidate[]) /*0C0*/{/*0C0~400*/ /*100*/ (char*) well_known_candidate[2]; /*140*/ if (there_is_a_candidate_i_like == TRUE) /*180*/ return candidate[i_like]; /*1C0*/ else /*200*/ {/*200~3C0*/ /*240*/ well_known_candidate[0] = /*280*/ the_1st_most_well_known(candidate); /*2C0*/ well_known_candidate[1] = /*300*/ the_2nd_most_well_known(candidate); /*340*/ sort_by_name(well_known_candidate); /*380*/ return well_known_candidate[my_pole]; /*3C0*/ }/*200~3C0*/ /*400*/}/*0C0~400*/ /*440*/check_result() /*480*/{/*480~500*/ /*4C0*/ my_pole = (winners_1st_name > losers_1st_name)? 1 : 0; /*500*/}/*480~500*/ /*********************************************************/ |
|
|
|
實用資訊 | |
|
|
一周點擊熱帖 | 更多>> |
|
|
一周回復熱帖 |
|
|
歷史上的今天:回復熱帖 |
2019: | 七絕 題照(878)國人就是一群豬 | |
2019: | 共產黨抗日起始點是瓦窯堡會議 | |
2018: | 搶共黨的功川普竟說美國建設了中國 | |
2018: | 郭台銘那句「民主不能當飯吃」,遭貿易 | |
2017: | 信陽事件1959 | |
2017: | 山東58-60 大饑荒,1 | |
2016: | 暴徒暴徒滿天下,越民主它越瘋狂,暴徒 | |
2016: | 【金日成】對比【希特勒】 | |
2015: | 范長龍(習近平)軟了:涉領土,中國也不 | |
2015: | 中共社會主義與其核心價值的悖論 | |