10115

#include <iostream>
#include <string.h>
#include <stdio.h>
#include <map>
#include <cstring>
#include <stdlib.h>
#include <vector>


using namespace std;




int n;
int main()
{


    char c[300];
    char str[300];
    char sum[21][100];


    while(~scanf("%d",&n) && n)
    {
        getchar();
        char *pos;
        memset(sum, 0, sizeof(sum));
        memset(c, 0, sizeof(c));




        for( int i = 0; i<2*n; i++)
            gets(sum[i]);


        gets(str);
        for( int i = 0; i < 2*n; i += 2)
        {
            int len = strlen(sum[i]);


            while( 1 )
            {
                pos = strstr(str,sum[i]);
                if(pos == NULL )
                    break;


                sprintf(c,"%s",pos + len);
                sprintf( pos ,"%s", sum[i+1]);
                sprintf(pos + strlen(sum[i+1]), "%s", c);




            }


        }
        cout<<str<<endl;


    }
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
--------- beginning of crash 01-18 13:36:55.631 641 641 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 641 (init), pid 641 (init) 01-18 13:36:55.653 641 641 F libc : crash_dump helper failed to exec, or was killed 07-13 20:17:19.904 4586 4586 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 4586 (init), pid 4586 (init) 07-13 20:17:20.109 4586 4586 F libc : crash_dump helper failed to exec, or was killed 07-13 22:44:09.011 19049 19173 F libc : Fatal signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0x703860a000 in tid 19173 (priority-3), pid 19049 (loros.gallery3d) 07-13 22:44:18.663 19978 19978 F DEBUG : Process name is com.coloros.gallery3d, not key_process 07-13 22:44:18.663 19978 19978 F DEBUG : keyProcess: 0 07-13 22:44:18.663 19978 19978 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 07-13 22:44:18.663 19978 19978 F DEBUG : Build fingerprint: 'OPPO/CPH2565/OP5745L1:13/TP1A.220905.001/T.R4T2.1171403-23463-3:user/release-keys' 07-13 22:44:18.663 19978 19978 F DEBUG : Revision: '0' 07-13 22:44:18.663 19978 19978 F DEBUG : ABI: 'arm64' 07-13 22:44:18.663 19978 19978 F DEBUG : Timestamp: 2023-07-13 22:44:17.727514045+0800 07-13 22:44:18.663 19978 19978 F DEBUG : Process uptime: 152s 07-13 22:44:18.663 19978 19978 F DEBUG : Cmdline: com.coloros.gallery3d 07-13 22:44:18.663 19978 19978 F DEBUG : pid: 19049, tid: 19173, name: priority-3 >>> com.coloros.gallery3d <<< 07-13 22:44:18.663 19978 19978 F DEBUG : uid: 10115 07-13 22:44:18.663 19978 19978 F DEBUG : signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0x000000703860a000 07-13 22:44:18.663 19978 19978 F DEBUG : x0 0000007010ec7130 x1 0000007038609fd0 x2 0000000000000038 x3 0000000000000020
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值