トップページphp
22コメント2KB

public class Lifework {

■ このスレッドは過去ログ倉庫に格納されています
0001nobodyさん2010/10/08(金) 20:43:02ID:nxl3WMKd
public static final int MAX_OLD = 100;
private static int money = 0;
private static int position = 0;
private static int skill = 0;
private static int luck = 23;
public static void main(String[] args) {
boolean employee = Boolean.parseBoolean(args[0]);
int currentOld = Integer.parseInt(args[1]);
for (int old = currentOld; old <= MAX_OLD; old++) {
if (employee == true) {
work(old);
life();
} else {
neet(old);
life();
}}
System.out.println("money:" + money + " position:" + position
+ " skill:" + skill);
}
private static void work(int old) {
position++;
skill++;
money += (position * skill) * old * luck;
}
private static void neet(int old) {
position = 0;
skill += 0;
money += 0;
}
private static void life() {
money++;
}}
0019nobodyさん2010/10/24(日) 08:38:45ID:Mf7ljAm+
19
0020nobodyさん2010/10/26(火) 17:36:11ID:MqJJYpaK
20
0021 忍法帖【Lv=40,xxxPT】(4+0:8) 【38.5m】 電脳プリオン ◆3YKmpu7JR7Ic 2012/11/17(土) 21:09:50.66ID:????PLT(12079)
21
0022 忍法帖【Lv=40,xxxPT】(5+0:8) 【33.7m】 電脳プリオン ◆3YKmpu7JR7Ic 2012/11/17(土) 21:10:28.89ID:????PLT(12079)
  ∧_∧
  ( ・∀・)   | | ガッ
 と    )    | |
   Y /ノ    人
    / )    <  >__Λ∩
  _/し' //. V`Д´)/ ←>>18
 (_フ彡        /
■ このスレッドは過去ログ倉庫に格納されています