您的位置:首页 > 其它

UVA272 TEX Quotes

2016-10-29 13:41 357 查看
UVA 272

#include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;

char str;

int main()
{
bool f = true;

while((str = getchar())!=EOF)
{
if(str == '"')
{
printf("%s",f ? "``" : "''");
f=!f;
}
else
putchar(str);
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ACM uva 水题