|
|
check your last string after FOR. I missed this but now Accepted. Try this tests INPUT tram OUTPUT Tram driver INPUT tram.tram trolleybus OUTPUT Tram driver Edited by author 10.03.2010 23:01 Test 6 is <tram,> or <trolleybus,>. (whitout <>) ;-) Edited by author 28.02.2014 17:38 i need some test... i guess the mistake is about "tram", i don't know which pattern of "tram*" should be counted I had a WA25 when didn't count last word. I assume there are empty lines there String symbols = "`~!№*@#$%^&*()-_=+\\|[{]};:'\",<.>/?в„– \n\r\t"; ;) Input: trams trolleybuses trambus bus Output: Bus driver Input: tram tramtrolleybus bus Output: Tram driver Input: trams trolleybus trolleybus tram! tram. Output: Bus driver Input: bus bus tratrolleybus trolleybu tra. Output: Bus driver Input: trams trolleybuses trambus bus Output: Bus driver Input: tram tramtrolleybus bus Output: Tram driver Input: trams trolleybus trolleybus tram! tram. Output: Bus driver Input: bus bus tratrolleybus trolleybu tra. Output: Bus driver Thanks a lot... :) check this test: tram,tram Right answer is Tram driver :) Edited by author 29.01.2015 16:30 "-|[.|,|!|?|-|:|\t|\n|\r|\\s]" check this test: tram.tram what output should be? bus driver? tram driver? tram driver =) Test 22 is tram,tram or trolleybus,trolleybus - check this )) Hello, pleaze help me to read data correctly in Java. I've spend a lot of time with no result. Who can tell test 24? May b someone also got in trouble with this test. Could you please check my submissions. The accepted one (I actually copy-pasted it from this forum) gives wrong answer to the following data set: tram (only 4 symbols in input.txt file) The output is "Bus driver". My original solution (#4725054) gives "Tram driver" answer to the mentioned data set, but fails on test #6. Can you please give information what is wrong with this test? Thank you. Last line of input data is always terminated with end of line character (it is the usual rule of Timus Online Judge), so this test is incorrect. Ok, got this. So I assume the problem is on my side. Will try to find what is wrong anyone knows test 6, I have been with this problem for 1 hour test 6 should take account ",.?!-: " Edited by author 07.01.2012 01:46 cuz it's very very bad Edited by author 07.01.2012 01:46 Edited by author 01.12.2011 22:52 now AC, a small mistake... If there is ! , : . after word 'tram' or 'trolleybus' should we count this case??? hi guys how i must read string, using c# i mean read the WHOLE string, not just trim before '\n' sry for my language while((line=Console.ReadLine())!=null){ //..code here } Я сначала подумал, что это выдумка, и предствавьте себе мое удивление, когда я и впрямь его обнаружил! Подумать только - настоящий трамвайный форум!.. (Ссылка дана в тексте задачи - forum.tr.ru) о_О там действительно форум! х_х Хм я не один такой! Я туда тоже зашёл Эх... и я тоже... ^ ^ Edited by author 08.11.2009 00:34 Problem statement does not say that last line of input should be terminated with end of line. I know AC solution that answers "Bus driver" for test "tram" (without quotes and without end of line, whole file length is 4 letters). In all new problems of Timus Online Judge on default last line of input data always should be terminated with end of line characters. Edited by author 03.01.2009 14:05 Which problems of Timus Online Judge are new? Why is there this limitation? Files in real world have no such limitation... IN: tram tram OUT: Bus driver Please rejudge!! Sorry for my bad english :) Почему во втором примере троллейбус? по-моему, слово "tram" там встречается 2 раза, а "trolleybus" только 1! =( Because there are no "tram", only "trams" :) They are considered different P. S. Speak English please. Hey Alex, maybe this is habitual, but you do create misleading statements. The fact that I answered the question does not imply that I participated in creating the problem statement. |
|
|