#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std ;
int main()
{
char ch ;
int count = 1 ;
while(scanf("%c",&ch)==1)
{
if(ch=='"')
{
if(count%2!=0)
{
printf("``") ;
}
else if(count%2==0)
{
printf("''") ;
}
count++ ;
}
else
printf("%c",ch) ;
}
return 0 ;
}
#include<cstring>
#include<cstdio>
using namespace std ;
int main()
{
char ch ;
int count = 1 ;
while(scanf("%c",&ch)==1)
{
if(ch=='"')
{
if(count%2!=0)
{
printf("``") ;
}
else if(count%2==0)
{
printf("''") ;
}
count++ ;
}
else
printf("%c",ch) ;
}
return 0 ;
}
No comments:
Post a Comment