您的位置:首页 > 其它

UVa 272 Tex Quotes

2016-11-27 10:51 369 查看
//#include <iostream>
//#include <iomanip>
#include <cstdio>
#include <cmath>
using namespace std;

int main() {
//ios::sync_with_stdio(false);
//FILE *f = fopen("in.txt", "r");

char c;
int begin = 0;
while((c = getchar()) != EOF) {
if(c == '"') {
if(!begin) {
printf("``");
begin = 1;
} else {
printf("''");
begin = 0;
}
} else {
printf("%c", c);
}
}

//fclose(f);
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: