UVA272:TEX Quotes

姬向明
2023-12-01

#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
    char c;
    bool p=true;
    while((c=getchar())!=EOF){
        if(c=='"'){
            printf("%s",p?"``":"''");
            p=!p;                                                                      
        }else printf("%c",c);
    }
}

 类似资料:

相关阅读

相关文章

相关问答