TeX is a typesetting language developed by Donald Knuth. It takes source text together with a few typesetting instructions and produces, one hopes, a beautiful document. Beautiful documents use `` and " to delimit quotations, rather than the mundane …
在TeX中,左双引号是“``”,右双引号是“''”.输入一篇包含双引号的文章,你的任务是 把它转换成TeX的格式. 样例输入: "To be or not to be," quoth the Bard, "that is the question". 样例输出: ``To be or not to be,'' quoth the Bard, ``that is the question''. 本题的关键有两个:输入字符串和判断左右括号. 1.输入字符串. 之前学习了…
在TeX中,左双引号是“``”,右双引号是“''”.输入一篇包含双引号的文章,你的任务是把它转换成TeX的格式. 样例输入: "To be or not to be,"quoth the Bard,"that is the question". 样例输出: ``To be or not to be,''quoth the Bard,``that is the question''.…
问题: 在Tex中,做双引号的" `` ",右双引号是" '' "(两个回车左边的).输入一篇包含双引号的文章,你的任务是把它转换成TeX的格式. 样例输入: "To be or not to be,"quoth the Bard,"that is the question".样例输出: ``To be or not to be''quoth the Bard…