Created
September 2, 2016 05:05
-
-
Save rashedcs/d2331943b73f5f11ddcc78c99c9a8232 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<stdio.h> | |
#include<string.h> | |
using namespace std; | |
int main() | |
{ | |
char s[50000]; | |
long i,l,p=0; | |
while(gets(s)) | |
{ | |
l=strlen(s); | |
for(i=0;i<l;i++) | |
{ | |
if(s[i]=='"') | |
{ | |
p=p+1; | |
if(p%2==1) cout<<"``"; | |
else cout<<"''"; | |
} | |
else cout<<s[i]; | |
} | |
cout<<endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment