poj 3981 字串替換

2022-08-18 16:54:11 字數 591 閱讀 8379

字串替換

time limit:1000ms

memory limit:65536k

total submissions:6311

accepted:2943

description

編寫乙個c程式實現將字串中的所有"you"替換成"we"

input

輸入包含多行資料

每行資料是乙個字串,長度不超過1000

資料以eof結束

output

對於輸入的每一行,輸出替換後的字串

sample input

you are what you do
sample output

we are what we do
#include

#include

int main()}}

printf("

%s\n

",income);

}}

POJ 3981 字串替換

字串替換 time limit 1000ms memory limit 65536k total submissions 7501 accepted 3560 description 編寫乙個c程式實現將字串中的所有 you 替換成 we input 輸入包含多行資料 每行資料是乙個字串,長度不超過...

POJ3981 字串替換

字串替換 time limit 1000ms memory limit 65536k total submissions 9285 accepted 4438 description 編寫乙個c程式實現將字串中的所有 you 替換成 we input 輸入包含多行資料 每行資料是乙個字串,長度不超過...

POJ 3981 字串替換

字串替換 time limit 1000ms memory limit 65536k total submissions 7290 accepted 3451 description 編寫乙個c程式實現將字串中的所有 you 替換成 we input 輸入包含多行資料 每行資料是乙個字串,長度不超過...