[NKU]sweet @ Google && TopCoder && CodeForces

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            33 Posts :: 1 Stories :: 15 Comments :: 0 Trackbacks
            1 /*
            2     Author: Sweetsc 寂寞之余所做
            3 
            4     設定集
            5         蹭的累:http://baike.baidu.com/view/2213196.htm
            6         比利:http://baike.baidu.com/view/2280157.htm
            7         Yoooooooooo:http://124.228.254.229/html/ent/20110421/192948.html
            8 */
            9 
           10 
           11 import java.util.*;
           12 
           13 class Event {
           14     static Random rand = new Random();
           15     final static String[] eventlist = {
           16         "散步",
           17         "吃飯",
           18         "看電影",
           19         "購物",
           20         "旅游"
           21     };
           22     int event = rand.nextInt() % eventlist.length;
           23     String getEvent() {
           24         return eventlist[event];
           25     }
           26 }
           27 
           28 class Girl {
           29     final static String[] character = {
           30         "蹭的累",
           31         "天然呆",
           32         "普通",
           33         "軟妹子",
           34         "偽娘",
           35         "宅女",
           36         "腐女",
           37         "百合"
           38     };
           39     static Random rand = new Random();
           40 
           41     String name;
           42     int type;
           43     int friendship;
           44 
           45     Girl(String name) {
           46         this.name = name;
           47         type = rand.nextInt() % character.length;
           48         friendship = 0;
           49     }
           50 
           51     String getName() {
           52         String ans = name;
           53         if (friendship < 10) {
           54             if (type == 0return "閉嘴,基佬!";
           55             return "";
           56         }
           57         return ans;
           58     }
           59 
           60     void meet() {
           61         friendship ++;
           62     }
           63 
           64     void date(Event event) {
           65         if (friendship < 20) {
           66             if (type == 0) {
           67                 System.out.println("我為什么要和你" + event.getEvent() + "啊?");
           68             } else {
           69                 System.out.println("不好意思,我那天有事.");
           70             }
           71         } else {
           72             if (type == 0) {
           73                 System.out.println("偶爾和你去" + event.getEvent() + "也可以啊");
           74             } else {
           75                 System.out.println("好啊");
           76             }
           77             friendship += rand.nextInt() % 10 + 5;
           78         }
           79     }
           80 
           81     void lastJudgeMent() {
           82         if (friendship < 80) {
           83             System.out.println("她沉默了許久,轉身離開");
           84             System.out.println("然后就沒有然后了……");
           85             System.err.println("系統提示,好感度不足!");
           86             friendship = 0x80000000;
           87             return;
           88         } else {
           89             switch (type) {
           90                 case 0 : 
           91                     System.out.println("侖家可不是因為喜歡才答應的哦!");
           92                     break;
           93                 case 4 : 
           94                     System.out.println("Yoooooooooooooooooo!!!!");
           95                     System.out.println("你從此,跟隨比利,走向了追求人生哲學的道路");
           96                     System.err.println("系統提示,你求交往的對象是偽娘!");
           97                     break;
           98                 case 6 : 
           99                     System.out.println("她滿懷欣喜的答應了");
          100                     System.out.println("過了幾天,她介紹了個男友給你");
          101                     System.out.println("Yoooooooooooooooooo!!!!");
          102                     System.out.println("你從此,跟隨比利,走向了追求人生哲學的道路");
          103                     System.err.println("系統提示,你求交往的對象是腐女!");
          104                     break;
          105                 case 7 : 
          106                     System.out.println("她面無表情的說:我喜歡的是女生!");
          107                     System.out.println("然后就沒有然后了……");
          108                     friendship = 0x80000000;
          109                     break;
          110                 default : 
          111                     System.out.println("她滿臉通紅,沉默了許久,之后羞澀的說道:好吧");
          112                     System.out.println("從此,你和" + character[type] + name + "過上了幸福的生活");
          113                     System.err.println("終于Goodend了,可喜可賀可喜可賀");
          114             }
          115         }
          116     }
          117 
          118 }
          posted on 2011-05-23 23:55 sweetsc 閱讀(613) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 宿州市| 甘德县| 广南县| 德惠市| 德兴市| 淳化县| 油尖旺区| 卢氏县| 黔江区| 平谷区| 德兴市| 德江县| 定西市| 中江县| 遂平县| 蒙城县| 朔州市| 萍乡市| 祁门县| 宜黄县| 铁岭县| 高尔夫| 福贡县| 宿松县| 彰化县| 施秉县| 克山县| 松潘县| 宜城市| 三都| 大田县| 鄯善县| 界首市| 西林县| 商都县| 会昌县| 陇川县| 大渡口区| 石渠县| 错那县| 施甸县|