TeX中的引号
2017-10-29 15:52
155 查看
Sample Input
"To be or not to be," quoth the Bard, "that
is the question".
The programming contestant replied: "I must disagree.
To `C' or not to `C', that is The Question!"
Sample Output
``To be or not to be,'' quoth the Bard, ``that
is the question''.
The programming contestant replied: ``I must disagree.
To `C' or not to `C', that is The Question!''
"To be or not to be," quoth the Bard, "that
is the question".
The programming contestant replied: "I must disagree.
To `C' or not to `C', that is The Question!"
Sample Output
``To be or not to be,'' quoth the Bard, ``that
is the question''.
The programming contestant replied: ``I must disagree.
To `C' or not to `C', that is The Question!''
#include<stdio.h> int main() { int c,q=1; while((c=getchar())!=EOF) { if(c=='"') { printf("%s", q?"``":"''"); q=!q; } else printf("%c", c); } return 0; }
相关文章推荐
- TeX中的引号---一道竞赛题
- TeX的引号(UVA272)
- 例题3-1 TeX中的引号(TeX)
- 【UVa】[272]TeX中的引号
- TeX中的引号 (Tex Quotes, UVa 272)
- 《算法竞赛入门经典2ndEdition 》例题3-1 TeX中的引号(Tex Quotes, Uva 272)
- 例题3_1 TeX中的引号(TeX Quotes,UVa 272)
- UVa 272 Tex Quotes(TEX中的引号)
- Tex中的引号
- TeX中的引号
- 3-1 TeX中的引号(TexQuotes, UVa 272)
- Tex中的引号(UVa 272)
- TeX中的引号
- Tex中的引号(Uva 272)
- 在Tex中,左引号是'',右引号是“
- teX中的引号
- TeX中的引号(Tex Quotes,UVa 272)
- UVA 272 Tex中的引号
- Tex中的引号
- TeX中的引号