UVA - 272 TEX Quotes
2017-09-02 11:21
351 查看
//入门经典P47 水题 #include <cstdio> int main() { int c, q = 1; while ((c = getchar()) != EOF) { if (c == '"') { printf("%s", q?"``":"''"); q = 1 - q; } else printf("%c", c); } return 0; } /* #include <iostream> #include <cstdio> using namespace std; int main() { int c, j = 1; while ((c = getchar()) != EOF) { if (c == '"') { cout << (j?"``":"''"); j = !j; } else cout << (char)c; } return 0; } */
相关文章推荐
- UVa 272 - TEX Quotes
- UVA272 TEX Quotes
- UVa 272 Tex Quotes
- UVA 272 TEX Quotes
- UVa 272 - TEX Quotes
- Problem 001——UVa 272 - TEX Quotes
- UVa272_TEX Quotes
- Uva 272 TEX Quotes
- UVA 272 - TEX Quotes
- 【UVA272】TEX Quotes
- (UVA)272 - TEX Quotes
- UVa272——TEX Quotes
- UVa272 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