![]() |
在這個頁面顯示本主題全部的 3 個文章 |
奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 如何精簡 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=2003)
如何精簡
A:=C>REF(C,1);
B:=C<REF(C,1);
MM:=A or
(NOT(B) and REF(A,1)) or
(NOT(B) and NOT(REF(B,1)) and REF(A,2)) or
(NOT(B) and NOT(REF(B,1)) and NOT(REF(B,2)) and REF(A,3)) ;
上述MM若有N組時,皆是成立的條件,這樣有沒有精簡學法?
專此請教 謝謝
這樣可以稍微簡化一下
A:=C>REF(C,1);
B:=C<REF(C,1);
MM:=A or
(NOT(B) and REF(A,1)) or
sum(NOT(B),2)=2 and REF(A,2)
sum(NOT(B),3)=3 and REF(A,3)) ;
若要能處理 N 組, 建議改用 VBS 撰寫
謝謝
引用:
最初由 cgjj 發表
這樣可以稍微簡化一下
A:=C>REF(C,1);
B:=C<REF(C,1);
MM:=A or
(NOT(B) and REF(A,1)) or
sum(NOT(B),2)=2 and REF(A,2)
sum(NOT(B),3)=3 and REF(A,3)) ;
若要能處理 N 組, 建議改用 VBS 撰寫
全部時間均為台灣時間, 現在時間為10:13 | 在這個頁面顯示本主題全部的 3 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.