#13871: __答案


elvisliu (方塊)

學校 : 臺北市私立延平高級中學
編號 : 69054
來源 : [203.72.178.252]
最後登入時間 :
2018-12-19 17:05:19

#include using namespace std ;

int main() {

int n=1;

char c;

while(cin.get(c))

{

    if(c=='"')

    if(n++%2) cout<<"``"; else cout<<"''"; else cout<<c;  

}  

}

#13872: Re:答案


elvisliu (方塊)

學校 : 臺北市私立延平高級中學
編號 : 69054
來源 : [203.72.178.252]
最後登入時間 :
2018-12-19 17:05:19

#include using namespace std ;

using namespace std ;

int main() {

int n=1;

char c;

while(cin.get(c))

{

    if(c=='"')

    if(n++%2) cout<<"``"; else cout<<"''"; else cout<<c;  

}  

}