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 1830. Help in the RNOS

Я так и не понял задания :)
Posted by zendo 30 Apr 2011 18:05
Я так и не понял задания :)
Напишите, кто въехал, примеры входных и выходных данных с пояснениями
Re: Я так и не понял задания :)
Posted by Nikita++ 30 Apr 2011 18:30
Тест из примера
111
000

Есть 111, нажатием на F1 111 превратится в 011. Затем, находясь на первой справа открытой вкладке( 2 позиция ), закроем следующую, то есть 011 --- 010. Затем F1 --- откроем 1 вкладку (110). После через 1 вкладку закроем следующую ( 110 --- 100 ). Далее F1 и все закрыто. 5 нажатий.
Re: Я так и не понял задания :)
Posted by Nikita++ 30 Apr 2011 18:31
Если есть вопросы, то пишите
Re: Я так и не понял задания :)
Posted by Nikita++ 30 Apr 2011 18:38
Test
111
000

We have 3 open windows = 111,so we press F1 and 111 --- 011. Then, when we are on the first opened window ( 2 position ), we can close the next: 011 --- 010. Then press F1 --- open 1 window (110). We are on 1 position and close 2nd ( 110 --- 100 ). Then press F1 and all is closed. We have pressed the buttons 5 times.

Edited by author 30.04.2011 18:38

Edited by author 30.04.2011 18:38
Re: Я так и не понял задания :)
Posted by faustov 1 May 2011 11:10
Nikita++ wrote 30 April 2011 18:30
Тест из примера
111
000

Есть 111, нажатием на F1 111 превратится в 011. Затем, находясь на первой справа открытой вкладке( 2 позиция ), закроем следующую, то есть 011 --- 010. Затем F1 --- откроем 1 вкладку (110). После через 1 вкладку закроем следующую ( 110 --- 100 ). Далее F1 и все закрыто. 5 нажатий.

I don't think so.
It must be something like this:
from 1 page to 2
close 3
press F1
close 2
F1
_________________
5 pressings.

I don't know what's wrong but the 3-d test fails my program with "Wrong answer". Well, I have checked it manually and everything is OK, answers are right. Is this a problem with your checking system?

Edited by author 01.05.2011 11:14

Edited by author 01.05.2011 11:14
Re: Я так и не понял задания :)
Posted by Erop [USU] 1 May 2011 19:28
faustov wrote 1 May 2011 11:10

I don't think so.
It must be something like this:
from 1 page to 2
close 3
press F1
close 2
F1
_________________
5 pressings.

I don't know what's wrong but the 3-d test fails my program with "Wrong answer". Well, I have checked it manually and everything is OK, answers are right. Is this a problem with your checking system?

What you mean by "from 1 page to 2"??
Re: Я так и не понял задания :)
Posted by faustov 1 May 2011 19:51
Erop [USU] wrote 1 May 2011 19:28
faustov wrote 1 May 2011 11:10


What you mean by "from 1 page to 2"??

I mean the second page's opening from first page.
Re: Я так и не понял задания :)
Posted by Erop [USU] 1 May 2011 20:00
the second page is already opened!
1) press F1 - we close the first page. Now we are on the second page [1]11 -> 0[1]1
2) close third page 0[1]1 -> 0[1]0
3) F1 - open first page. Now we are on first page 0[1]0 -> [1]10
4) close second page [1]10 -> [1]00
5) F1 - close first page  [1]00 -> 000

Nikita++ is absolutely right
Re: Я так и не понял задания :)
Posted by faustov 1 May 2011 20:10
When we start from 101 layout - the page 2 is closed. We have to open page 2 to move to this page and than press the button for page 3 closing
Re: Я так и не понял задания :)
Posted by faustov 1 May 2011 20:10
what's happened when we press "open next page" button? Page'll opened and we move to this page, or what?
Re: Я так и не понял задания :)
Posted by Erop [USU] 1 May 2011 20:24
faustov wrote 1 May 2011 20:10
what's happened when we press "open next page" button? Page'll opened and we move to this page, or what?

No. Page will openend. We don't move anywere. The current page won't be closed and we always are on the first opened page.