Show all threads Hide all threads Show all messages Hide all messages |
Help with WA 4 pls | Dmitriy | 1380. Ostap's Chess | 5 Jul 2023 19:17 | 2 |
Please tell me this test and tell me if the three-time repetition of the position by the king is taken into account (in chess, in this situation there is a draw) Three-time repetition or the fifty-move rule are not considered in this problem (or at least I didn't implement them and got AC). |
Nice prob. Some tests here :) | BdE | 1380. Ostap's Chess | 12 Sep 2018 00:22 | 2 |
In: 0 0 0 4 0 0 -4 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 -4 0 0 0 0 0 0 0 0 0 -1 0 -1 0 0 0 0 0 -1 -6 -1 0 0 0 0 0 -1 -1 -1 0 0 0 0 0 0 0 0 0 0 0 2 White d7-c5 a5-c5 Out: Mate 0 0 0 4 0 0 -4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4 0 2 0 0 0 0 0 0 0 -1 0 -1 0 0 0 0 0 -1 -6 -1 0 0 0 0 0 -1 -1 -1 0 0 0 0 0 0 0 0 0 0 0 In: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 6 2 0 0 0 -5 0 0 1 Black d4-e5 Out: Draw 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 6 2 0 0 0 -5 0 0 In: 0 -1 0 0 0 0 0 0 0 0 0 -4 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 6 1 0 0 0 0 0 0 1 Black d7-a7 Out: Mate 0 -1 0 0 0 0 0 0 -4 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 6 1 0 0 0 0 0 0 In: 0 0 0 0 0 0 0 0 0 0 0 -4 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 6 1 0 0 0 0 0 0 1 Black d7-a7 Out: Check 0 0 0 0 0 0 0 0 -4 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 6 1 0 0 0 0 0 0 Passing all this tests will probably gives you AC, of course, if you don't make any dumb mistakes like i did :) GL. nwm 🤔BdE🤔'` 12 Sep 2018 00:22 Edited by author 13.09.2018 14:03 Edited by author 13.09.2018 14:03 |
To admins | graf-m | 1380. Ostap's Chess | 18 Aug 2016 05:14 | 1 |
The problem's author did not write that, after the last move you need to print out a position, but it follows from the third example and tests Please add this condition |
If WA#9 | Timur Sitdikov (MSU Tashkent) | 1380. Ostap's Chess | 11 Jan 2016 03:38 | 2 |
If WA#9 Timur Sitdikov (MSU Tashkent) 15 Jul 2011 10:26 Try this: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 White c6-d7 Incorrect 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I had WA9 because i thought there would be only one king of the same color, but seems like actually there might be more. Thankfully to take more kings into account i had to delete some of my code rather than add some. An example test: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 6 0 6 0 0 0 0 0 1 White <any move> (for example a1-a2 or c1-c2) The answer is "Incorrect" and then a table, because no matter what white does, there's at least one king remaining under check. Also had WA7 because of using shortint and a bit too small constant for amount of available moves. After changing from 100 to 300 and from shortint to longint got AC. An example test, where white have 288 available moves: 5 5 5 5 5 5 5 5 5 0 0 0 0 0 0 5 5 0 0 0 0 0 0 5 5 0 0 0 0 0 0 5 5 0 0 0 0 0 0 5 5 0 0 0 0 0 0 5 5 0 0 0 0 0 0 5 5 5 5 5 5 5 5 5 1 White a1-b2 Result: "Draw" and table output. Edited by author 11.01.2016 03:55 |
I don't think this is a good problem. | Element | 1380. Ostap's Chess | 14 Aug 2013 13:11 | 2 |
Bad statement and poor testdata. |
WA 28 | pperm | 1380. Ostap's Chess | 2 Nov 2010 16:08 | 1 |
WA 28 pperm 2 Nov 2010 16:08 test: 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 3 White a1-a2 h8-h7 a2-a4 ans: Correct Correct Correct 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
finally accepted =) | fEndEr[Solikamsk] | 1380. Ostap's Chess | 25 Dec 2008 16:01 | 1 |
if you are wa7 - try something like.. 0 0 0 0 0 0 0 -6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 1 White a1-h8 ----- outp: Draw 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 |
Be careful ( clarification ) | Antonov Yuri (USU) | 1380. Ostap's Chess | 14 Dec 2005 23:59 | 2 |
Note :
Input 0 0 0 0 0 0 0 -6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 3 White a1-a2 h8-h7 a2-a4 Output Correct Correct Correct 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 It`s strange on first looking but ... Maybe some clarifications will be added to the problem description. Anyway good luck !!! More over ... 0 0 0 0 0 0 0 -6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 White a1-a3 Output Incorrect 0 0 0 0 0 0 0 -6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 |
For anyone who got AC | Antonov Yuri (USU) | 1380. Ostap's Chess | 10 Dec 2005 00:26 | 1 |
I got WA28 Maybe i misunderstood something ... I suppose that : input ------------ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 White a1-a3 output ------------ Correct 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 because the initial position may be senseless ... Am i right ? or not ??? |
FOR EVERYBODY!!! | Leo | 1380. Ostap's Chess | 21 Oct 2005 23:40 | 1 |
You can kill the enemy king!!! It isn't the incorrect move!!! (the 20-th test) |
To ejudge | Andrey Mokhov | 1380. Ostap's Chess | 28 Sep 2005 14:28 | 8 |
I don't quite understand: should I consider "en passant, castling and promotion" legal or illegal moves? Or they just won't appear in the judge input? Just think that there are no usual rules about these moves in the Ostap's chess. Thank you, got AC. Just stupid bug, as always :) Have you considered some tricky cases? (I get wrong answer on test 9, even though it passes all my tests, and some famous ones, with more than 60 moves, taken from the internet :) ) In this test more then one king on black or white, I dont remember. But I have WA on 20 test, and I also dont know why? Well, now I'm stuck on the same test case :) But if such denaturated inputs are possible, then I think there's a problem with the problem statement... Who knows what other situations are possible????? Liviu I know what intersting in 20 test. In first move one side cuts the king of other side, and this move are correct!!! I got AC! |
toejudge2 | Orenburg SU 7 | 1380. Ostap's Chess | 27 Sep 2005 00:42 | 1 |
I have question about moves of a pawn. In a usual chess the pawn can go on two cells if it before did not go yet. This rule is kept and in Ostap chess as follows from the description of a problem. But in a problem it is told, that we have not initial position. It is logical to assume, that the pawn can go on two cells if it has coordinates black - *7 and white *2. But as then be for the following cases: 0 0 0 0 0 0 0 -6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 White a1-a3 and 0 0 0 0 0 0 0 -6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 3 White a1-a2 h8-h7 a2-a4 Or such position does not meet in judge tests? And another question, if after move of one side another side havent any figure, if it is stalemate? Edited by author 27.09.2005 00:47 |
output | Liviu Ciortea | 1380. Ostap's Chess | 26 Sep 2005 20:04 | 1 |
output Liviu Ciortea 26 Sep 2005 20:04 after correct moves should the final position be printed? it says only to print it after illegal moves, mate or stalemate, but in the sample output #3 is printed after only a correct position... and how do pawns move: white ones upward and black ones downward? Edited by author 26.09.2005 20:19 Edited by author 26.09.2005 20:20 |