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;
}
#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;
}
相关文章推荐
- Problem 001——UVa 272 - TEX Quotes
- Uva 272 TEX Quotes
- UVa272_TEX Quotes
- uva 272 TEX Quotes
- UVa--272--TEX Quotes
- Uva 272 - TEX Quotes
- UVa-272-TEX Quotes
- UVa272 TEX Quotes
- UVa272——TEX Quotes
- UVA 272 Tex Quotes
- UVA 272 TEX Quotes
- uva272 - TEX Quotes
- UVa 272 Tex Quotes
- UVa 272 - TEX Quotes
- 【UVA272】TEX Quotes
- UVa 272 TEX Quotes
- UVA - 272 TEX Quotes
- UVa 272 - TEX Quotes
- UVA 272 - TEX Quotes
- UVA 272 TEX Quotes