ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1186. Chemical Reactions

To admins
Posted by Глащенко Никита 3 Aug 2009 21:16
My AC program gives wrong answer on test

4C
1
(C(C))2

formulas are equal, but my program doesn't agree with me.
This test is incorrect
Posted by Vladimir Yakovlev (USU) 7 Aug 2009 16:00
No subject
Posted by Глащенко Никита 14 Aug 2009 16:34
<formula> ::= <sequence>             // <sequence>
<sequence> ::= <element><number>     // <element><number>
<number> ::= 2                       // <element>2
<element> ::= '(' <sequence> ')'     // (<sequence>)2
<sequence> ::= <element><element>    // (<element><element>)2
<element> ::= C                      // (C<element>)2
<element> ::= '(' <sequence> ')'     // (C(<sequence>))2
<sequence> ::= C                     // (C(C))2

Without some obvious steps.

Am I wrong?