You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
562 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#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;
}