當前位置:首頁 » 免費在線 » 一糯千金小說免費閱讀伊諾

一糯千金小說免費閱讀伊諾

發布時間: 2022-06-03 22:42:09

① 1. 成語糾錯

#include "stdio.h"
#include "stdlib.h"
#include "string.h"

typedef struct gbk{
char str[401];
struct gbk *next;
}GBK;

typedef struct Idioms{
char str[9];
struct gbk *next;
}Idioms;

void main()
{
int n,m,i,j=0,x=0,y=0,count=0,flag=-1,fm[50];
scanf("%d %d",&n,&m);
GBK *pn=(GBK *)malloc(sizeof(GBK)),*p1,*headn=pn;
Idioms *pm=(Idioms *)malloc(sizeof(Idioms)),*p2,*headm=pm;
char str[8]="0000000";

for(i=0;i<m+n;i++)
{
if(i<n)
{
for(j=0;j<200&&pn->str[0]!='\n';j++)
{
p1=(GBK *)malloc(sizeof(GBK));
pn->next=p1;
pn=p1;
scanf("%s",pn->str);
pm->next=null;
}
}
else
{
for(j=0;j<8&&pm->str[0]!='\n';j++)
{
p2=(Idioms *)malloc(sizeof(Idioms));
pm->next=p2;
pm=p2;
scanf("%s",pm->str);
pm->next=null;
}
}
}
scanf("%s",str);
pm=headm->next;
pn=headn->next;
while(pm)
{
for(i=0,j=1;j<9;i++,j++)
{
if(str[i]==pm->str[i]&&str[j]==pm->str[j]) count++;
else flag=i;
if(count==3)
{
fm[i]=1;
break;
}else fm[i]=0;
}
pm=pm->next;
}
while(pn)
{
for(i=0;i<strlen(pn->str);i++)
{
if(str[flag]==pn->str[i]&&str[flag]==pn->str[i++])
{
x=1;break;
}
}
if(x==1) break;
pn=pn->next;
}
x=0;
for(y=0;y<50;y++)
{
if(fm[y]==1)
{
for(i=0;i<strlen(pn->str);i++)
{
if(headm->str[flag]==pn->str[i]&&headm->str[flag+1]==pn->str[i+1])
{x=1;break;}
}
if(x==1) break;
pm=pm->next;
}
else pm=pm->next;
}
printf("%s",pm->str);
}

熱點內容
穿越後宮的言情小說 發布:2025-09-18 17:23:15 瀏覽:767
女主比較厲害的現代小說 發布:2025-09-18 17:08:23 瀏覽:570
黃的都市言情小說 發布:2025-09-18 17:06:16 瀏覽:867
民國紅樓小說排行榜 發布:2025-09-18 16:54:50 瀏覽:39
小說里的名字 發布:2025-09-18 16:34:59 瀏覽:749
懶人聽書為什麼不能訪問網路 發布:2025-09-18 13:54:41 瀏覽:358
楊家將小說免費下載下載 發布:2025-09-18 13:01:19 瀏覽:560
現代官場情感糾纏小說 發布:2025-09-18 12:40:41 瀏覽:125
校園生活小說女主叫強 發布:2025-09-18 12:17:22 瀏覽:182
紅袖小說推薦重生女主馬甲現代文 發布:2025-09-18 12:11:50 瀏覽:211