'commit'
This commit is contained in:
18
RuMenJingDian/LiTi/P_3_5.cpp
Normal file
18
RuMenJingDian/LiTi/P_3_5.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
ios::sync_with_stdio(false); //读入输出优化的强迫症
|
||||
int c, q = 1;
|
||||
//在windows平台,stdin输入流的EOF标志是 ctrl + z,然后回车就结束了!在黑窗口下试试,
|
||||
// Clion中需要进入调试模式,然后ctrl+d 即可退出
|
||||
//参考:https://www.zhihu.com/question/41952758
|
||||
while ((c = getchar()) != EOF) {
|
||||
if (c == '"') {
|
||||
printf("%s", q ? "``" : "''");
|
||||
q = !q;
|
||||
} else printf("%c", c);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user