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
337 - Interpreting Control Sequences
Moderator: Board moderators
-
- New poster
- Posts: 11
- Joined: Wed Jun 21, 2006 5:11 pm
- Contact:
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
http://acm.uva.es/problemset/usersjudge.php?user=40301
-
- New poster
- Posts: 11
- Joined: Wed Jun 21, 2006 5:11 pm
- Contact:
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
http://acm.uva.es/problemset/usersjudge.php?user=40301
Different output
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:
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
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 |
+----------+
^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