|
|
Does anybody know what is so special about test no 29? I am positive that my solution is correct (which is obviously not the case) but it gets WA 29. I even compared it with a slow solution (BFS) but I did not find any differences. Please, I would really appreciate some help because I have tested all possible input combination for length 8 and the slow and fast solution produce the same answers. I FOUND MY MISTAKE :) Edited by author 17.06.2011 19:06 Edited by author 17.06.2011 19:06 test: 50 0000000000000000000000000000000000000000000000000000000000001 - 50 times 0000000000000000000000000000000000000000000000000000000000000 ans=2^50-1 : __int64 test: 50 0000000000000000000000000000000000000000000000000000000000001 - 50 times 0000000000000000000000000000000000000000000000000000000000000 ans=2^50-1 : __int64 Well, the length of the strings you provided are not 50 but 61, so the answer for this test is (2^61)-1 The correct test is 50 00000000000000000000000000000000000000000000000001 00000000000000000000000000000000000000000000000000 This test helped me! 8 01100101 00000000 answer: 196 some test case : input : 8 10101010 01010101 answer : 102 intput : 14 00101000111001 00000011000010 answer : 6809 good luck :) Edited by author 16.06.2015 03:25 If WA7, try this: 3 001 000 ans: 7 Thanks for this comment, it helped me to turn WA7 into AC :) Я так и не понял задания :) Напишите, кто въехал, примеры входных и выходных данных с пояснениями Тест из примера 111 000 Есть 111, нажатием на F1 111 превратится в 011. Затем, находясь на первой справа открытой вкладке( 2 позиция ), закроем следующую, то есть 011 --- 010. Затем F1 --- откроем 1 вкладку (110). После через 1 вкладку закроем следующую ( 110 --- 100 ). Далее F1 и все закрыто. 5 нажатий. Тест из примера 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 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"?? What you mean by "from 1 page to 2"?? I mean the second page's opening from first page. 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 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 what's happened when we press "open next page" button? Page'll opened and we move to this page, or what? 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. Если есть вопросы, то пишите 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 Why can it be? Try this test: 3 101 000 ans: 6 Try this test: 3 101 000 ans: 6 Why? Why not: from 1 page to 2 close 3 F1 close 2 close 1 by pressing F1 well, 5 pressings, not 6. first of all you need to open second page and 5 pressings from sample why the answer is 5? Can somebody explain what exactly is the statement? If what happens if we press F1? Can a page be opened more than once? Why can't we press F1 three times and close the pages? I haven't seen so ambiguous up statement in Timus in a long time... If you click the buttons of "Open Next Page" and "Close Next Page", what will happen? |
|
|