ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1415. Mobile Life

I have WA #3.
Posted by Dembel {AESC USU} 26 Dec 2006 12:44


Edited by author 26.12.2006 14:12
Re: I have Wa#3
Posted by Dembel {AESC USU} 26 Dec 2006 13:02
please give me some test or hint.

Edited by author 26.12.2006 14:13
What output?
Posted by Dembel {AESC USU} 26 Dec 2006 13:12
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?
Posted by Ilya Grebnov[Ivanovo SPU] 26 Dec 2006 16:54
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?
Posted by {AESC USU} Dembel 26 Dec 2006 17:27
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?
Posted by {AESC USU} Dembel 26 Dec 2006 18:39
I have WA#3 now.
Please give some hint about Test#3.
Re: I have OLE#3! why?
Posted by {AESC USU} Dembel 26 Dec 2006 18:39
I have WA#3 now.
Ilya please give some hint about Test#3.
Re: I have OLE#3! why?
Posted by Ilya Grebnov[Ivanovo SPU] 26 Dec 2006 18:48
Mail me to IGrebnov[]goal[]ru.
Re: What output?
Posted by qw! 5 May 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?