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 1183. Brackets Sequence

WA#13 It's unfair
Posted by Sid 17 Feb 2006 22:16
Problem statement.
The input file contains at most 100 brackets (characters '(', ')', '[' and ']') that are situated on a single line without any other characters among them.


I've used scanf("%s",str) and got WA#13 many times!
Then I dicided to read input by character and got Accepted!
Re: WA#13 It's unfair
Posted by ppchain 4 May 2012 19:29
The test data of #13 is a blank line,it is not break the rule of the input specification..
Mean while, scanf("%s", str) statement can't read in a blank line...