ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1003. Чётность

Вобщем безнадега какая-то

Edited by author 25.04.2007 01:26
не говори!
pperm Some tests :) [14] // Задача 1003. Чётность 4 окт 2007 22:15
100
5
5 6 odd
7 8 odd
1 6 even
1 4 odd
7 8 even
3
3
1 1 odd
3 3 odd
1 3 odd
5
4
1 2 even
4 5 even
1 5 odd
3 3 even
10
5
1 2 even
3 4 odd
5 6 even
1 6 even
7 10 odd
20
8
1 9 odd
10 17 odd
18 26 odd
4 5 odd
27 40 even
21 40 odd
1 20 odd
10 20 odd
200
8
1 9 odd
10 17 odd
18 26 odd
4 5 odd
27 40 even
21 40 odd
1 20 odd
10 20 odd
-1

Output:
4
3
3
3
2
6
Nikolay Ulyanov [Moscow SU] Re: Some tests :) // Задача 1003. Чётность 11 авг 2008 00:40
thanks for tests
Iek.Chan Re: Some tests :) [6] // Задача 1003. Чётность 17 окт 2008 13:52
this sample is Wrong!!

the right output is:
4
3
3
3
6
6

It used me 3 hours time to debug it..!
Final..I find ,,this sample is wrong!!
lql1993 Re: Some tests :) [1] // Задача 1003. Чётность 23 окт 2008 15:28
Could you please tell me how to get the datas?

Edited by author 23.10.2008 15:28

Edited by author 23.10.2008 15:28
Mattias Re: Some tests :) // Задача 1003. Чётность 2 фев 2009 03:28
The original output for the test sequence (as posted by pperm) is correct. The last two tests are identical except for the lenght of the 0/1 sequence, which the third question in the 5th test violates, thus giving 2 as the correct answer. I don't know if this is an issue tested by The Judge though ^^
chinagdjdlyd Re: Some tests :) // Задача 1003. Чётность 6 окт 2009 13:36
There is nobody wrong ...
Because the problem in "18 26 odd" at the fifth test is that 26>20(the length of the sequence) ...
But the description of the problem doesn't say anything about this situation , and also there no data like this ...
So I doubt that we can use the length of the sequence to do what -_-!!!
Iek.Chan писал(a) 17 октября 2008 13:52
this sample is Wrong!!

the right output is:
4
3
3
3
6
6

It used me 3 hours time to debug it..!
Final..I find ,,this sample is wrong!!
Phan Hoài Nam - Đại học Ngoại ngữ Tin Học TP.HCM Re: Some tests :) [2] // Задача 1003. Чётность 30 июн 2010 10:02
you are Wrong!!

the right output is:
4
3
3
3
2
6
Butusov Eugene Re: Some tests :) [1] // Задача 1003. Чётность 24 июн 2012 02:56
correct answer for the test
3
3
1 1 odd
3 3 odd
1 3 odd

is 0, because interval with zero length contains 0 (even) ones :)
Igor Belousov Re: Some tests :) // Задача 1003. Чётность 10 дек 2016 11:49
Butusov Eugene писал(a) 24 июня 2012 02:56
correct answer for the test
3
3
1 1 odd
3 3 odd
1 3 odd

is 0, because interval with zero length contains 0 (even) ones :)
This is not correct. The range from 1 to 1 includes one digit at position 1.
Akaishuichi Re: Some tests :) [1] // Задача 1003. Чётность 3 май 2009 20:53
100
5
5 6 odd
7 8 odd
1 6 even
1 4 odd
7 8 even

for the above input I don't understand why the output should be 4. if 5 6 is odd and 1 6 is even, 1 4 is even, isn't it?
Phan Hoài Nam - Đại học Ngoại ngữ Tin Học TP.HCM Re: Some tests :) // Задача 1003. Чётность 29 июн 2010 23:20
No, 1 4 must be odd, because 1 4 + 5 6 = 1 6 or in other words odd + odd = even :)
Duwe Re: Some tests :) // Задача 1003. Чётность 3 авг 2012 08:46
thanks for tests
100919CN Re: Some tests :) // Задача 1003. Чётность 19 ноя 2012 22:22
thanks for tests
Abid29 Re: Some tests :) // Задача 1003. Чётность 19 май 2020 19:37
thnx its helpfull.i got ac.
miamimagna Re: Some tests :) // Задача 1003. Чётность 27 окт 2024 15:41
all tests passed, still getting wrong answer... it's super old but still I hope to get something
waqas ali i want to know the procedure to submit the problem // Задача 1003. Чётность 12 авг 2008 03:09
i have read all the procedure. but i could not get which file shoul i have to submit for solution plz help me. i will be very thankful to you.
Yes, it is just something strange.
My program passes all the mentioned tests perfectly.
I took in the accounts every remarks mentioned in this forum and still I get WA1.
I'm in the same boat. all tests listed here are passing. but still got the WA1. anyone knows how can i get hold of the tests OJ is using? or at least get the feedbacks on the specific failing test case?
Altoids, maybe we should try this test (answer -> 4):
12
6
1 2 even
1 1 even
3 4 odd
5 6 even
1 6 even
7 10 odd
-1