337 - Interpreting Control Sequences

All about problems in Volume 3. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

4cm2
New poster
Posts: 3
Joined: Wed Oct 04, 2006 7:44 am

Post by 4cm2 »

Im also stuck on 337
my code is working for the test cases and also any weird inputs that I can think of, but still WA
sample inputs would be a big help here

4cm2
New poster
Posts: 3
Joined: Wed Oct 04, 2006 7:44 am

Post by 4cm2 »

Im also stuck on 337
my code is working for the test cases and also any weird inputs that I can think of, but still WA
sample inputs would be a big help here

pankaj trivedi
New poster
Posts: 11
Joined: Wed Jun 21, 2006 5:11 pm
Contact:

Post by pankaj trivedi »

If you need output for some of your inputs ,I can provide it to you.
Anything other than Accepted is irritating,even Presentation Error

http://acm.uva.es/problemset/usersjudge.php?user=40301

4cm2
New poster
Posts: 3
Joined: Wed Oct 04, 2006 7:44 am

Post by 4cm2 »

Could you try this input and post the correct output?
I tried to use every feature of the program
thanks

5
^i^^^^123
^57^^^b^^
^88^d^d^d^bhello
^62^u^^^r45^e
^h^r^r^r^r^r45
6
^i^^^^123
^57^^^b^^
^88^d^d^d^bhello
^62^u^^^r45^e
^h^r^r^r^r^r45
0

pankaj trivedi
New poster
Posts: 11
Joined: Wed Jun 21, 2006 5:11 pm
Contact:

Post by pankaj trivedi »

My accepted code gives the following output for your input:

Code: Select all

Case 1
+----------+
|123^ 45   |
|          |
|          |
|          |
|          |
|^ ^45   ^ |
|          |
|          |
|          |
|hello     |
+----------+
Case 2
+----------+
|123^ 450  |
|          |
|          |
|          |
|          |
|^ ^45   ^ |
|          |
|          |
|          |
|hello     |
+----------+
Anything other than Accepted is irritating,even Presentation Error

http://acm.uva.es/problemset/usersjudge.php?user=40301

thurbo
New poster
Posts: 9
Joined: Wed Apr 05, 2006 2:00 pm
Location: Stockholm, Sweden

Different output

Post by thurbo »

Hmmm,

My program just got accepted but gives a different output on this test input. (Please note that there is an error in your test input, it says that there will be 6 more lines of input. This will include the 0, not sure if that is what you meant).
My output is as follows:

Code: Select all

Case 1
+----------+
|^^12345   |
|          |
|          |
|          |
|          |
|^ ^ 45    |
|          |
|          |
|          |
|hello     |
+----------+
Case 2
+----------+
|^^12345 0 |
|          |
|          |
|          |
|          |
|^ ^ 45    |
|          |
|          |
|          |
|hello     |
+----------+
Take for example line 4 in either one of the testcases.
^62: go to position 6, 2
^u: go to position 5, 2
^^: insert ^ (5, 2), go to position 5, 3
^r: go to position 5, 4
4: insert 4 (5, 4), go to position 5, 5
5: insert 5 (5, 5), go to position 5, 6

In my opinion there should be a space between ^ and 4.

Jeroen

Post Reply

Return to “Volume 3 (300-399)”