10262 - Suffidromes

The forum to report every bug you find or tell us what you'd like to find in UVa OJ

Moderator: Board moderators

10262 - Suffidromes

Postby Jan » Sat Sep 08, 2007 4:23 am

The problem states..

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))
{
   
}
Ami ekhono shopno dekhi...
HomePage
Jan
Guru
 
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh

Return to Bugs and suggestions

Who is online

Users browsing this forum: No registered users and 0 guests