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 1269. Obscene Words Filter

Help me please!
Posted by Aybek 13 Jul 2011 03:37
How to read data in Dev c++? I used so many methods: getchar (), gets (), getline (cin, ), scanf (), cin >>.... Now I'm using fgets (str, maxlen, stdin).
These strings from my cod:
fscanf (stdin, "%d\n", &n);
for (0...n - 1)
{
      fgets (s, 10000, stdin);
      ...................
..................
.....................
}
scanf ("%d", &m);
for (0...m - 1)
{
                  fgets (t, 1000000, stdin);
.........
..........
............
}

I have a WA on a test '5'. If you have some tests, please wright.
Thanks for attention! =)