Standard input contains several pairs of a and b
But I got several WA, because there are odd number of lines in the input file.
Got WA with the following..
- Code: Select all
while(gets(a))
{
gets(b);
}
Got Accepted with the folowing
- Code: Select all
while(gets(a) && gets(b))
{
}
