|
将原来的if end if 改为casewhen
Congratulation ... Code Length: 792 Bytes. Times: 00:00:06
将原来的if end if 改为casewhen
Congratulation ... Code Length: 787 Bytes. Times: 00:00:06
将所有变量名改为一个字母
Congratulation ... Code Length: 765 Bytes. Times: 00:00:06
不用强制转换年数,用隐式转换(日期年份均在 1600年到9999年)
Congratulation ... Code Length: 743 Bytes. Times: 00:00:06
将原来的if end if 改为casewhen
Congratulation ... Code Length: 738 Bytes. Times: 00:00:06
取消返回天天数变量,直接将计算的天数拼接起来返回
Congratulation ... Code Length: 733 Bytes. Times: 00:00:06
在casewhen中进行直接判断是否当月最后一天
Congratulation ... Code Length: 728 Bytes. Times: 00:00:06
删除判断最后一天的标志变量
Congratulation ... Code Length: 723 Bytes. Times: 00:00:06
看了junsansi的代码后,发现自己的代码计算方法很不同,好像也没什么办法继续优化了,算了,就这个样子吧! |
|