Poj Solution 1488

http://poj.org/problem?id=1488

#include<stdio.h>
int main()
{
    char c;
    int q=1;
    while((c=getchar())!=EOF)
    {
        if(c == '"')
        {
            printf(q ? "``":"''");
            q=!q;
        }
        else
            printf("%c",c);
    }
    return 0;
}
											
This entry was posted in poj. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *