|
|
вернуться в форумI have WA #3. Edited by author 26.12.2006 14:12 Re: I have Wa#3 please give me some test or hint. Edited by author 26.12.2006 14:13 What output? input1 1 10 10 2 Znaika 2 5 5 -5 -5 -5 -5 5 5 output1 Power on. CELL_ID:Znaika, SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:RED Cell changed. CELL_ID:Znaika, SIGNAL_LEVEL:ORANGE{нужна ли эта строчка?} Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:GREEN input2 4 0 0 1 Romashka 0 10 1 Lutik 10 10 1 Znaika 10 0 1 Children 2 5 5 -5 15 -5 -5 5 5 output2 Power on. CELL_ID:Children, SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:RED Cell changed. CELL_ID:Lutik, SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:VIOLET Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE input3 2 0 0 1 A 100 0 1 B 1 55 0 60 0 output3 Power on. CELL_ID:B, SIGNAL_LEVEL:RED there outputs is correct, aren't they? Edited by author 26.12.2006 16:30 Re: What output? Test 1 from above Answer: Power on. CELL_ID:Znaika, SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:RED Signal changed. SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:GREEN Test 2 from above is incorrect Test 3 from above Answer: Power on. CELL_ID:B, SIGNAL_LEVEL:RED Test 4: 4 0 0 1 Romashka 0 10 1 Lutik 10 10 1 Znaika 10 0 1 Children 2 5 5 -5 -5 -5 -5 5 5 Answer: Power on. CELL_ID:Children, SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:RED Cell changed. CELL_ID:Romashka, SIGNAL_LEVEL:VIOLET Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:VIOLET Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE Test 5: 4 0 0 1 Romashka 0 10 1 Lutik 10 10 1 Znaika 10 0 1 Children 2 5 5 -5 15 -5 15 5 5 Answer: Power on. CELL_ID:Children, SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:RED Cell changed. CELL_ID:Lutik, SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:VIOLET Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:VIOLET Signal changed. SIGNAL_LEVEL:INDIGO Signal changed. SIGNAL_LEVEL:BLUE Signal changed. SIGNAL_LEVEL:GREEN Signal changed. SIGNAL_LEVEL:YELLOW Signal changed. SIGNAL_LEVEL:ORANGE I have OLE#3! why? const color:array[-6..0]of string=('RED','ORANGE','YELLOW','GREEN','BLUE','INDIGO','VIOLET'); sig - power of signal(from -6 to 0) cell - number of cell(на которую мы переходим) er - number of cell(с которой мы переходим) {здесь я рассматриваю случай когда цветовой индикатор красный} from my program: ... if (sig<>-6) then begin if cell<>er then writeln('Cell changed. CELL_ID:',name[cell],', SIGNAL_LEVEL:',color[sig]) else writeln('Signal changed. SIGNAL_LEVEL:',color[sig]); end ... I have OLE#3 ... if (sig<>-6)and(cell<>er) then begin writeln('Cell changed. CELL_ID:',name[cell],', SIGNAL_LEVEL:',color[sig]) end ... I have WA#3 Please help me. Edited by author 26.12.2006 18:20 Re: I have OLE#3! why? I have WA#3 now. Please give some hint about Test#3. Re: I have OLE#3! why? I have WA#3 now. Ilya please give some hint about Test#3. Re: I have OLE#3! why? Mail me to IGrebnov[]goal[]ru. Re: What output? Послано qw! 5 май 2007 05:37 I think that input 3 is wrong, level of signal is negative (when it Power on there are no signal here). I am not ACed but im shure it wrong. Am I right? |
|
|