Skip to content

Instantly share code, notes, and snippets.

@rashedcs
Created September 2, 2016 05:05
Show Gist options
  • Save rashedcs/d2331943b73f5f11ddcc78c99c9a8232 to your computer and use it in GitHub Desktop.
Save rashedcs/d2331943b73f5f11ddcc78c99c9a8232 to your computer and use it in GitHub Desktop.
#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