Show all threads Hide all threads Show all messages Hide all messages |
Bad statement (Wa 4 reason) | FaNato4kA_TiMoFeYa | 1050. Preparing an Article | 26 Aug 2024 17:35 | 3 |
The description of the problem says: "Your program must take into account the command \", which is used to write two dots above a vowel. For example, \"e means the symbol ë." But you don't really have to distinguish between vowels and consonants for this command. Edited by author 26.08.2024 17:37 You are amazingly attentive! I solved the problem on the first try simply because I didn't even think about this detail of the task) |
WA5, any tests? | motoras | 1050. Preparing an Article | 23 Aug 2019 04:47 | 2 |
I run out of ideas, trying to pass test #5. Does anyone can tell me how this test looks like? Thank you, There seem to be some non-ASCII characters in the test cases. If the input is loaded byte by byte, then the result should be output byte by byte as well. I used Rust and handled the bytes as chars, which were stored as 4-byte unicode, but mistakenly output the result by chars instead of bytes. |
To admins: Weak tests | Smilodon_am [Obninsk INPE] | 1050. Preparing an Article | 2 Jan 2019 01:45 | 1 |
My Accepted solution 8202681 for problem 1050 gives incorrect answer on my test (test contains command '\endinputany' in the middle of text). Please add my test to test package. TEST: There is no "q in this sentence. \par "Talk child," said the unicorn. \endinputany She s\"aid, "\thinspace `Enough!', he said." \endinput INCORRECT ANSWER: There is no q in this sentence. \par ``Talk child,'' said the unicorn. \endinputany CORRECT ANSWER: There is no q in this sentence. \par ``Talk child,'' said the unicorn. \endinputany She s\"aid, ``\thinspace `Enough!', he said.'' \endinput |
What is the blank line? | btas | 1050. Preparing an Article | 13 Aug 2016 14:59 | 6 |
Hi "Paragraph ends in the source text are marked either by at least one blank line, or a \par command or both." What is the blank line? '\n'? Or some space symbol which ends with '\n'? Edited by author 13.08.2016 00:25 Edited by author 13.08.2016 00:26 Blank line is the 3rd line in example input, no spaces or other symbols. I suppose you're confused by looking at the input after highlighting it, but there are really no spaces there, it's just highlighting works that way. But how can I detect it in C++? I tried '\n', '\r' and "\n\r\r" but i have WA#3 :( I had WA3 because i forgot that after \endinput (not only after \par or blank line) i should check if there's an extra quote to be removed in that paragraph. Maybe that will help you. As about your question, i'm not really good at C++, but maybe i can suggest http://linux.die.net/man/3/getline or something. And if that line is of length 0, then it's blank. |
ML :C | Debi#FML | 1050. Preparing an Article | 27 Feb 2016 11:32 | 1 |
ML :C Debi#FML 27 Feb 2016 11:32 Memory limit test 1. C++. using: vector<string> str str[i].erase() str[i].insert() using erace and insert it creats another string object. I know, so how can i insert '' or `` instead of " ? |
Hints for WA4 | Vladimir Leskov [USU]`` | 1050. Preparing an Article | 23 Nov 2015 19:38 | 1 |
Input: abcd\" \endinput Output: abcd\" \endinput |
I've got WA 4 | Muravjev Slava [Samara SAU] | 1050. Preparing an Article | 22 Jul 2015 14:00 | 2 |
Give me some tests or advices, please. Got WA4, cause ignore situation \par" Input: There is no "q in this sentence. \par" "Talk child," said the unicorn. She s\"aid, "\thinspace `Enough!', he said." \endinput Output: There is no q in this sentence. \par`` ''Talk child, said the unicorn. She s\"aid, ``\thinspace `Enough!', he said.'' \endinput |
if you get WA#3 try this test case: | Adhambek | 1050. Preparing an Article | 8 Jan 2015 10:03 | 1 |
Input: "Hello world "Next paragraph" and this works " \par last one \endinput Output: Hello world ``Next paragraph'' and this works \par last one \endinput |
WA #1 | SeJIya | 1050. Preparing an Article | 20 May 2014 04:00 | 1 |
WA #1 SeJIya 20 May 2014 04:00 |
How to read data in pascal? | MOPDOBOPOT (USU) | 1050. Preparing an Article | 13 Aug 2012 11:45 | 1 |
I tried to read data string by string and then by characters but in both cases I got Crash(access violation) on 1st test :( |
Gimme some tests and answers. I got WA on test #4. | Maigo Akisame | 1050. Preparing an Article | 27 Jun 2012 09:12 | 16 |
Edited by author 10.06.2004 19:31 post your mail, I have all tests Could you post to me ? My e-mail : FlyMU@hotmail.com I received the tests . Thank you very much !!! Edited by author 12.06.2004 23:27 Tests Danica Porobic 13 Jun 2004 16:29 Could someone send me the tests, too? My email is dporobic@eunet.yu. Thanks in advance, all the best, Danica maigoakisame@yahoo.com.cn Can you give me these test?I got WA quangviet2004@yahoo.com Give me tests on this problem please. i'm getting WA on 6th test. dr@hotmail.kz Could you give me? failedpeter.student@sina.com 3x~ This adress doesn't work: timustests.4t.com Could you please give me the tests ? My email : alexpopa9@gmail.com. Thank you very much ! yuxin200488@hotmail.com thanks Please, post it to me too... I want to find out my mistake... _magistr.90@mail.ru There is "_" before magistr. Thanks a lot! send me this tests please forensic@rambler.ru Please send these tests to me !thanks! ysymyth@gmail.com |
Hints if you've got WA 4 | Petr Huggy (Pskov) | 1050. Preparing an Article | 4 Aug 2011 15:54 | 2 |
1. \par marks end of paragraph, but \\par is not (it is command \\ followed by word `par'). 2. Carefully calculate number of backslashes (\). \\"" gives \\``'', but \\\"" gives \\\" \\ command is not described in the task, only \" is |
cannot understand \par | Seter | 1050. Preparing an Article | 6 Oct 2010 16:00 | 4 |
example: \""\para\"" what's right output? And how about the following input: \""\para\"" \endinputpar \endinput" \endinput What about: "\p ar" \endiput I cannot understand the question at all... corrected example: \""\para\"" \endinput correct output: \"``\para\"'' \endinput thus \para is just some other TeX command and you should not care what it does. in this test all text contained in one paragraph. |
After changing while(!cin.eof()) into while(1), finally accepted ! Happy : ) | Phan Hoài Nam - Đại học Ngoại ngữ Tin Học TP.HCM | 1050. Preparing an Article | 13 Aug 2010 10:06 | 1 |
|
Hint: use Java (+) | ASK | 1050. Preparing an Article | 23 Mar 2010 20:49 | 1 |
It is possible to get AC with a 10-lines program. Simply use regular expressions: Q = "(?<!\\\\)\"" for " which is not preceded by \ ".*?(?:\n\r?\n|\\\\par(?![A-Za-z])|$)" for paragraph (note \r) For each paragraph you get with Scanner.findWithinHorizon, do replaceAll matching Q+"(.*?)"+Q with "``$1''" and then replaceFirst Q with an empty string. Btw, the real TeX parsing is much more complicated, e.g., \\par would not end a paragraph. |
Hint for WA3: blank lines are not that blank | ASK | 1050. Preparing an Article | 23 Mar 2010 20:23 | 1 |
I passed test 3 after replacing my "blank line" regexp "\n\n" with "\n\r?\n". Apparently "blank" (which used to mean "empty") here means empty or "\r". |
Always WA #3 | beststu | 1050. Preparing an Article | 27 Jul 2008 13:38 | 2 |
Don't forget that \endinput is end of paragraph too. |
\\ command | asd | 1050. Preparing an Article | 11 Jan 2008 15:12 | 3 |
is sequence of two slash symbols is a command? For example: \\"" \endinput What is right output? \\" or not? The right output is \\" \endinput My AC program output: //``'' /endinput |
why i got WA#1 but pass the example | caoqinxiang | 1050. Preparing an Article | 15 Nov 2007 17:34 | 1 |
|
Advice | Olzhas2dy | 1050. Preparing an Article | 17 Jun 2007 03:49 | 1 |
Advice Olzhas2dy 17 Jun 2007 03:49 If you want ACC fast, don't use "super-extra-hiper-shmiper smart" solution. Very silly and small one works well(not very fast though). |